Interface ListPartnershipsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,B2BiResponse.Builder
,Buildable
,CopyableBuilder<ListPartnershipsResponse.Builder,
,ListPartnershipsResponse> SdkBuilder<ListPartnershipsResponse.Builder,
,ListPartnershipsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListPartnershipsResponse
@Mutable
@NotThreadSafe
public static interface ListPartnershipsResponse.Builder
extends B2BiResponse.Builder, SdkPojo, CopyableBuilder<ListPartnershipsResponse.Builder,ListPartnershipsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionWhen additional results are obtained from the command, aNextToken
parameter is returned in the output.partnerships
(Collection<PartnershipSummary> partnerships) Specifies a list of your partnerships.partnerships
(Consumer<PartnershipSummary.Builder>... partnerships) Specifies a list of your partnerships.partnerships
(PartnershipSummary... partnerships) Specifies a list of your partnerships.Methods inherited from interface software.amazon.awssdk.services.b2bi.model.B2BiResponse.Builder
build, responseMetadata, responseMetadata
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
-
Method Details
-
partnerships
Specifies a list of your partnerships.
- Parameters:
partnerships
- Specifies a list of your partnerships.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partnerships
Specifies a list of your partnerships.
- Parameters:
partnerships
- Specifies a list of your partnerships.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partnerships
Specifies a list of your partnerships.
This is a convenience method that creates an instance of thePartnershipSummary.Builder
avoiding the need to create one manually viaPartnershipSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topartnerships(List<PartnershipSummary>)
.- Parameters:
partnerships
- a consumer that will call methods onPartnershipSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
When additional results are obtained from the command, a
NextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources.- Parameters:
nextToken
- When additional results are obtained from the command, aNextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-