Interface PaymentIntentAmountBreakdown.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PaymentIntentAmountBreakdown.Builder,,PaymentIntentAmountBreakdown> SdkBuilder<PaymentIntentAmountBreakdown.Builder,,PaymentIntentAmountBreakdown> SdkPojo
- Enclosing class:
PaymentIntentAmountBreakdown
@Mutable
@NotThreadSafe
public static interface PaymentIntentAmountBreakdown.Builder
extends SdkPojo, CopyableBuilder<PaymentIntentAmountBreakdown.Builder,PaymentIntentAmountBreakdown>
-
Method Summary
Modifier and TypeMethodDescriptiondiscount(Consumer<PaymentIntentAmount.Builder> discount) The discount applied to the order, as a positive amount that is subtracted from the total.discount(PaymentIntentAmount discount) The discount applied to the order, as a positive amount that is subtracted from the total.shipping(Consumer<PaymentIntentAmount.Builder> shipping) The shipping charge for the order.shipping(PaymentIntentAmount shipping) The shipping charge for the order.The tax charged on the order.tax(PaymentIntentAmount tax) The tax charged on the order.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
-
shipping
The shipping charge for the order.
- Parameters:
shipping- The shipping charge for the order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shipping
default PaymentIntentAmountBreakdown.Builder shipping(Consumer<PaymentIntentAmount.Builder> shipping) The shipping charge for the order.
This is a convenience method that creates an instance of thePaymentIntentAmount.Builderavoiding the need to create one manually viaPaymentIntentAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toshipping(PaymentIntentAmount).- Parameters:
shipping- a consumer that will call methods onPaymentIntentAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tax
The tax charged on the order.
- Parameters:
tax- The tax charged on the order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tax
The tax charged on the order.
This is a convenience method that creates an instance of thePaymentIntentAmount.Builderavoiding the need to create one manually viaPaymentIntentAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totax(PaymentIntentAmount).- Parameters:
tax- a consumer that will call methods onPaymentIntentAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
discount
The discount applied to the order, as a positive amount that is subtracted from the total.
- Parameters:
discount- The discount applied to the order, as a positive amount that is subtracted from the total.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
discount
default PaymentIntentAmountBreakdown.Builder discount(Consumer<PaymentIntentAmount.Builder> discount) The discount applied to the order, as a positive amount that is subtracted from the total.
This is a convenience method that creates an instance of thePaymentIntentAmount.Builderavoiding the need to create one manually viaPaymentIntentAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todiscount(PaymentIntentAmount).- Parameters:
discount- a consumer that will call methods onPaymentIntentAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-