/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PaymentCryptographyData { namespace Model { /** *

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

See Also:

AWS * API Reference

*/ class AmexCardSecurityCodeVersion2 { public: AWS_PAYMENTCRYPTOGRAPHYDATA_API AmexCardSecurityCodeVersion2(); AWS_PAYMENTCRYPTOGRAPHYDATA_API AmexCardSecurityCodeVersion2(Aws::Utils::Json::JsonView jsonValue); AWS_PAYMENTCRYPTOGRAPHYDATA_API AmexCardSecurityCodeVersion2& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The expiry date of a payment card.

*/ inline const Aws::String& GetCardExpiryDate() const{ return m_cardExpiryDate; } /** *

The expiry date of a payment card.

*/ inline bool CardExpiryDateHasBeenSet() const { return m_cardExpiryDateHasBeenSet; } /** *

The expiry date of a payment card.

*/ inline void SetCardExpiryDate(const Aws::String& value) { m_cardExpiryDateHasBeenSet = true; m_cardExpiryDate = value; } /** *

The expiry date of a payment card.

*/ inline void SetCardExpiryDate(Aws::String&& value) { m_cardExpiryDateHasBeenSet = true; m_cardExpiryDate = std::move(value); } /** *

The expiry date of a payment card.

*/ inline void SetCardExpiryDate(const char* value) { m_cardExpiryDateHasBeenSet = true; m_cardExpiryDate.assign(value); } /** *

The expiry date of a payment card.

*/ inline AmexCardSecurityCodeVersion2& WithCardExpiryDate(const Aws::String& value) { SetCardExpiryDate(value); return *this;} /** *

The expiry date of a payment card.

*/ inline AmexCardSecurityCodeVersion2& WithCardExpiryDate(Aws::String&& value) { SetCardExpiryDate(std::move(value)); return *this;} /** *

The expiry date of a payment card.

*/ inline AmexCardSecurityCodeVersion2& WithCardExpiryDate(const char* value) { SetCardExpiryDate(value); return *this;} /** *

The service code of the AMEX payment card. This is different from the Card * Security Code (CSC).

*/ inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } /** *

The service code of the AMEX payment card. This is different from the Card * Security Code (CSC).

*/ inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } /** *

The service code of the AMEX payment card. This is different from the Card * Security Code (CSC).

*/ inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } /** *

The service code of the AMEX payment card. This is different from the Card * Security Code (CSC).

*/ inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } /** *

The service code of the AMEX payment card. This is different from the Card * Security Code (CSC).

*/ inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } /** *

The service code of the AMEX payment card. This is different from the Card * Security Code (CSC).

*/ inline AmexCardSecurityCodeVersion2& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} /** *

The service code of the AMEX payment card. This is different from the Card * Security Code (CSC).

*/ inline AmexCardSecurityCodeVersion2& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} /** *

The service code of the AMEX payment card. This is different from the Card * Security Code (CSC).

*/ inline AmexCardSecurityCodeVersion2& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} private: Aws::String m_cardExpiryDate; bool m_cardExpiryDateHasBeenSet = false; Aws::String m_serviceCode; bool m_serviceCodeHasBeenSet = false; }; } // namespace Model } // namespace PaymentCryptographyData } // namespace Aws