AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MultiRegionConfiguration.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/model/MultiRegionKeyType.h>
9#include <aws/kms/model/MultiRegionKey.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace KMS
24{
25namespace Model
26{
27
37 {
38 public:
43
44
46
50 inline const MultiRegionKeyType& GetMultiRegionKeyType() const{ return m_multiRegionKeyType; }
51 inline bool MultiRegionKeyTypeHasBeenSet() const { return m_multiRegionKeyTypeHasBeenSet; }
52 inline void SetMultiRegionKeyType(const MultiRegionKeyType& value) { m_multiRegionKeyTypeHasBeenSet = true; m_multiRegionKeyType = value; }
53 inline void SetMultiRegionKeyType(MultiRegionKeyType&& value) { m_multiRegionKeyTypeHasBeenSet = true; m_multiRegionKeyType = std::move(value); }
57
59
63 inline const MultiRegionKey& GetPrimaryKey() const{ return m_primaryKey; }
64 inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; }
65 inline void SetPrimaryKey(const MultiRegionKey& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = value; }
66 inline void SetPrimaryKey(MultiRegionKey&& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = std::move(value); }
67 inline MultiRegionConfiguration& WithPrimaryKey(const MultiRegionKey& value) { SetPrimaryKey(value); return *this;}
68 inline MultiRegionConfiguration& WithPrimaryKey(MultiRegionKey&& value) { SetPrimaryKey(std::move(value)); return *this;}
70
72
76 inline const Aws::Vector<MultiRegionKey>& GetReplicaKeys() const{ return m_replicaKeys; }
77 inline bool ReplicaKeysHasBeenSet() const { return m_replicaKeysHasBeenSet; }
78 inline void SetReplicaKeys(const Aws::Vector<MultiRegionKey>& value) { m_replicaKeysHasBeenSet = true; m_replicaKeys = value; }
79 inline void SetReplicaKeys(Aws::Vector<MultiRegionKey>&& value) { m_replicaKeysHasBeenSet = true; m_replicaKeys = std::move(value); }
81 inline MultiRegionConfiguration& WithReplicaKeys(Aws::Vector<MultiRegionKey>&& value) { SetReplicaKeys(std::move(value)); return *this;}
82 inline MultiRegionConfiguration& AddReplicaKeys(const MultiRegionKey& value) { m_replicaKeysHasBeenSet = true; m_replicaKeys.push_back(value); return *this; }
83 inline MultiRegionConfiguration& AddReplicaKeys(MultiRegionKey&& value) { m_replicaKeysHasBeenSet = true; m_replicaKeys.push_back(std::move(value)); return *this; }
85 private:
86
87 MultiRegionKeyType m_multiRegionKeyType;
88 bool m_multiRegionKeyTypeHasBeenSet = false;
89
90 MultiRegionKey m_primaryKey;
91 bool m_primaryKeyHasBeenSet = false;
92
93 Aws::Vector<MultiRegionKey> m_replicaKeys;
94 bool m_replicaKeysHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace KMS
99} // namespace Aws
void SetReplicaKeys(const Aws::Vector< MultiRegionKey > &value)
MultiRegionConfiguration & WithReplicaKeys(Aws::Vector< MultiRegionKey > &&value)
AWS_KMS_API MultiRegionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
MultiRegionConfiguration & WithPrimaryKey(const MultiRegionKey &value)
MultiRegionConfiguration & WithReplicaKeys(const Aws::Vector< MultiRegionKey > &value)
void SetMultiRegionKeyType(const MultiRegionKeyType &value)
MultiRegionConfiguration & AddReplicaKeys(const MultiRegionKey &value)
void SetMultiRegionKeyType(MultiRegionKeyType &&value)
void SetPrimaryKey(const MultiRegionKey &value)
MultiRegionConfiguration & AddReplicaKeys(MultiRegionKey &&value)
const Aws::Vector< MultiRegionKey > & GetReplicaKeys() const
MultiRegionConfiguration & WithMultiRegionKeyType(MultiRegionKeyType &&value)
AWS_KMS_API MultiRegionConfiguration(Aws::Utils::Json::JsonView jsonValue)
MultiRegionConfiguration & WithMultiRegionKeyType(const MultiRegionKeyType &value)
const MultiRegionKeyType & GetMultiRegionKeyType() const
void SetReplicaKeys(Aws::Vector< MultiRegionKey > &&value)
MultiRegionConfiguration & WithPrimaryKey(MultiRegionKey &&value)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue