@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateAccessPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateAccessPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAccessPolicyRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateAccessPolicyRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateAccessPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Identity |
getAccessPolicyIdentity()
The identity for this access policy.
|
String |
getAccessPolicyPermission()
The permission level for this access policy.
|
Resource |
getAccessPolicyResource()
The AWS IoT SiteWise Monitor resource for this access policy.
|
String |
getClientToken()
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
|
Map<String,String> |
getTags()
A list of key-value pairs that contain metadata for the access policy.
|
int |
hashCode() |
void |
setAccessPolicyIdentity(Identity accessPolicyIdentity)
The identity for this access policy.
|
void |
setAccessPolicyPermission(String accessPolicyPermission)
The permission level for this access policy.
|
void |
setAccessPolicyResource(Resource accessPolicyResource)
The AWS IoT SiteWise Monitor resource for this access policy.
|
void |
setClientToken(String clientToken)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
|
void |
setTags(Map<String,String> tags)
A list of key-value pairs that contain metadata for the access policy.
|
String |
toString()
Returns a string representation of this object.
|
CreateAccessPolicyRequest |
withAccessPolicyIdentity(Identity accessPolicyIdentity)
The identity for this access policy.
|
CreateAccessPolicyRequest |
withAccessPolicyPermission(Permission accessPolicyPermission)
The permission level for this access policy.
|
CreateAccessPolicyRequest |
withAccessPolicyPermission(String accessPolicyPermission)
The permission level for this access policy.
|
CreateAccessPolicyRequest |
withAccessPolicyResource(Resource accessPolicyResource)
The AWS IoT SiteWise Monitor resource for this access policy.
|
CreateAccessPolicyRequest |
withClientToken(String clientToken)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
|
CreateAccessPolicyRequest |
withTags(Map<String,String> tags)
A list of key-value pairs that contain metadata for the access policy.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAccessPolicyIdentity(Identity accessPolicyIdentity)
The identity for this access policy. Choose either a user
or a group
but not both.
accessPolicyIdentity
- The identity for this access policy. Choose either a user
or a group
but not
both.public Identity getAccessPolicyIdentity()
The identity for this access policy. Choose either a user
or a group
but not both.
user
or a group
but not
both.public CreateAccessPolicyRequest withAccessPolicyIdentity(Identity accessPolicyIdentity)
The identity for this access policy. Choose either a user
or a group
but not both.
accessPolicyIdentity
- The identity for this access policy. Choose either a user
or a group
but not
both.public void setAccessPolicyResource(Resource accessPolicyResource)
The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal
or
project
but not both.
accessPolicyResource
- The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal
or
project
but not both.public Resource getAccessPolicyResource()
The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal
or
project
but not both.
portal
or
project
but not both.public CreateAccessPolicyRequest withAccessPolicyResource(Resource accessPolicyResource)
The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal
or
project
but not both.
accessPolicyResource
- The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal
or
project
but not both.public void setAccessPolicyPermission(String accessPolicyPermission)
The permission level for this access policy. Note that a project ADMINISTRATOR
is also known as a
project owner.
accessPolicyPermission
- The permission level for this access policy. Note that a project ADMINISTRATOR
is also known
as a project owner.Permission
public String getAccessPolicyPermission()
The permission level for this access policy. Note that a project ADMINISTRATOR
is also known as a
project owner.
ADMINISTRATOR
is also known
as a project owner.Permission
public CreateAccessPolicyRequest withAccessPolicyPermission(String accessPolicyPermission)
The permission level for this access policy. Note that a project ADMINISTRATOR
is also known as a
project owner.
accessPolicyPermission
- The permission level for this access policy. Note that a project ADMINISTRATOR
is also known
as a project owner.Permission
public CreateAccessPolicyRequest withAccessPolicyPermission(Permission accessPolicyPermission)
The permission level for this access policy. Note that a project ADMINISTRATOR
is also known as a
project owner.
accessPolicyPermission
- The permission level for this access policy. Note that a project ADMINISTRATOR
is also known
as a project owner.Permission
public void setClientToken(String clientToken)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
clientToken
- A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't
reuse this client token if a new idempotent request is required.public String getClientToken()
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
public CreateAccessPolicyRequest withClientToken(String clientToken)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
clientToken
- A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't
reuse this client token if a new idempotent request is required.public Map<String,String> getTags()
A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.
public void setTags(Map<String,String> tags)
A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.
tags
- A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your AWS IoT
SiteWise resources in the AWS IoT SiteWise User Guide.public CreateAccessPolicyRequest withTags(Map<String,String> tags)
A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.
tags
- A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your AWS IoT
SiteWise resources in the AWS IoT SiteWise User Guide.public CreateAccessPolicyRequest addTagsEntry(String key, String value)
public CreateAccessPolicyRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateAccessPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.