Interface GetChannelContractResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetChannelContractResponse.Builder,,GetChannelContractResponse> PartnerCentralChannelResponse.Builder,SdkBuilder<GetChannelContractResponse.Builder,,GetChannelContractResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetChannelContractResponse
@Mutable
@NotThreadSafe
public static interface GetChannelContractResponse.Builder
extends PartnerCentralChannelResponse.Builder, SdkPojo, CopyableBuilder<GetChannelContractResponse.Builder,GetChannelContractResponse>
-
Method Summary
Modifier and TypeMethodDescriptionchannelContractDetail(Consumer<ChannelContractDetail.Builder> channelContractDetail) Details of the requested channel contract.channelContractDetail(ChannelContractDetail channelContractDetail) Details of the requested channel contract.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.partnercentralchannel.model.PartnerCentralChannelResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
channelContractDetail
GetChannelContractResponse.Builder channelContractDetail(ChannelContractDetail channelContractDetail) Details of the requested channel contract.
- Parameters:
channelContractDetail- Details of the requested channel contract.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channelContractDetail
default GetChannelContractResponse.Builder channelContractDetail(Consumer<ChannelContractDetail.Builder> channelContractDetail) Details of the requested channel contract.
This is a convenience method that creates an instance of theChannelContractDetail.Builderavoiding the need to create one manually viaChannelContractDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochannelContractDetail(ChannelContractDetail).- Parameters:
channelContractDetail- a consumer that will call methods onChannelContractDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-