/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace PaymentCryptographyData { namespace Model { class DecryptDataResult { public: AWS_PAYMENTCRYPTOGRAPHYDATA_API DecryptDataResult(); AWS_PAYMENTCRYPTOGRAPHYDATA_API DecryptDataResult(const Aws::AmazonWebServiceResult& result); AWS_PAYMENTCRYPTOGRAPHYDATA_API DecryptDataResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The keyARN of the encryption key that Amazon Web Services * Payment Cryptography uses for ciphertext decryption.

*/ inline const Aws::String& GetKeyArn() const{ return m_keyArn; } /** *

The keyARN of the encryption key that Amazon Web Services * Payment Cryptography uses for ciphertext decryption.

*/ inline void SetKeyArn(const Aws::String& value) { m_keyArn = value; } /** *

The keyARN of the encryption key that Amazon Web Services * Payment Cryptography uses for ciphertext decryption.

*/ inline void SetKeyArn(Aws::String&& value) { m_keyArn = std::move(value); } /** *

The keyARN of the encryption key that Amazon Web Services * Payment Cryptography uses for ciphertext decryption.

*/ inline void SetKeyArn(const char* value) { m_keyArn.assign(value); } /** *

The keyARN of the encryption key that Amazon Web Services * Payment Cryptography uses for ciphertext decryption.

*/ inline DecryptDataResult& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;} /** *

The keyARN of the encryption key that Amazon Web Services * Payment Cryptography uses for ciphertext decryption.

*/ inline DecryptDataResult& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;} /** *

The keyARN of the encryption key that Amazon Web Services * Payment Cryptography uses for ciphertext decryption.

*/ inline DecryptDataResult& WithKeyArn(const char* value) { SetKeyArn(value); return *this;} /** *

The key check value (KCV) of the encryption key. The KCV is used to check if * all parties holding a given key have the same key or to detect that a key has * changed. Amazon Web Services Payment Cryptography calculates the KCV by using * standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the * resulting cryptogram.

*/ inline const Aws::String& GetKeyCheckValue() const{ return m_keyCheckValue; } /** *

The key check value (KCV) of the encryption key. The KCV is used to check if * all parties holding a given key have the same key or to detect that a key has * changed. Amazon Web Services Payment Cryptography calculates the KCV by using * standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the * resulting cryptogram.

*/ inline void SetKeyCheckValue(const Aws::String& value) { m_keyCheckValue = value; } /** *

The key check value (KCV) of the encryption key. The KCV is used to check if * all parties holding a given key have the same key or to detect that a key has * changed. Amazon Web Services Payment Cryptography calculates the KCV by using * standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the * resulting cryptogram.

*/ inline void SetKeyCheckValue(Aws::String&& value) { m_keyCheckValue = std::move(value); } /** *

The key check value (KCV) of the encryption key. The KCV is used to check if * all parties holding a given key have the same key or to detect that a key has * changed. Amazon Web Services Payment Cryptography calculates the KCV by using * standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the * resulting cryptogram.

*/ inline void SetKeyCheckValue(const char* value) { m_keyCheckValue.assign(value); } /** *

The key check value (KCV) of the encryption key. The KCV is used to check if * all parties holding a given key have the same key or to detect that a key has * changed. Amazon Web Services Payment Cryptography calculates the KCV by using * standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the * resulting cryptogram.

*/ inline DecryptDataResult& WithKeyCheckValue(const Aws::String& value) { SetKeyCheckValue(value); return *this;} /** *

The key check value (KCV) of the encryption key. The KCV is used to check if * all parties holding a given key have the same key or to detect that a key has * changed. Amazon Web Services Payment Cryptography calculates the KCV by using * standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the * resulting cryptogram.

*/ inline DecryptDataResult& WithKeyCheckValue(Aws::String&& value) { SetKeyCheckValue(std::move(value)); return *this;} /** *

The key check value (KCV) of the encryption key. The KCV is used to check if * all parties holding a given key have the same key or to detect that a key has * changed. Amazon Web Services Payment Cryptography calculates the KCV by using * standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and * then truncating the result to the first 3 bytes, or 6 hex digits, of the * resulting cryptogram.

*/ inline DecryptDataResult& WithKeyCheckValue(const char* value) { SetKeyCheckValue(value); return *this;} /** *

The decrypted plaintext data.

*/ inline const Aws::String& GetPlainText() const{ return m_plainText; } /** *

The decrypted plaintext data.

*/ inline void SetPlainText(const Aws::String& value) { m_plainText = value; } /** *

The decrypted plaintext data.

*/ inline void SetPlainText(Aws::String&& value) { m_plainText = std::move(value); } /** *

The decrypted plaintext data.

*/ inline void SetPlainText(const char* value) { m_plainText.assign(value); } /** *

The decrypted plaintext data.

*/ inline DecryptDataResult& WithPlainText(const Aws::String& value) { SetPlainText(value); return *this;} /** *

The decrypted plaintext data.

*/ inline DecryptDataResult& WithPlainText(Aws::String&& value) { SetPlainText(std::move(value)); return *this;} /** *

The decrypted plaintext data.

*/ inline DecryptDataResult& WithPlainText(const char* value) { SetPlainText(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DecryptDataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DecryptDataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DecryptDataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_keyArn; Aws::String m_keyCheckValue; Aws::String m_plainText; Aws::String m_requestId; }; } // namespace Model } // namespace PaymentCryptographyData } // namespace Aws