public class GetIdentityPoliciesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetIdentityPolicies operation
.
Returns the requested sending authorization policies for the given identity (email address or domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time.
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 |
---|
GetIdentityPoliciesRequest() |
Modifier and Type | Method and Description |
---|---|
GetIdentityPoliciesRequest |
clone() |
boolean |
equals(Object obj) |
String |
getIdentity()
The identity for which the policies will be retrieved.
|
List<String> |
getPolicyNames()
A list of the names of policies to be retrieved.
|
int |
hashCode() |
void |
setIdentity(String identity)
The identity for which the policies will be retrieved.
|
void |
setPolicyNames(Collection<String> policyNames)
A list of the names of policies to be retrieved.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetIdentityPoliciesRequest |
withIdentity(String identity)
The identity for which the policies will be retrieved.
|
GetIdentityPoliciesRequest |
withPolicyNames(Collection<String> policyNames)
A list of the names of policies to be retrieved.
|
GetIdentityPoliciesRequest |
withPolicyNames(String... policyNames)
A list of the names of policies to be retrieved.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, 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 for which the policies will be retrieved. 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 GetIdentityPoliciesRequest 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 for which the policies will be retrieved. 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 List<String> getPolicyNames()
ListIdentityPolicies
.ListIdentityPolicies
.public void setPolicyNames(Collection<String> policyNames)
ListIdentityPolicies
.policyNames
- A list of the names of policies to be retrieved. You can retrieve a
maximum of 20 policies at a time. If you do not know the names of the
policies that are attached to the identity, you can use
ListIdentityPolicies
.public GetIdentityPoliciesRequest withPolicyNames(String... policyNames)
ListIdentityPolicies
.
NOTE: This method appends the values to the existing list (if
any). Use setPolicyNames(java.util.Collection)
or withPolicyNames(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
policyNames
- A list of the names of policies to be retrieved. You can retrieve a
maximum of 20 policies at a time. If you do not know the names of the
policies that are attached to the identity, you can use
ListIdentityPolicies
.public GetIdentityPoliciesRequest withPolicyNames(Collection<String> policyNames)
ListIdentityPolicies
.
Returns a reference to this object so that method calls can be chained together.
policyNames
- A list of the names of policies to be retrieved. You can retrieve a
maximum of 20 policies at a time. If you do not know the names of the
policies that are attached to the identity, you can use
ListIdentityPolicies
.public String toString()
toString
in class Object
Object.toString()
public GetIdentityPoliciesRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.