@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetDelegationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetDelegationsResult() |
Modifier and Type | Method and Description |
---|---|
GetDelegationsResult |
clone() |
boolean |
equals(Object obj) |
List<DelegationMetadata> |
getDelegations()
The list of delegations that the
GetDelegations API returned. |
String |
getNextToken()
The pagination token that's used to fetch the next set of results.
|
int |
hashCode() |
void |
setDelegations(Collection<DelegationMetadata> delegations)
The list of delegations that the
GetDelegations API returned. |
void |
setNextToken(String nextToken)
The pagination token that's used to fetch the next set of results.
|
String |
toString()
Returns a string representation of this object.
|
GetDelegationsResult |
withDelegations(Collection<DelegationMetadata> delegations)
The list of delegations that the
GetDelegations API returned. |
GetDelegationsResult |
withDelegations(DelegationMetadata... delegations)
The list of delegations that the
GetDelegations API returned. |
GetDelegationsResult |
withNextToken(String nextToken)
The pagination token that's used to fetch the next set of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<DelegationMetadata> getDelegations()
The list of delegations that the GetDelegations
API returned.
GetDelegations
API returned.public void setDelegations(Collection<DelegationMetadata> delegations)
The list of delegations that the GetDelegations
API returned.
delegations
- The list of delegations that the GetDelegations
API returned.public GetDelegationsResult withDelegations(DelegationMetadata... delegations)
The list of delegations that the GetDelegations
API returned.
NOTE: This method appends the values to the existing list (if any). Use
setDelegations(java.util.Collection)
or withDelegations(java.util.Collection)
if you want to
override the existing values.
delegations
- The list of delegations that the GetDelegations
API returned.public GetDelegationsResult withDelegations(Collection<DelegationMetadata> delegations)
The list of delegations that the GetDelegations
API returned.
delegations
- The list of delegations that the GetDelegations
API returned.public void setNextToken(String nextToken)
The pagination token that's used to fetch the next set of results.
nextToken
- The pagination token that's used to fetch the next set of results.public String getNextToken()
The pagination token that's used to fetch the next set of results.
public GetDelegationsResult withNextToken(String nextToken)
The pagination token that's used to fetch the next set of results.
nextToken
- The pagination token that's used to fetch the next set of results.public String toString()
toString
in class Object
Object.toString()
public GetDelegationsResult clone()