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

The encrypted copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline const Aws::Utils::ByteBuffer& GetPrivateKeyCiphertextBlob() const{ return m_privateKeyCiphertextBlob; } /** *

The encrypted copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

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

The encrypted copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

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

The encrypted copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline GenerateDataKeyPairResult& WithPrivateKeyCiphertextBlob(const Aws::Utils::ByteBuffer& value) { SetPrivateKeyCiphertextBlob(value); return *this;} /** *

The encrypted copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline GenerateDataKeyPairResult& WithPrivateKeyCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetPrivateKeyCiphertextBlob(std::move(value)); return *this;} /** *

The plaintext copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline const Aws::Utils::CryptoBuffer& GetPrivateKeyPlaintext() const{ return m_privateKeyPlaintext; } /** *

The plaintext copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline void SetPrivateKeyPlaintext(const Aws::Utils::CryptoBuffer& value) { m_privateKeyPlaintext = value; } /** *

The plaintext copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline void SetPrivateKeyPlaintext(Aws::Utils::CryptoBuffer&& value) { m_privateKeyPlaintext = std::move(value); } /** *

The plaintext copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline GenerateDataKeyPairResult& WithPrivateKeyPlaintext(const Aws::Utils::CryptoBuffer& value) { SetPrivateKeyPlaintext(value); return *this;} /** *

The plaintext copy of the private key. When you use the HTTP API or the AWS * CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline GenerateDataKeyPairResult& WithPrivateKeyPlaintext(Aws::Utils::CryptoBuffer&& value) { SetPrivateKeyPlaintext(std::move(value)); return *this;} /** *

The public key (in plaintext).

*/ inline const Aws::Utils::ByteBuffer& GetPublicKey() const{ return m_publicKey; } /** *

The public key (in plaintext).

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

The public key (in plaintext).

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

The public key (in plaintext).

*/ inline GenerateDataKeyPairResult& WithPublicKey(const Aws::Utils::ByteBuffer& value) { SetPublicKey(value); return *this;} /** *

The public key (in plaintext).

*/ inline GenerateDataKeyPairResult& WithPublicKey(Aws::Utils::ByteBuffer&& value) { SetPublicKey(std::move(value)); return *this;} /** *

The Amazon Resource Name (key * ARN) of the CMK that encrypted the private key.

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

The Amazon Resource Name (key * ARN) of the CMK that encrypted the private key.

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

The Amazon Resource Name (key * ARN) of the CMK that encrypted the private key.

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

The Amazon Resource Name (key * ARN) of the CMK that encrypted the private key.

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

The Amazon Resource Name (key * ARN) of the CMK that encrypted the private key.

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

The Amazon Resource Name (key * ARN) of the CMK that encrypted the private key.

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

The Amazon Resource Name (key * ARN) of the CMK that encrypted the private key.

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

The type of data key pair that was generated.

*/ inline const DataKeyPairSpec& GetKeyPairSpec() const{ return m_keyPairSpec; } /** *

The type of data key pair that was generated.

*/ inline void SetKeyPairSpec(const DataKeyPairSpec& value) { m_keyPairSpec = value; } /** *

The type of data key pair that was generated.

*/ inline void SetKeyPairSpec(DataKeyPairSpec&& value) { m_keyPairSpec = std::move(value); } /** *

The type of data key pair that was generated.

*/ inline GenerateDataKeyPairResult& WithKeyPairSpec(const DataKeyPairSpec& value) { SetKeyPairSpec(value); return *this;} /** *

The type of data key pair that was generated.

*/ inline GenerateDataKeyPairResult& WithKeyPairSpec(DataKeyPairSpec&& value) { SetKeyPairSpec(std::move(value)); return *this;} private: Aws::Utils::ByteBuffer m_privateKeyCiphertextBlob; Aws::Utils::CryptoBuffer m_privateKeyPlaintext; Aws::Utils::ByteBuffer m_publicKey; Aws::String m_keyId; DataKeyPairSpec m_keyPairSpec; }; } // namespace Model } // namespace KMS } // namespace Aws