Interface GetAccountBalanceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetAccountBalanceResponse.Builder,,GetAccountBalanceResponse> PaymentsResponse.Builder,SdkBuilder<GetAccountBalanceResponse.Builder,,GetAccountBalanceResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetAccountBalanceResponse
@Mutable
@NotThreadSafe
public static interface GetAccountBalanceResponse.Builder
extends PaymentsResponse.Builder, SdkPojo, CopyableBuilder<GetAccountBalanceResponse.Builder,GetAccountBalanceResponse>
-
Method Summary
Modifier and TypeMethodDescriptionaccountBalances(Collection<AccountBalance> accountBalances) The balance, as one amount for each merchant of record and currency.accountBalances(Consumer<AccountBalance.Builder>... accountBalances) The balance, as one amount for each merchant of record and currency.accountBalances(AccountBalance... accountBalances) The balance, as one amount for each merchant of record and currency.The pagination token that indicates the next set of results to retrieve.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.payments.model.PaymentsResponse.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
-
accountBalances
The balance, as one amount for each merchant of record and currency. This list is empty when your account has nothing in the requested balance.
- Parameters:
accountBalances- The balance, as one amount for each merchant of record and currency. This list is empty when your account has nothing in the requested balance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountBalances
The balance, as one amount for each merchant of record and currency. This list is empty when your account has nothing in the requested balance.
- Parameters:
accountBalances- The balance, as one amount for each merchant of record and currency. This list is empty when your account has nothing in the requested balance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountBalances
GetAccountBalanceResponse.Builder accountBalances(Consumer<AccountBalance.Builder>... accountBalances) The balance, as one amount for each merchant of record and currency. This list is empty when your account has nothing in the requested balance.
This is a convenience method that creates an instance of theAccountBalance.Builderavoiding the need to create one manually viaAccountBalance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccountBalances(List<AccountBalance>).- Parameters:
accountBalances- a consumer that will call methods onAccountBalance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token that indicates the next set of results to retrieve. This value is absent when there are no more results.
- Parameters:
nextToken- The pagination token that indicates the next set of results to retrieve. This value is absent when there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-