Class PutIdentityPolicyRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simpleemail.model.PutIdentityPolicyRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class PutIdentityPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PutIdentityPolicyRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutIdentityPolicyRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getIdentity()
The identity to which the policy will apply.String
getPolicy()
The text of the policy in JSON format.String
getPolicyName()
The name of the policy.int
hashCode()
void
setIdentity(String identity)
The identity to which the policy will apply.void
setPolicy(String policy)
The text of the policy in JSON format.void
setPolicyName(String policyName)
The name of the policy.String
toString()
Returns a string representation of this object; useful for testing and debugging.PutIdentityPolicyRequest
withIdentity(String identity)
The identity to which the policy will apply.PutIdentityPolicyRequest
withPolicy(String policy)
The text of the policy in JSON format.PutIdentityPolicyRequest
withPolicyName(String policyName)
The name of the policy.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setIdentity
public void setIdentity(String identity)
The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples:
user@example.com
,example.com
,arn:aws:ses:us-east-1:123456789012:identity/example.com
.To successfully call this API, you must own the identity.
- Parameters:
identity
- The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples:user@example.com
,example.com
,arn:aws:ses:us-east-1:123456789012:identity/example.com
.To successfully call this API, you must own the identity.
-
getIdentity
public String getIdentity()
The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples:
user@example.com
,example.com
,arn:aws:ses:us-east-1:123456789012:identity/example.com
.To successfully call this API, you must own the identity.
- Returns:
- The identity to which the policy will apply. You can specify an
identity by using its name or by using its Amazon Resource Name
(ARN). Examples:
user@example.com
,example.com
,arn:aws:ses:us-east-1:123456789012:identity/example.com
.To successfully call this API, you must own the identity.
-
withIdentity
public PutIdentityPolicyRequest withIdentity(String identity)
The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples:
user@example.com
,example.com
,arn:aws:ses:us-east-1:123456789012:identity/example.com
.To successfully call this API, you must own the identity.
- Parameters:
identity
- The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples:user@example.com
,example.com
,arn:aws:ses:us-east-1:123456789012:identity/example.com
.To successfully call this API, you must own the identity.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyName
public void setPolicyName(String policyName)
The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
- Parameters:
policyName
- The name of the policy.The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
-
getPolicyName
public String getPolicyName()
The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
- Returns:
- The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
-
withPolicyName
public PutIdentityPolicyRequest withPolicyName(String policyName)
The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
- Parameters:
policyName
- The name of the policy.The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicy
public void setPolicy(String policy)
The text of the policy in JSON format. The policy cannot exceed 4 KB.
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
- Parameters:
policy
- The text of the policy in JSON format. The policy cannot exceed 4 KB.For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
-
getPolicy
public String getPolicy()
The text of the policy in JSON format. The policy cannot exceed 4 KB.
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
- Returns:
- The text of the policy in JSON format. The policy cannot exceed 4
KB.
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
-
withPolicy
public PutIdentityPolicyRequest withPolicy(String policy)
The text of the policy in JSON format. The policy cannot exceed 4 KB.
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
- Parameters:
policy
- The text of the policy in JSON format. The policy cannot exceed 4 KB.For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutIdentityPolicyRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-