@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 returned by the
GetDelegations API. |
String |
getNextToken()
The pagination token used to fetch the next set of results.
|
int |
hashCode() |
void |
setDelegations(Collection<DelegationMetadata> delegations)
The list of delegations returned by the
GetDelegations API. |
void |
setNextToken(String nextToken)
The pagination token 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 returned by the
GetDelegations API. |
GetDelegationsResult |
withDelegations(DelegationMetadata... delegations)
The list of delegations returned by the
GetDelegations API. |
GetDelegationsResult |
withNextToken(String nextToken)
The pagination token used to fetch the next set of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<DelegationMetadata> getDelegations()
The list of delegations returned by the GetDelegations
API.
GetDelegations
API.public void setDelegations(Collection<DelegationMetadata> delegations)
The list of delegations returned by the GetDelegations
API.
delegations
- The list of delegations returned by the GetDelegations
API.public GetDelegationsResult withDelegations(DelegationMetadata... delegations)
The list of delegations returned by the GetDelegations
API.
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 returned by the GetDelegations
API.public GetDelegationsResult withDelegations(Collection<DelegationMetadata> delegations)
The list of delegations returned by the GetDelegations
API.
delegations
- The list of delegations returned by the GetDelegations
API.public void setNextToken(String nextToken)
The pagination token used to fetch the next set of results.
nextToken
- The pagination token used to fetch the next set of results.public String getNextToken()
The pagination token used to fetch the next set of results.
public GetDelegationsResult withNextToken(String nextToken)
The pagination token used to fetch the next set of results.
nextToken
- The pagination token used to fetch the next set of results.public String toString()
toString
in class Object
Object.toString()
public GetDelegationsResult clone()