public class PutIdentityPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
PutIdentityPolicy operation
.
Adds or updates a sending authorization policy for the specified identity (email address or domain).
NOTE:This API is for the identity owner only. If you have not verified the identity, this API will return an error.
Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide .
This action is throttled at one request per second.
NOOP
Constructor and Description |
---|
PutIdentityPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutIdentityPolicyRequest |
clone() |
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.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getIdentity()
[email protected]
, example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
To successfully call this API, you must own the identity.
[email protected]
, example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
To successfully call this API, you must own the identity.
public void setIdentity(String identity)
[email protected]
, 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 to which the policy will apply. You can specify an
identity by using its name or by using its Amazon Resource Name (ARN).
Examples: [email protected]
, 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)
[email protected]
, example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
To successfully call this API, you must own the identity.
Returns a reference to this object so that method calls can be chained together.
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: [email protected]
, example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
To successfully call this API, you must own the identity.
public String getPolicyName()
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
Constraints:
Length: 1 - 64
Pattern: [^\\/\?\*\s]+
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
public void setPolicyName(String policyName)
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
Constraints:
Length: 1 - 64
Pattern: [^\\/\?\*\s]+
policyName
- The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
public PutIdentityPolicyRequest withPolicyName(String policyName)
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [^\\/\?\*\s]+
policyName
- The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
public String getPolicy()
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
Constraints:
Length: 1 -
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
public void setPolicy(String policy)
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
Constraints:
Length: 1 -
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 PutIdentityPolicyRequest withPolicy(String policy)
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
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()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.