public class GetIdentityPoliciesRequest extends AmazonWebServiceRequest implements java.io.Serializable
Returns the requested sending authorization policies for the given identity (an email address or a 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.
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.
You can execute this operation no more than once per second.
Constructor and Description |
---|
GetIdentityPoliciesRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIdentity()
The identity for which the policies will be retrieved.
|
java.util.List<java.lang.String> |
getPolicyNames()
A list of the names of policies to be retrieved.
|
int |
hashCode() |
void |
setIdentity(java.lang.String identity)
The identity for which the policies will be retrieved.
|
void |
setPolicyNames(java.util.Collection<java.lang.String> policyNames)
A list of the names of policies to be retrieved.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetIdentityPoliciesRequest |
withIdentity(java.lang.String identity)
The identity for which the policies will be retrieved.
|
GetIdentityPoliciesRequest |
withPolicyNames(java.util.Collection<java.lang.String> policyNames)
A list of the names of policies to be retrieved.
|
GetIdentityPoliciesRequest |
withPolicyNames(java.lang.String... policyNames)
A list of the names of policies to be retrieved.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getIdentity()
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: 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.
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: 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 setIdentity(java.lang.String 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: 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 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: 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 GetIdentityPoliciesRequest withIdentity(java.lang.String 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: 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 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: 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 java.util.List<java.lang.String> getPolicyNames()
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
.
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 void setPolicyNames(java.util.Collection<java.lang.String> 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
.
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(java.lang.String... 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
.
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(java.util.Collection<java.lang.String> 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
.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.