/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the configuration of this multi-Region key. This field appears only
* when the KMS key is a primary or replica of a multi-Region key. For more
* information about any listed KMS key, use the DescribeKey
* operation.See Also:
AWS
* API Reference
Indicates whether the KMS key is a PRIMARY
or
* REPLICA
key.
Indicates whether the KMS key is a PRIMARY
or
* REPLICA
key.
Indicates whether the KMS key is a PRIMARY
or
* REPLICA
key.
Indicates whether the KMS key is a PRIMARY
or
* REPLICA
key.
Indicates whether the KMS key is a PRIMARY
or
* REPLICA
key.
Indicates whether the KMS key is a PRIMARY
or
* REPLICA
key.
Displays the key ARN and Region of the primary key. This field includes the * current KMS key if it is the primary key.
*/ inline const MultiRegionKey& GetPrimaryKey() const{ return m_primaryKey; } /** *Displays the key ARN and Region of the primary key. This field includes the * current KMS key if it is the primary key.
*/ inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; } /** *Displays the key ARN and Region of the primary key. This field includes the * current KMS key if it is the primary key.
*/ inline void SetPrimaryKey(const MultiRegionKey& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = value; } /** *Displays the key ARN and Region of the primary key. This field includes the * current KMS key if it is the primary key.
*/ inline void SetPrimaryKey(MultiRegionKey&& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = std::move(value); } /** *Displays the key ARN and Region of the primary key. This field includes the * current KMS key if it is the primary key.
*/ inline MultiRegionConfiguration& WithPrimaryKey(const MultiRegionKey& value) { SetPrimaryKey(value); return *this;} /** *Displays the key ARN and Region of the primary key. This field includes the * current KMS key if it is the primary key.
*/ inline MultiRegionConfiguration& WithPrimaryKey(MultiRegionKey&& value) { SetPrimaryKey(std::move(value)); return *this;} /** *displays the key ARNs and Regions of all replica keys. This field includes * the current KMS key if it is a replica key.
*/ inline const Aws::Vectordisplays the key ARNs and Regions of all replica keys. This field includes * the current KMS key if it is a replica key.
*/ inline bool ReplicaKeysHasBeenSet() const { return m_replicaKeysHasBeenSet; } /** *displays the key ARNs and Regions of all replica keys. This field includes * the current KMS key if it is a replica key.
*/ inline void SetReplicaKeys(const Aws::Vectordisplays the key ARNs and Regions of all replica keys. This field includes * the current KMS key if it is a replica key.
*/ inline void SetReplicaKeys(Aws::Vectordisplays the key ARNs and Regions of all replica keys. This field includes * the current KMS key if it is a replica key.
*/ inline MultiRegionConfiguration& WithReplicaKeys(const Aws::Vectordisplays the key ARNs and Regions of all replica keys. This field includes * the current KMS key if it is a replica key.
*/ inline MultiRegionConfiguration& WithReplicaKeys(Aws::Vectordisplays the key ARNs and Regions of all replica keys. This field includes * the current KMS key if it is a replica key.
*/ inline MultiRegionConfiguration& AddReplicaKeys(const MultiRegionKey& value) { m_replicaKeysHasBeenSet = true; m_replicaKeys.push_back(value); return *this; } /** *displays the key ARNs and Regions of all replica keys. This field includes * the current KMS key if it is a replica key.
*/ inline MultiRegionConfiguration& AddReplicaKeys(MultiRegionKey&& value) { m_replicaKeysHasBeenSet = true; m_replicaKeys.push_back(std::move(value)); return *this; } private: MultiRegionKeyType m_multiRegionKeyType; bool m_multiRegionKeyTypeHasBeenSet = false; MultiRegionKey m_primaryKey; bool m_primaryKeyHasBeenSet = false; Aws::Vector