Class Card
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Card.Builder,Card>
The details of a card payment instrument.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal CardBrandbrand()The network the card runs on.final StringThe network the card runs on.static Card.Builderbuilder()final CardTypecardType()Whether the card is a credit card or a debit card.final StringWhether the card is a credit card or a debit card.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final IntegerThe calendar month that the card expires in.final IntegerThe calendar year that the card expires in.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe country of the bank that issued the card.final StringThe bank that issued the card.final Stringlast4()The last four digits of the card number.static Class<? extends Card.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
brand
The network the card runs on.
If the service returns an enum value that is not available in the current SDK version,
brandwill returnCardBrand.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombrandAsString().- Returns:
- The network the card runs on.
- See Also:
-
brandAsString
The network the card runs on.
If the service returns an enum value that is not available in the current SDK version,
brandwill returnCardBrand.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombrandAsString().- Returns:
- The network the card runs on.
- See Also:
-
last4
The last four digits of the card number.
- Returns:
- The last four digits of the card number.
-
expirationMonth
The calendar month that the card expires in.
- Returns:
- The calendar month that the card expires in.
-
expirationYear
The calendar year that the card expires in.
- Returns:
- The calendar year that the card expires in.
-
cardType
Whether the card is a credit card or a debit card.
If the service returns an enum value that is not available in the current SDK version,
cardTypewill returnCardType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcardTypeAsString().- Returns:
- Whether the card is a credit card or a debit card.
- See Also:
-
cardTypeAsString
Whether the card is a credit card or a debit card.
If the service returns an enum value that is not available in the current SDK version,
cardTypewill returnCardType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcardTypeAsString().- Returns:
- Whether the card is a credit card or a debit card.
- See Also:
-
issuingBank
The bank that issued the card.
- Returns:
- The bank that issued the card.
-
issuerCountry
The country of the bank that issued the card.
- Returns:
- The country of the bank that issued the card.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Card.Builder,Card> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-