@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 for the next set of items to return.
|
List<GetResourcePoliciesResponseEntry> |
getPolicies()
An array of the
Policy object. |
int |
hashCode() |
void |
setNextToken(String nextToken)
The token for the next set of items to return.
|
void |
setPolicies(Collection<GetResourcePoliciesResponseEntry> policies)
An array of the
Policy object. |
String |
toString()
Returns a string representation of this object.
|
GetResourcePoliciesResult |
withNextToken(String nextToken)
The token for the next set of items to return.
|
GetResourcePoliciesResult |
withPolicies(Collection<GetResourcePoliciesResponseEntry> policies)
An array of the
Policy object. |
GetResourcePoliciesResult |
withPolicies(GetResourcePoliciesResponseEntry... policies)
An array of the
Policy object. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
The token for the next set of items to return. Use this token to get the next set of results.
nextToken
- The token for the next set of items to return. Use this token to get the next set of results.public String getNextToken()
The token for the next set of items to return. Use this token to get the next set of results.
public GetResourcePoliciesResult withNextToken(String nextToken)
The token for the next set of items to return. Use this token to get the next set of results.
nextToken
- The token for the next set of items to return. Use this token to get the next set of results.public List<GetResourcePoliciesResponseEntry> getPolicies()
An array of the Policy
object.
Policy
object.public void setPolicies(Collection<GetResourcePoliciesResponseEntry> policies)
An array of the Policy
object.
policies
- An array of the Policy
object.public GetResourcePoliciesResult withPolicies(GetResourcePoliciesResponseEntry... policies)
An array of the Policy
object.
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
- An array of the Policy
object.public GetResourcePoliciesResult withPolicies(Collection<GetResourcePoliciesResponseEntry> policies)
An array of the Policy
object.
policies
- An array of the Policy
object.public String toString()
toString
in class Object
Object.toString()
public GetResourcePoliciesResult clone()