@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutIdentityPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents a request to add or update a sending authorization policy for an identity. Sending authorization is an Amazon SES feature that enables you to authorize other senders to use your identities. For information, see the Amazon SES Developer Guide.
NOOP
Constructor and Description |
---|
PutIdentityPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutIdentityPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getIdentity()
The identity that the policy will apply to.
|
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 that the policy will apply to.
|
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 that the policy will apply to.
|
PutIdentityPolicyRequest |
withPolicy(String policy)
The text of the policy in JSON format.
|
PutIdentityPolicyRequest |
withPolicyName(String policyName)
The name of the 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 setIdentity(String identity)
The identity that the policy will apply to. 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.
identity
- The identity that the policy will apply to. 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.
public String getIdentity()
The identity that the policy will apply to. 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.
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.
public PutIdentityPolicyRequest withIdentity(String identity)
The identity that the policy will apply to. 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.
identity
- The identity that the policy will apply to. 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.
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.
policyName
- The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
public String getPolicyName()
The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
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.
policyName
- The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
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.
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.
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.
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
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.
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.
public String toString()
toString
in class Object
Object.toString()
public PutIdentityPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.