/** * 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 EncryptDataResult { public: AWS_PAYMENTCRYPTOGRAPHYDATA_API EncryptDataResult(); AWS_PAYMENTCRYPTOGRAPHYDATA_API EncryptDataResult(const Aws::AmazonWebServiceResult& result); AWS_PAYMENTCRYPTOGRAPHYDATA_API EncryptDataResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The encrypted ciphertext.

*/ inline const Aws::String& GetCipherText() const{ return m_cipherText; } /** *

The encrypted ciphertext.

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

The encrypted ciphertext.

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

The encrypted ciphertext.

*/ inline void SetCipherText(const char* value) { m_cipherText.assign(value); } /** *

The encrypted ciphertext.

*/ inline EncryptDataResult& WithCipherText(const Aws::String& value) { SetCipherText(value); return *this;} /** *

The encrypted ciphertext.

*/ inline EncryptDataResult& WithCipherText(Aws::String&& value) { SetCipherText(std::move(value)); return *this;} /** *

The encrypted ciphertext.

*/ inline EncryptDataResult& WithCipherText(const char* value) { SetCipherText(value); return *this;} /** *

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

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

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

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

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

*/ 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 plaintext encryption.

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

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

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

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

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

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

*/ inline EncryptDataResult& 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 EncryptDataResult& 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 EncryptDataResult& 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 EncryptDataResult& WithKeyCheckValue(const char* value) { SetKeyCheckValue(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 EncryptDataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline EncryptDataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline EncryptDataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_cipherText; Aws::String m_keyArn; Aws::String m_keyCheckValue; Aws::String m_requestId; }; } // namespace Model } // namespace PaymentCryptographyData } // namespace Aws