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 PutIdentityPolicyRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetIdentity()The identity to which the policy will apply.StringgetPolicy()The text of the policy in JSON format.StringgetPolicyName()The name of the policy.inthashCode()voidsetIdentity(String identity)The identity to which the policy will apply.voidsetPolicy(String policy)The text of the policy in JSON format.voidsetPolicyName(String policyName)The name of the policy.StringtoString()Returns a string representation of this object; useful for testing and debugging.PutIdentityPolicyRequestwithIdentity(String identity)The identity to which the policy will apply.PutIdentityPolicyRequestwithPolicy(String policy)The text of the policy in JSON format.PutIdentityPolicyRequestwithPolicyName(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutIdentityPolicyRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-