Interface CreateAgreementRequestResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateAgreementRequestResponse.Builder,,CreateAgreementRequestResponse> MarketplaceAgreementResponse.Builder,SdkBuilder<CreateAgreementRequestResponse.Builder,,CreateAgreementRequestResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateAgreementRequestResponse
@Mutable
@NotThreadSafe
public static interface CreateAgreementRequestResponse.Builder
extends MarketplaceAgreementResponse.Builder, SdkPojo, CopyableBuilder<CreateAgreementRequestResponse.Builder,CreateAgreementRequestResponse>
-
Method Summary
Modifier and TypeMethodDescriptionagreementRequestId(String agreementRequestId) The unique identifier of the agreement request created.chargeSummary(Consumer<ChargeSummary.Builder> chargeSummary) Provides details of the charges associated with the agreement request.chargeSummary(ChargeSummary chargeSummary) Provides details of the charges associated with the agreement request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.marketplaceagreement.model.MarketplaceAgreementResponse.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
-
agreementRequestId
The unique identifier of the agreement request created. Use this identifier with
AcceptAgreementRequestto accept the agreement.- Parameters:
agreementRequestId- The unique identifier of the agreement request created. Use this identifier withAcceptAgreementRequestto accept the agreement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chargeSummary
Provides details of the charges associated with the agreement request. This is only applicable when a request is created for
PurchaseAgreement.- Parameters:
chargeSummary- Provides details of the charges associated with the agreement request. This is only applicable when a request is created forPurchaseAgreement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chargeSummary
default CreateAgreementRequestResponse.Builder chargeSummary(Consumer<ChargeSummary.Builder> chargeSummary) Provides details of the charges associated with the agreement request. This is only applicable when a request is created for
This is a convenience method that creates an instance of thePurchaseAgreement.ChargeSummary.Builderavoiding the need to create one manually viaChargeSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochargeSummary(ChargeSummary).- Parameters:
chargeSummary- a consumer that will call methods onChargeSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-