@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetResourcePoliciesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetResourcePoliciesResult() |
Modifier and Type | Method and Description |
---|---|
GetResourcePoliciesResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to use to retrieve the next page of results.
|
List<String> |
getPolicies()
A key policy document, in JSON format.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
void |
setPolicies(Collection<String> policies)
A key policy document, in JSON format.
|
String |
toString()
Returns a string representation of this object.
|
GetResourcePoliciesResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
GetResourcePoliciesResult |
withPolicies(Collection<String> policies)
A key policy document, in JSON format.
|
GetResourcePoliciesResult |
withPolicies(String... policies)
A key policy document, in JSON format.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<String> getPolicies()
A key policy document, in JSON format.
public void setPolicies(Collection<String> policies)
A key policy document, in JSON format.
policies
- A key policy document, in JSON format.public GetResourcePoliciesResult withPolicies(String... policies)
A key policy document, in JSON format.
NOTE: This method appends the values to the existing list (if any). Use
setPolicies(java.util.Collection)
or withPolicies(java.util.Collection)
if you want to override
the existing values.
policies
- A key policy document, in JSON format.public GetResourcePoliciesResult withPolicies(Collection<String> policies)
A key policy document, in JSON format.
policies
- A key policy document, in JSON format.public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.public String getNextToken()
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
null
when there are no
more results to return.public GetResourcePoliciesResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.public String toString()
toString
in class Object
Object.toString()
public GetResourcePoliciesResult clone()