Interface AccountBalance.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AccountBalance.Builder,,AccountBalance> SdkBuilder<AccountBalance.Builder,,AccountBalance> SdkPojo
- Enclosing class:
AccountBalance
@Mutable
@NotThreadSafe
public static interface AccountBalance.Builder
extends SdkPojo, CopyableBuilder<AccountBalance.Builder,AccountBalance>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AccountBalance.Builderamount(Consumer<CurrencyAmount.Builder> amount) The amount, in the currency that the records making up this balance were issued in.amount(CurrencyAmount amount) The amount, in the currency that the records making up this balance were issued in.merchantOfRecord(String merchantOfRecord) The merchant of record that issued the invoices or credit memos that make up this amount.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
-
amount
The amount, in the currency that the records making up this balance were issued in.
- Parameters:
amount- The amount, in the currency that the records making up this balance were issued in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amount
The amount, in the currency that the records making up this balance were issued in.
This is a convenience method that creates an instance of theCurrencyAmount.Builderavoiding the need to create one manually viaCurrencyAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toamount(CurrencyAmount).- Parameters:
amount- a consumer that will call methods onCurrencyAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
merchantOfRecord
The merchant of record that issued the invoices or credit memos that make up this amount.
- Parameters:
merchantOfRecord- The merchant of record that issued the invoices or credit memos that make up this amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-