@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListPoliciesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListPoliciesResult() |
Modifier and Type | Method and Description |
---|---|
ListPoliciesResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
If you have more
PolicySummary objects than the number that you specified for
MaxResults in the request, the response includes a NextToken value. |
List<PolicySummary> |
getPolicyList()
An array of
PolicySummary objects. |
int |
hashCode() |
void |
setNextToken(String nextToken)
If you have more
PolicySummary objects than the number that you specified for
MaxResults in the request, the response includes a NextToken value. |
void |
setPolicyList(Collection<PolicySummary> policyList)
An array of
PolicySummary objects. |
String |
toString()
Returns a string representation of this object.
|
ListPoliciesResult |
withNextToken(String nextToken)
If you have more
PolicySummary objects than the number that you specified for
MaxResults in the request, the response includes a NextToken value. |
ListPoliciesResult |
withPolicyList(Collection<PolicySummary> policyList)
An array of
PolicySummary objects. |
ListPoliciesResult |
withPolicyList(PolicySummary... policyList)
An array of
PolicySummary objects. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<PolicySummary> getPolicyList()
An array of PolicySummary
objects.
PolicySummary
objects.public void setPolicyList(Collection<PolicySummary> policyList)
An array of PolicySummary
objects.
policyList
- An array of PolicySummary
objects.public ListPoliciesResult withPolicyList(PolicySummary... policyList)
An array of PolicySummary
objects.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyList(java.util.Collection)
or withPolicyList(java.util.Collection)
if you want to
override the existing values.
policyList
- An array of PolicySummary
objects.public ListPoliciesResult withPolicyList(Collection<PolicySummary> policyList)
An array of PolicySummary
objects.
policyList
- An array of PolicySummary
objects.public void setNextToken(String nextToken)
If you have more PolicySummary
objects than the number that you specified for
MaxResults
in the request, the response includes a NextToken
value. To list more
PolicySummary
objects, submit another ListPolicies
request, and specify the
NextToken
value from the response in the NextToken
value in the next request.
nextToken
- If you have more PolicySummary
objects than the number that you specified for
MaxResults
in the request, the response includes a NextToken
value. To list more
PolicySummary
objects, submit another ListPolicies
request, and specify the
NextToken
value from the response in the NextToken
value in the next request.public String getNextToken()
If you have more PolicySummary
objects than the number that you specified for
MaxResults
in the request, the response includes a NextToken
value. To list more
PolicySummary
objects, submit another ListPolicies
request, and specify the
NextToken
value from the response in the NextToken
value in the next request.
PolicySummary
objects than the number that you specified for
MaxResults
in the request, the response includes a NextToken
value. To list
more PolicySummary
objects, submit another ListPolicies
request, and specify
the NextToken
value from the response in the NextToken
value in the next
request.public ListPoliciesResult withNextToken(String nextToken)
If you have more PolicySummary
objects than the number that you specified for
MaxResults
in the request, the response includes a NextToken
value. To list more
PolicySummary
objects, submit another ListPolicies
request, and specify the
NextToken
value from the response in the NextToken
value in the next request.
nextToken
- If you have more PolicySummary
objects than the number that you specified for
MaxResults
in the request, the response includes a NextToken
value. To list more
PolicySummary
objects, submit another ListPolicies
request, and specify the
NextToken
value from the response in the NextToken
value in the next request.public String toString()
toString
in class Object
Object.toString()
public ListPoliciesResult clone()