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

Metadata associated with the key.

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

Metadata associated with the key.

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

Metadata associated with the key.

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

Metadata associated with the key.

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

Metadata associated with the key.

*/ inline DescribeKeyResult& WithKeyMetadata(KeyMetadata&& value) { SetKeyMetadata(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 DescribeKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: KeyMetadata m_keyMetadata; Aws::String m_requestId; }; } // namespace Model } // namespace KMS } // namespace Aws