@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 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 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 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, withSdkRequestTimeoutpublic void setAccessPolicyIdentity(Identity accessPolicyIdentity)
The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
accessPolicyIdentity - The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or
an IAM user.public Identity getAccessPolicyIdentity()
The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
public CreateAccessPolicyRequest withAccessPolicyIdentity(Identity accessPolicyIdentity)
The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
accessPolicyIdentity - The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or
an IAM user.public void setAccessPolicyResource(Resource accessPolicyResource)
The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.
accessPolicyResource - The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.public Resource getAccessPolicyResource()
The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.
public CreateAccessPolicyRequest withAccessPolicyResource(Resource accessPolicyResource)
The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.
accessPolicyResource - The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.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.Permissionpublic 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.Permissionpublic 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.Permissionpublic 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.Permissionpublic 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 IoT SiteWise resources in the 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 IoT SiteWise resources in the IoT SiteWise User Guide.
tags - A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your IoT
SiteWise resources in the 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 IoT SiteWise resources in the IoT SiteWise User Guide.
tags - A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your IoT
SiteWise resources in the IoT SiteWise User Guide.public CreateAccessPolicyRequest addTagsEntry(String key, String value)
public CreateAccessPolicyRequest clearTagsEntries()
public String toString()
toString in class ObjectObject.toString()public CreateAccessPolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()