Class CardVerificationAttributes

java.lang.Object
software.amazon.awssdk.services.paymentcryptographydata.model.CardVerificationAttributes
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<CardVerificationAttributes.Builder,CardVerificationAttributes>

@Generated("software.amazon.awssdk:codegen") public final class CardVerificationAttributes extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CardVerificationAttributes.Builder,CardVerificationAttributes>

Card data parameters that are requried to verify Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2), or Card Security Codes (CSC).

See Also:
  • Method Details

    • amexCardSecurityCodeVersion1

      public final AmexCardSecurityCodeVersion1 amexCardSecurityCodeVersion1()
      Returns the value of the AmexCardSecurityCodeVersion1 property for this object.
      Returns:
      The value of the AmexCardSecurityCodeVersion1 property for this object.
    • amexCardSecurityCodeVersion2

      public final AmexCardSecurityCodeVersion2 amexCardSecurityCodeVersion2()

      Card data parameters that are required to verify a Card Security Code (CSC2) for an AMEX payment card.

      Returns:
      Card data parameters that are required to verify a Card Security Code (CSC2) for an AMEX payment card.
    • cardVerificationValue1

      public final CardVerificationValue1 cardVerificationValue1()

      Card data parameters that are required to verify Card Verification Value (CVV) for the payment card.

      Returns:
      Card data parameters that are required to verify Card Verification Value (CVV) for the payment card.
    • cardVerificationValue2

      public final CardVerificationValue2 cardVerificationValue2()

      Card data parameters that are required to verify Card Verification Value (CVV2) for the payment card.

      Returns:
      Card data parameters that are required to verify Card Verification Value (CVV2) for the payment card.
    • cardHolderVerificationValue

      public final CardHolderVerificationValue cardHolderVerificationValue()

      Card data parameters that are required to verify a cardholder verification value for the payment card.

      Returns:
      Card data parameters that are required to verify a cardholder verification value for the payment card.
    • dynamicCardVerificationCode

      public final DynamicCardVerificationCode dynamicCardVerificationCode()

      Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.

      Returns:
      Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.
    • dynamicCardVerificationValue

      public final DynamicCardVerificationValue dynamicCardVerificationValue()

      Card data parameters that are required to verify CDynamic Card Verification Value (dCVV) for the payment card.

      Returns:
      Card data parameters that are required to verify CDynamic Card Verification Value (dCVV) for the payment card.
    • discoverDynamicCardVerificationCode

      public final DiscoverDynamicCardVerificationCode discoverDynamicCardVerificationCode()

      Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.

      Returns:
      Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.
    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<CardVerificationAttributes.Builder,CardVerificationAttributes>
      Returns:
      a builder for type T
    • builder

      public static CardVerificationAttributes.Builder builder()
    • serializableBuilderClass

      public static Class<? extends CardVerificationAttributes.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • fromAmexCardSecurityCodeVersion1

      public static CardVerificationAttributes fromAmexCardSecurityCodeVersion1(AmexCardSecurityCodeVersion1 amexCardSecurityCodeVersion1)
      Create an instance of this class with amexCardSecurityCodeVersion1() initialized to the given value. Sets the value of the AmexCardSecurityCodeVersion1 property for this object.
      Parameters:
      amexCardSecurityCodeVersion1 - The new value for the AmexCardSecurityCodeVersion1 property for this object.
    • fromAmexCardSecurityCodeVersion1

      public static CardVerificationAttributes fromAmexCardSecurityCodeVersion1(Consumer<AmexCardSecurityCodeVersion1.Builder> amexCardSecurityCodeVersion1)
      Create an instance of this class with amexCardSecurityCodeVersion1() initialized to the given value. Sets the value of the AmexCardSecurityCodeVersion1 property for this object.
      Parameters:
      amexCardSecurityCodeVersion1 - The new value for the AmexCardSecurityCodeVersion1 property for this object.
    • fromAmexCardSecurityCodeVersion2

      public static CardVerificationAttributes fromAmexCardSecurityCodeVersion2(AmexCardSecurityCodeVersion2 amexCardSecurityCodeVersion2)
      Create an instance of this class with amexCardSecurityCodeVersion2() initialized to the given value.

      Card data parameters that are required to verify a Card Security Code (CSC2) for an AMEX payment card.

      Parameters:
      amexCardSecurityCodeVersion2 - Card data parameters that are required to verify a Card Security Code (CSC2) for an AMEX payment card.
    • fromAmexCardSecurityCodeVersion2

      public static CardVerificationAttributes fromAmexCardSecurityCodeVersion2(Consumer<AmexCardSecurityCodeVersion2.Builder> amexCardSecurityCodeVersion2)
      Create an instance of this class with amexCardSecurityCodeVersion2() initialized to the given value.

      Card data parameters that are required to verify a Card Security Code (CSC2) for an AMEX payment card.

      Parameters:
      amexCardSecurityCodeVersion2 - Card data parameters that are required to verify a Card Security Code (CSC2) for an AMEX payment card.
    • fromCardVerificationValue1

      public static CardVerificationAttributes fromCardVerificationValue1(CardVerificationValue1 cardVerificationValue1)
      Create an instance of this class with cardVerificationValue1() initialized to the given value.

      Card data parameters that are required to verify Card Verification Value (CVV) for the payment card.

      Parameters:
      cardVerificationValue1 - Card data parameters that are required to verify Card Verification Value (CVV) for the payment card.
    • fromCardVerificationValue1

      public static CardVerificationAttributes fromCardVerificationValue1(Consumer<CardVerificationValue1.Builder> cardVerificationValue1)
      Create an instance of this class with cardVerificationValue1() initialized to the given value.

      Card data parameters that are required to verify Card Verification Value (CVV) for the payment card.

      Parameters:
      cardVerificationValue1 - Card data parameters that are required to verify Card Verification Value (CVV) for the payment card.
    • fromCardVerificationValue2

      public static CardVerificationAttributes fromCardVerificationValue2(CardVerificationValue2 cardVerificationValue2)
      Create an instance of this class with cardVerificationValue2() initialized to the given value.

      Card data parameters that are required to verify Card Verification Value (CVV2) for the payment card.

      Parameters:
      cardVerificationValue2 - Card data parameters that are required to verify Card Verification Value (CVV2) for the payment card.
    • fromCardVerificationValue2

      public static CardVerificationAttributes fromCardVerificationValue2(Consumer<CardVerificationValue2.Builder> cardVerificationValue2)
      Create an instance of this class with cardVerificationValue2() initialized to the given value.

      Card data parameters that are required to verify Card Verification Value (CVV2) for the payment card.

      Parameters:
      cardVerificationValue2 - Card data parameters that are required to verify Card Verification Value (CVV2) for the payment card.
    • fromCardHolderVerificationValue

      public static CardVerificationAttributes fromCardHolderVerificationValue(CardHolderVerificationValue cardHolderVerificationValue)
      Create an instance of this class with cardHolderVerificationValue() initialized to the given value.

      Card data parameters that are required to verify a cardholder verification value for the payment card.

      Parameters:
      cardHolderVerificationValue - Card data parameters that are required to verify a cardholder verification value for the payment card.
    • fromCardHolderVerificationValue

      public static CardVerificationAttributes fromCardHolderVerificationValue(Consumer<CardHolderVerificationValue.Builder> cardHolderVerificationValue)
      Create an instance of this class with cardHolderVerificationValue() initialized to the given value.

      Card data parameters that are required to verify a cardholder verification value for the payment card.

      Parameters:
      cardHolderVerificationValue - Card data parameters that are required to verify a cardholder verification value for the payment card.
    • fromDynamicCardVerificationCode

      public static CardVerificationAttributes fromDynamicCardVerificationCode(DynamicCardVerificationCode dynamicCardVerificationCode)
      Create an instance of this class with dynamicCardVerificationCode() initialized to the given value.

      Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.

      Parameters:
      dynamicCardVerificationCode - Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.
    • fromDynamicCardVerificationCode

      public static CardVerificationAttributes fromDynamicCardVerificationCode(Consumer<DynamicCardVerificationCode.Builder> dynamicCardVerificationCode)
      Create an instance of this class with dynamicCardVerificationCode() initialized to the given value.

      Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.

      Parameters:
      dynamicCardVerificationCode - Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.
    • fromDynamicCardVerificationValue

      public static CardVerificationAttributes fromDynamicCardVerificationValue(DynamicCardVerificationValue dynamicCardVerificationValue)
      Create an instance of this class with dynamicCardVerificationValue() initialized to the given value.

      Card data parameters that are required to verify CDynamic Card Verification Value (dCVV) for the payment card.

      Parameters:
      dynamicCardVerificationValue - Card data parameters that are required to verify CDynamic Card Verification Value (dCVV) for the payment card.
    • fromDynamicCardVerificationValue

      public static CardVerificationAttributes fromDynamicCardVerificationValue(Consumer<DynamicCardVerificationValue.Builder> dynamicCardVerificationValue)
      Create an instance of this class with dynamicCardVerificationValue() initialized to the given value.

      Card data parameters that are required to verify CDynamic Card Verification Value (dCVV) for the payment card.

      Parameters:
      dynamicCardVerificationValue - Card data parameters that are required to verify CDynamic Card Verification Value (dCVV) for the payment card.
    • fromDiscoverDynamicCardVerificationCode

      public static CardVerificationAttributes fromDiscoverDynamicCardVerificationCode(DiscoverDynamicCardVerificationCode discoverDynamicCardVerificationCode)
      Create an instance of this class with discoverDynamicCardVerificationCode() initialized to the given value.

      Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.

      Parameters:
      discoverDynamicCardVerificationCode - Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.
    • fromDiscoverDynamicCardVerificationCode

      public static CardVerificationAttributes fromDiscoverDynamicCardVerificationCode(Consumer<DiscoverDynamicCardVerificationCode.Builder> discoverDynamicCardVerificationCode)
      Create an instance of this class with discoverDynamicCardVerificationCode() initialized to the given value.

      Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.

      Parameters:
      discoverDynamicCardVerificationCode - Card data parameters that are required to verify CDynamic Card Verification Code (dCVC) for the payment card.
    • type

      Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will be CardVerificationAttributes.Type.UNKNOWN_TO_SDK_VERSION if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will be CardVerificationAttributes.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.