Interface ListAgreementsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListAgreementsResponse.Builder,ListAgreementsResponse>,SdkBuilder<ListAgreementsResponse.Builder,ListAgreementsResponse>,SdkPojo,SdkResponse.Builder,TransferResponse.Builder
- Enclosing class:
- ListAgreementsResponse
public static interface ListAgreementsResponse.Builder extends TransferResponse.Builder, SdkPojo, CopyableBuilder<ListAgreementsResponse.Builder,ListAgreementsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListAgreementsResponse.Builderagreements(Collection<ListedAgreement> agreements)Returns an array, where each item contains the details of an agreement.ListAgreementsResponse.Builderagreements(Consumer<ListedAgreement.Builder>... agreements)Returns an array, where each item contains the details of an agreement.ListAgreementsResponse.Builderagreements(ListedAgreement... agreements)Returns an array, where each item contains the details of an agreement.ListAgreementsResponse.BuildernextToken(String nextToken)Returns a token that you can use to callListAgreementsagain and receive additional results, if there are any.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.transfer.model.TransferResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
nextToken
ListAgreementsResponse.Builder nextToken(String nextToken)
Returns a token that you can use to call
ListAgreementsagain and receive additional results, if there are any.- Parameters:
nextToken- Returns a token that you can use to callListAgreementsagain and receive additional results, if there are any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agreements
ListAgreementsResponse.Builder agreements(Collection<ListedAgreement> agreements)
Returns an array, where each item contains the details of an agreement.
- Parameters:
agreements- Returns an array, where each item contains the details of an agreement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agreements
ListAgreementsResponse.Builder agreements(ListedAgreement... agreements)
Returns an array, where each item contains the details of an agreement.
- Parameters:
agreements- Returns an array, where each item contains the details of an agreement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agreements
ListAgreementsResponse.Builder agreements(Consumer<ListedAgreement.Builder>... agreements)
Returns an array, where each item contains the details of an agreement.
This is a convenience method that creates an instance of theListedAgreement.Builderavoiding the need to create one manually viaListedAgreement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#agreements(List.) - Parameters:
agreements- a consumer that will call methods onListedAgreement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#agreements(java.util.Collection)
-
-