Interface GetPaymentInstrumentBalanceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<GetPaymentInstrumentBalanceResponse.Builder,,GetPaymentInstrumentBalanceResponse> SdkBuilder<GetPaymentInstrumentBalanceResponse.Builder,,GetPaymentInstrumentBalanceResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPaymentInstrumentBalanceResponse
@Mutable
@NotThreadSafe
public static interface GetPaymentInstrumentBalanceResponse.Builder
extends BedrockAgentCoreResponse.Builder, SdkPojo, CopyableBuilder<GetPaymentInstrumentBalanceResponse.Builder,GetPaymentInstrumentBalanceResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpaymentInstrumentId(String paymentInstrumentId) The ID of the payment instrument.tokenBalance(Consumer<TokenBalance.Builder> tokenBalance) The balance of the supported token on the requested chain.tokenBalance(TokenBalance tokenBalance) The balance of the supported token on the requested chain.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
paymentInstrumentId
The ID of the payment instrument.
- Parameters:
paymentInstrumentId- The ID of the payment instrument.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenBalance
The balance of the supported token on the requested chain.
- Parameters:
tokenBalance- The balance of the supported token on the requested chain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenBalance
default GetPaymentInstrumentBalanceResponse.Builder tokenBalance(Consumer<TokenBalance.Builder> tokenBalance) The balance of the supported token on the requested chain.
This is a convenience method that creates an instance of theTokenBalance.Builderavoiding the need to create one manually viaTokenBalance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totokenBalance(TokenBalance).- Parameters:
tokenBalance- a consumer that will call methods onTokenBalance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-