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

Metadata associated with the CMK.

*/ inline const KeyMetadata& GetKeyMetadata() const{ return m_keyMetadata; } /** *

Metadata associated with the CMK.

*/ inline void SetKeyMetadata(const KeyMetadata& value) { m_keyMetadata = value; } /** *

Metadata associated with the CMK.

*/ inline void SetKeyMetadata(KeyMetadata&& value) { m_keyMetadata = std::move(value); } /** *

Metadata associated with the CMK.

*/ inline CreateKeyResult& WithKeyMetadata(const KeyMetadata& value) { SetKeyMetadata(value); return *this;} /** *

Metadata associated with the CMK.

*/ inline CreateKeyResult& WithKeyMetadata(KeyMetadata&& value) { SetKeyMetadata(std::move(value)); return *this;} private: KeyMetadata m_keyMetadata; }; } // namespace Model } // namespace KMS } // namespace Aws