@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListTargetsForPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListTargetsForPolicyResult() |
Modifier and Type | Method and Description |
---|---|
ListTargetsForPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
If present, this value indicates that there is more output available than is included in the current response.
|
List<PolicyTargetSummary> |
getTargets()
A list of structures, each of which contains details about one of the entities to which the specified policy is
attached.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
If present, this value indicates that there is more output available than is included in the current response.
|
void |
setTargets(Collection<PolicyTargetSummary> targets)
A list of structures, each of which contains details about one of the entities to which the specified policy is
attached.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ListTargetsForPolicyResult |
withNextToken(String nextToken)
If present, this value indicates that there is more output available than is included in the current response.
|
ListTargetsForPolicyResult |
withTargets(Collection<PolicyTargetSummary> targets)
A list of structures, each of which contains details about one of the entities to which the specified policy is
attached.
|
ListTargetsForPolicyResult |
withTargets(PolicyTargetSummary... targets)
A list of structures, each of which contains details about one of the entities to which the specified policy is
attached.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<PolicyTargetSummary> getTargets()
A list of structures, each of which contains details about one of the entities to which the specified policy is attached.
public void setTargets(Collection<PolicyTargetSummary> targets)
A list of structures, each of which contains details about one of the entities to which the specified policy is attached.
targets
- A list of structures, each of which contains details about one of the entities to which the specified
policy is attached.public ListTargetsForPolicyResult withTargets(PolicyTargetSummary... targets)
A list of structures, each of which contains details about one of the entities to which the specified policy is attached.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- A list of structures, each of which contains details about one of the entities to which the specified
policy is attached.public ListTargetsForPolicyResult withTargets(Collection<PolicyTargetSummary> targets)
A list of structures, each of which contains details about one of the entities to which the specified policy is attached.
targets
- A list of structures, each of which contains details about one of the entities to which the specified
policy is attached.public void setNextToken(String nextToken)
If present, this value indicates that there is more output available than is included in the current response.
Use this value in the NextToken
request parameter in a subsequent call to the operation to get the
next part of the output. You should repeat this until the NextToken
response element comes back as
null
.
nextToken
- If present, this value indicates that there is more output available than is included in the current
response. Use this value in the NextToken
request parameter in a subsequent call to the
operation to get the next part of the output. You should repeat this until the NextToken
response element comes back as null
.public String getNextToken()
If present, this value indicates that there is more output available than is included in the current response.
Use this value in the NextToken
request parameter in a subsequent call to the operation to get the
next part of the output. You should repeat this until the NextToken
response element comes back as
null
.
NextToken
request parameter in a subsequent call to the
operation to get the next part of the output. You should repeat this until the NextToken
response element comes back as null
.public ListTargetsForPolicyResult withNextToken(String nextToken)
If present, this value indicates that there is more output available than is included in the current response.
Use this value in the NextToken
request parameter in a subsequent call to the operation to get the
next part of the output. You should repeat this until the NextToken
response element comes back as
null
.
nextToken
- If present, this value indicates that there is more output available than is included in the current
response. Use this value in the NextToken
request parameter in a subsequent call to the
operation to get the next part of the output. You should repeat this until the NextToken
response element comes back as null
.public String toString()
toString
in class Object
Object.toString()
public ListTargetsForPolicyResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.