Class GetIdentityPoliciesRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simpleemail.model.GetIdentityPoliciesRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class GetIdentityPoliciesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description GetIdentityPoliciesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetIdentityPoliciesRequest
clone()
Creates a shallow clone of this request.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(String... policyNames)
A list of the names of policies to be retrieved.GetIdentityPoliciesRequest
withPolicyNames(Collection<String> policyNames)
A list of the names of policies to be retrieved.-
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 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.
- Parameters:
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.
-
getIdentity
public 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.
- Returns:
- 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.
-
withIdentity
public GetIdentityPoliciesRequest withIdentity(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
getPolicyNames
public List<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
.- Returns:
- 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
.
-
setPolicyNames
public void setPolicyNames(Collection<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
.- Parameters:
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 useListIdentityPolicies
.
-
withPolicyNames
public GetIdentityPoliciesRequest withPolicyNames(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
.NOTE: This method appends the values to the existing list (if any). Use
setPolicyNames(java.util.Collection)
orwithPolicyNames(java.util.Collection)
if you want to override the existing values.- Parameters:
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 useListIdentityPolicies
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPolicyNames
public GetIdentityPoliciesRequest withPolicyNames(Collection<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
.- Parameters:
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 useListIdentityPolicies
.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetIdentityPoliciesRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-