/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace KMS { namespace Model { /** *

Describes the primary or replica key in a multi-Region key.

See * Also:

AWS * API Reference

*/ class MultiRegionKey { public: AWS_KMS_API MultiRegionKey(); AWS_KMS_API MultiRegionKey(Aws::Utils::Json::JsonView jsonValue); AWS_KMS_API MultiRegionKey& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Displays the key ARN of a primary or replica key of a multi-Region key.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

Displays the key ARN of a primary or replica key of a multi-Region key.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

Displays the key ARN of a primary or replica key of a multi-Region key.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

Displays the key ARN of a primary or replica key of a multi-Region key.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

Displays the key ARN of a primary or replica key of a multi-Region key.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

Displays the key ARN of a primary or replica key of a multi-Region key.

*/ inline MultiRegionKey& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

Displays the key ARN of a primary or replica key of a multi-Region key.

*/ inline MultiRegionKey& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

Displays the key ARN of a primary or replica key of a multi-Region key.

*/ inline MultiRegionKey& WithArn(const char* value) { SetArn(value); return *this;} /** *

Displays the Amazon Web Services Region of a primary or replica key in a * multi-Region key.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

Displays the Amazon Web Services Region of a primary or replica key in a * multi-Region key.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

Displays the Amazon Web Services Region of a primary or replica key in a * multi-Region key.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

Displays the Amazon Web Services Region of a primary or replica key in a * multi-Region key.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

Displays the Amazon Web Services Region of a primary or replica key in a * multi-Region key.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

Displays the Amazon Web Services Region of a primary or replica key in a * multi-Region key.

*/ inline MultiRegionKey& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

Displays the Amazon Web Services Region of a primary or replica key in a * multi-Region key.

*/ inline MultiRegionKey& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

Displays the Amazon Web Services Region of a primary or replica key in a * multi-Region key.

*/ inline MultiRegionKey& WithRegion(const char* value) { SetRegion(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; }; } // namespace Model } // namespace KMS } // namespace Aws