@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListAgreementsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
ListAgreementsResult() |
| Modifier and Type | Method and Description |
|---|---|
ListAgreementsResult |
clone() |
boolean |
equals(Object obj) |
List<ListedAgreement> |
getAgreements()
Returns an array, where each item contains the details of an agreement.
|
String |
getNextToken()
Returns a token that you can use to call
ListAgreements again and receive additional results, if
there are any. |
int |
hashCode() |
void |
setAgreements(Collection<ListedAgreement> agreements)
Returns an array, where each item contains the details of an agreement.
|
void |
setNextToken(String nextToken)
Returns a token that you can use to call
ListAgreements again and receive additional results, if
there are any. |
String |
toString()
Returns a string representation of this object.
|
ListAgreementsResult |
withAgreements(Collection<ListedAgreement> agreements)
Returns an array, where each item contains the details of an agreement.
|
ListAgreementsResult |
withAgreements(ListedAgreement... agreements)
Returns an array, where each item contains the details of an agreement.
|
ListAgreementsResult |
withNextToken(String nextToken)
Returns a token that you can use to call
ListAgreements again and receive additional results, if
there are any. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setNextToken(String nextToken)
Returns a token that you can use to call ListAgreements again and receive additional results, if
there are any.
nextToken - Returns a token that you can use to call ListAgreements again and receive additional results,
if there are any.public String getNextToken()
Returns a token that you can use to call ListAgreements again and receive additional results, if
there are any.
ListAgreements again and receive additional
results, if there are any.public ListAgreementsResult withNextToken(String nextToken)
Returns a token that you can use to call ListAgreements again and receive additional results, if
there are any.
nextToken - Returns a token that you can use to call ListAgreements again and receive additional results,
if there are any.public List<ListedAgreement> getAgreements()
Returns an array, where each item contains the details of an agreement.
public void setAgreements(Collection<ListedAgreement> agreements)
Returns an array, where each item contains the details of an agreement.
agreements - Returns an array, where each item contains the details of an agreement.public ListAgreementsResult withAgreements(ListedAgreement... agreements)
Returns an array, where each item contains the details of an agreement.
NOTE: This method appends the values to the existing list (if any). Use
setAgreements(java.util.Collection) or withAgreements(java.util.Collection) if you want to
override the existing values.
agreements - Returns an array, where each item contains the details of an agreement.public ListAgreementsResult withAgreements(Collection<ListedAgreement> agreements)
Returns an array, where each item contains the details of an agreement.
agreements - Returns an array, where each item contains the details of an agreement.public String toString()
toString in class ObjectObject.toString()public ListAgreementsResult clone()
Copyright © 2023. All rights reserved.