Interface AwsBillingX402PaymentInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsBillingX402PaymentInput.Builder,,AwsBillingX402PaymentInput> SdkBuilder<AwsBillingX402PaymentInput.Builder,,AwsBillingX402PaymentInput> SdkPojo
- Enclosing class:
AwsBillingX402PaymentInput
@Mutable
@NotThreadSafe
public static interface AwsBillingX402PaymentInput.Builder
extends SdkPojo, CopyableBuilder<AwsBillingX402PaymentInput.Builder,AwsBillingX402PaymentInput>
-
Method Summary
Modifier and TypeMethodDescriptionoptions(Consumer<AwsBillingPaymentOptions.Builder> options) Optional settings for the Amazon Web Services Billing payment.options(AwsBillingPaymentOptions options) Optional settings for the Amazon Web Services Billing payment.The seller's x402 payment requirement for Amazon Web Services Billing, passed unchanged as a JSON object.The x402 protocol version of the seller's HTTP 402 response, from itsx402Versionfield.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
version
The x402 protocol version of the seller's HTTP 402 response, from its
x402Versionfield. For example,2.- Parameters:
version- The x402 protocol version of the seller's HTTP 402 response, from itsx402Versionfield. For example,2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The seller's x402 payment requirement for Amazon Web Services Billing, passed unchanged as a JSON object. The service reads the seller-signed quote token from
extra.quoteTokenand returns aValidationExceptionif it is missing or invalid. Any change to the quote token invalidates its signature.- Parameters:
payload- The seller's x402 payment requirement for Amazon Web Services Billing, passed unchanged as a JSON object. The service reads the seller-signed quote token fromextra.quoteTokenand returns aValidationExceptionif it is missing or invalid. Any change to the quote token invalidates its signature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
options
Optional settings for the Amazon Web Services Billing payment.
- Parameters:
options- Optional settings for the Amazon Web Services Billing payment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
options
default AwsBillingX402PaymentInput.Builder options(Consumer<AwsBillingPaymentOptions.Builder> options) Optional settings for the Amazon Web Services Billing payment.
This is a convenience method that creates an instance of theAwsBillingPaymentOptions.Builderavoiding the need to create one manually viaAwsBillingPaymentOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooptions(AwsBillingPaymentOptions).- Parameters:
options- a consumer that will call methods onAwsBillingPaymentOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-