/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 ReplicateKeyResult { public: AWS_KMS_API ReplicateKeyResult(); AWS_KMS_API ReplicateKeyResult(const Aws::AmazonWebServiceResult& result); AWS_KMS_API ReplicateKeyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Displays details about the new replica key, including its Amazon Resource * Name (key * ARN) and Key * states of KMS keys. It also includes the ARN and Amazon Web Services Region * of its primary key and other replica keys.

*/ inline const KeyMetadata& GetReplicaKeyMetadata() const{ return m_replicaKeyMetadata; } /** *

Displays details about the new replica key, including its Amazon Resource * Name (key * ARN) and Key * states of KMS keys. It also includes the ARN and Amazon Web Services Region * of its primary key and other replica keys.

*/ inline void SetReplicaKeyMetadata(const KeyMetadata& value) { m_replicaKeyMetadata = value; } /** *

Displays details about the new replica key, including its Amazon Resource * Name (key * ARN) and Key * states of KMS keys. It also includes the ARN and Amazon Web Services Region * of its primary key and other replica keys.

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

Displays details about the new replica key, including its Amazon Resource * Name (key * ARN) and Key * states of KMS keys. It also includes the ARN and Amazon Web Services Region * of its primary key and other replica keys.

*/ inline ReplicateKeyResult& WithReplicaKeyMetadata(const KeyMetadata& value) { SetReplicaKeyMetadata(value); return *this;} /** *

Displays details about the new replica key, including its Amazon Resource * Name (key * ARN) and Key * states of KMS keys. It also includes the ARN and Amazon Web Services Region * of its primary key and other replica keys.

*/ inline ReplicateKeyResult& WithReplicaKeyMetadata(KeyMetadata&& value) { SetReplicaKeyMetadata(std::move(value)); return *this;} /** *

The key policy of the new replica key. The value is a key policy document in * JSON format.

*/ inline const Aws::String& GetReplicaPolicy() const{ return m_replicaPolicy; } /** *

The key policy of the new replica key. The value is a key policy document in * JSON format.

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

The key policy of the new replica key. The value is a key policy document in * JSON format.

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

The key policy of the new replica key. The value is a key policy document in * JSON format.

*/ inline void SetReplicaPolicy(const char* value) { m_replicaPolicy.assign(value); } /** *

The key policy of the new replica key. The value is a key policy document in * JSON format.

*/ inline ReplicateKeyResult& WithReplicaPolicy(const Aws::String& value) { SetReplicaPolicy(value); return *this;} /** *

The key policy of the new replica key. The value is a key policy document in * JSON format.

*/ inline ReplicateKeyResult& WithReplicaPolicy(Aws::String&& value) { SetReplicaPolicy(std::move(value)); return *this;} /** *

The key policy of the new replica key. The value is a key policy document in * JSON format.

*/ inline ReplicateKeyResult& WithReplicaPolicy(const char* value) { SetReplicaPolicy(value); return *this;} /** *

The tags on the new replica key. The value is a list of tag key and tag value * pairs.

*/ inline const Aws::Vector& GetReplicaTags() const{ return m_replicaTags; } /** *

The tags on the new replica key. The value is a list of tag key and tag value * pairs.

*/ inline void SetReplicaTags(const Aws::Vector& value) { m_replicaTags = value; } /** *

The tags on the new replica key. The value is a list of tag key and tag value * pairs.

*/ inline void SetReplicaTags(Aws::Vector&& value) { m_replicaTags = std::move(value); } /** *

The tags on the new replica key. The value is a list of tag key and tag value * pairs.

*/ inline ReplicateKeyResult& WithReplicaTags(const Aws::Vector& value) { SetReplicaTags(value); return *this;} /** *

The tags on the new replica key. The value is a list of tag key and tag value * pairs.

*/ inline ReplicateKeyResult& WithReplicaTags(Aws::Vector&& value) { SetReplicaTags(std::move(value)); return *this;} /** *

The tags on the new replica key. The value is a list of tag key and tag value * pairs.

*/ inline ReplicateKeyResult& AddReplicaTags(const Tag& value) { m_replicaTags.push_back(value); return *this; } /** *

The tags on the new replica key. The value is a list of tag key and tag value * pairs.

*/ inline ReplicateKeyResult& AddReplicaTags(Tag&& value) { m_replicaTags.push_back(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 ReplicateKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ReplicateKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ReplicateKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: KeyMetadata m_replicaKeyMetadata; Aws::String m_replicaPolicy; Aws::Vector m_replicaTags; Aws::String m_requestId; }; } // namespace Model } // namespace KMS } // namespace Aws