Class GetPaymentInstrumentBalanceRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetPaymentInstrumentBalanceRequest.Builder,GetPaymentInstrumentBalanceRequest>
Request structure for getting payment instrument balance.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe agent name associated with this request, used for observability.builder()final BlockchainChainIdchain()The specific blockchain chain to query balance on.final StringThe specific blockchain chain to query balance on.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe ID of the payment connector associated with this instrument.final StringThe ID of the payment instrument to query balance for.final StringThe ARN of the payment manager that owns this payment instrument.static Class<? extends GetPaymentInstrumentBalanceRequest.Builder>final InstrumentBalanceTokentoken()The token to query balance for.final StringThe token to query balance for.final StringtoString()Returns a string representation of this object.final StringuserId()The user ID associated with this payment instrument.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
userId
The user ID associated with this payment instrument.
- Returns:
- The user ID associated with this payment instrument.
-
agentName
The agent name associated with this request, used for observability.
- Returns:
- The agent name associated with this request, used for observability.
-
paymentManagerArn
The ARN of the payment manager that owns this payment instrument.
- Returns:
- The ARN of the payment manager that owns this payment instrument.
-
paymentConnectorId
The ID of the payment connector associated with this instrument.
- Returns:
- The ID of the payment connector associated with this instrument.
-
paymentInstrumentId
The ID of the payment instrument to query balance for.
- Returns:
- The ID of the payment instrument to query balance for.
-
chain
The specific blockchain chain to query balance on. Required because balances are chain-specific.
If the service returns an enum value that is not available in the current SDK version,
chainwill returnBlockchainChainId.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchainAsString().- Returns:
- The specific blockchain chain to query balance on. Required because balances are chain-specific.
- See Also:
-
chainAsString
The specific blockchain chain to query balance on. Required because balances are chain-specific.
If the service returns an enum value that is not available in the current SDK version,
chainwill returnBlockchainChainId.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchainAsString().- Returns:
- The specific blockchain chain to query balance on. Required because balances are chain-specific.
- See Also:
-
token
The token to query balance for. Only tokens supported for X402 payments are returned.
If the service returns an enum value that is not available in the current SDK version,
tokenwill returnInstrumentBalanceToken.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtokenAsString().- Returns:
- The token to query balance for. Only tokens supported for X402 payments are returned.
- See Also:
-
tokenAsString
The token to query balance for. Only tokens supported for X402 payments are returned.
If the service returns an enum value that is not available in the current SDK version,
tokenwill returnInstrumentBalanceToken.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtokenAsString().- Returns:
- The token to query balance for. Only tokens supported for X402 payments are returned.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetPaymentInstrumentBalanceRequest.Builder,GetPaymentInstrumentBalanceRequest> - Specified by:
toBuilderin classBedrockAgentCoreRequest
-
builder
-
serializableBuilderClass
public static Class<? extends GetPaymentInstrumentBalanceRequest.Builder> serializableBuilderClass() -
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-