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

The reencrypted data. When you use the HTTP API or the Amazon Web Services * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const{ return m_ciphertextBlob; } /** *

The reencrypted data. When you use the HTTP API or the Amazon Web Services * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline void SetCiphertextBlob(const Aws::Utils::ByteBuffer& value) { m_ciphertextBlob = value; } /** *

The reencrypted data. When you use the HTTP API or the Amazon Web Services * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline void SetCiphertextBlob(Aws::Utils::ByteBuffer&& value) { m_ciphertextBlob = std::move(value); } /** *

The reencrypted data. When you use the HTTP API or the Amazon Web Services * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline ReEncryptResult& WithCiphertextBlob(const Aws::Utils::ByteBuffer& value) { SetCiphertextBlob(value); return *this;} /** *

The reencrypted data. When you use the HTTP API or the Amazon Web Services * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline ReEncryptResult& WithCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetCiphertextBlob(std::move(value)); return *this;} /** *

Unique identifier of the KMS key used to originally encrypt the data.

*/ inline const Aws::String& GetSourceKeyId() const{ return m_sourceKeyId; } /** *

Unique identifier of the KMS key used to originally encrypt the data.

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

Unique identifier of the KMS key used to originally encrypt the data.

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

Unique identifier of the KMS key used to originally encrypt the data.

*/ inline void SetSourceKeyId(const char* value) { m_sourceKeyId.assign(value); } /** *

Unique identifier of the KMS key used to originally encrypt the data.

*/ inline ReEncryptResult& WithSourceKeyId(const Aws::String& value) { SetSourceKeyId(value); return *this;} /** *

Unique identifier of the KMS key used to originally encrypt the data.

*/ inline ReEncryptResult& WithSourceKeyId(Aws::String&& value) { SetSourceKeyId(std::move(value)); return *this;} /** *

Unique identifier of the KMS key used to originally encrypt the data.

*/ inline ReEncryptResult& WithSourceKeyId(const char* value) { SetSourceKeyId(value); return *this;} /** *

The Amazon Resource Name (key * ARN) of the KMS key that was used to reencrypt the data.

*/ inline const Aws::String& GetKeyId() const{ return m_keyId; } /** *

The Amazon Resource Name (key * ARN) of the KMS key that was used to reencrypt the data.

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

The Amazon Resource Name (key * ARN) of the KMS key that was used to reencrypt the data.

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

The Amazon Resource Name (key * ARN) of the KMS key that was used to reencrypt the data.

*/ inline void SetKeyId(const char* value) { m_keyId.assign(value); } /** *

The Amazon Resource Name (key * ARN) of the KMS key that was used to reencrypt the data.

*/ inline ReEncryptResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;} /** *

The Amazon Resource Name (key * ARN) of the KMS key that was used to reencrypt the data.

*/ inline ReEncryptResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;} /** *

The Amazon Resource Name (key * ARN) of the KMS key that was used to reencrypt the data.

*/ inline ReEncryptResult& WithKeyId(const char* value) { SetKeyId(value); return *this;} /** *

The encryption algorithm that was used to decrypt the ciphertext before it * was reencrypted.

*/ inline const EncryptionAlgorithmSpec& GetSourceEncryptionAlgorithm() const{ return m_sourceEncryptionAlgorithm; } /** *

The encryption algorithm that was used to decrypt the ciphertext before it * was reencrypted.

*/ inline void SetSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_sourceEncryptionAlgorithm = value; } /** *

The encryption algorithm that was used to decrypt the ciphertext before it * was reencrypted.

*/ inline void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_sourceEncryptionAlgorithm = std::move(value); } /** *

The encryption algorithm that was used to decrypt the ciphertext before it * was reencrypted.

*/ inline ReEncryptResult& WithSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { SetSourceEncryptionAlgorithm(value); return *this;} /** *

The encryption algorithm that was used to decrypt the ciphertext before it * was reencrypted.

*/ inline ReEncryptResult& WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { SetSourceEncryptionAlgorithm(std::move(value)); return *this;} /** *

The encryption algorithm that was used to reencrypt the data.

*/ inline const EncryptionAlgorithmSpec& GetDestinationEncryptionAlgorithm() const{ return m_destinationEncryptionAlgorithm; } /** *

The encryption algorithm that was used to reencrypt the data.

*/ inline void SetDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_destinationEncryptionAlgorithm = value; } /** *

The encryption algorithm that was used to reencrypt the data.

*/ inline void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_destinationEncryptionAlgorithm = std::move(value); } /** *

The encryption algorithm that was used to reencrypt the data.

*/ inline ReEncryptResult& WithDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { SetDestinationEncryptionAlgorithm(value); return *this;} /** *

The encryption algorithm that was used to reencrypt the data.

*/ inline ReEncryptResult& WithDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { SetDestinationEncryptionAlgorithm(std::move(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 ReEncryptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ReEncryptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ReEncryptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::ByteBuffer m_ciphertextBlob; Aws::String m_sourceKeyId; Aws::String m_keyId; EncryptionAlgorithmSpec m_sourceEncryptionAlgorithm; EncryptionAlgorithmSpec m_destinationEncryptionAlgorithm; Aws::String m_requestId; }; } // namespace Model } // namespace KMS } // namespace Aws