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

The random byte string. 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& GetPlaintext() const{ return m_plaintext; } /** *

The random byte string. When you use the HTTP API or the AWS CLI, the value * is Base64-encoded. Otherwise, it is not Base64-encoded.

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

The random byte string. When you use the HTTP API or the AWS CLI, the value * is Base64-encoded. Otherwise, it is not Base64-encoded.

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

The random byte string. When you use the HTTP API or the AWS CLI, the value * is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline GenerateRandomResult& WithPlaintext(const Aws::Utils::CryptoBuffer& value) { SetPlaintext(value); return *this;} /** *

The random byte string. When you use the HTTP API or the AWS CLI, the value * is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline GenerateRandomResult& WithPlaintext(Aws::Utils::CryptoBuffer&& value) { SetPlaintext(std::move(value)); return *this;} private: Aws::Utils::CryptoBuffer m_plaintext; }; } // namespace Model } // namespace KMS } // namespace Aws