AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
KeyspaceSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/keyspaces/Keyspaces_EXPORTS.h>
10#include <aws/keyspaces/model/Rs.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Keyspaces {
22namespace Model {
23
30 public:
31 AWS_KEYSPACES_API KeyspaceSummary() = default;
32 AWS_KEYSPACES_API KeyspaceSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
41 inline bool KeyspaceNameHasBeenSet() const { return m_keyspaceNameHasBeenSet; }
42 template <typename KeyspaceNameT = Aws::String>
43 void SetKeyspaceName(KeyspaceNameT&& value) {
44 m_keyspaceNameHasBeenSet = true;
45 m_keyspaceName = std::forward<KeyspaceNameT>(value);
46 }
47 template <typename KeyspaceNameT = Aws::String>
48 KeyspaceSummary& WithKeyspaceName(KeyspaceNameT&& value) {
49 SetKeyspaceName(std::forward<KeyspaceNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
60 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
61 template <typename ResourceArnT = Aws::String>
62 void SetResourceArn(ResourceArnT&& value) {
63 m_resourceArnHasBeenSet = true;
64 m_resourceArn = std::forward<ResourceArnT>(value);
65 }
66 template <typename ResourceArnT = Aws::String>
67 KeyspaceSummary& WithResourceArn(ResourceArnT&& value) {
68 SetResourceArn(std::forward<ResourceArnT>(value));
69 return *this;
70 }
72
74
79 inline Rs GetReplicationStrategy() const { return m_replicationStrategy; }
80 inline bool ReplicationStrategyHasBeenSet() const { return m_replicationStrategyHasBeenSet; }
81 inline void SetReplicationStrategy(Rs value) {
82 m_replicationStrategyHasBeenSet = true;
83 m_replicationStrategy = value;
84 }
87 return *this;
88 }
90
92
96 inline const Aws::Vector<Aws::String>& GetReplicationRegions() const { return m_replicationRegions; }
97 inline bool ReplicationRegionsHasBeenSet() const { return m_replicationRegionsHasBeenSet; }
98 template <typename ReplicationRegionsT = Aws::Vector<Aws::String>>
99 void SetReplicationRegions(ReplicationRegionsT&& value) {
100 m_replicationRegionsHasBeenSet = true;
101 m_replicationRegions = std::forward<ReplicationRegionsT>(value);
102 }
103 template <typename ReplicationRegionsT = Aws::Vector<Aws::String>>
104 KeyspaceSummary& WithReplicationRegions(ReplicationRegionsT&& value) {
105 SetReplicationRegions(std::forward<ReplicationRegionsT>(value));
106 return *this;
107 }
108 template <typename ReplicationRegionsT = Aws::String>
109 KeyspaceSummary& AddReplicationRegions(ReplicationRegionsT&& value) {
110 m_replicationRegionsHasBeenSet = true;
111 m_replicationRegions.emplace_back(std::forward<ReplicationRegionsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_keyspaceName;
117
118 Aws::String m_resourceArn;
119
120 Rs m_replicationStrategy{Rs::NOT_SET};
121
122 Aws::Vector<Aws::String> m_replicationRegions;
123 bool m_keyspaceNameHasBeenSet = false;
124 bool m_resourceArnHasBeenSet = false;
125 bool m_replicationStrategyHasBeenSet = false;
126 bool m_replicationRegionsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Keyspaces
131} // namespace Aws
KeyspaceSummary & WithKeyspaceName(KeyspaceNameT &&value)
AWS_KEYSPACES_API KeyspaceSummary()=default
KeyspaceSummary & WithResourceArn(ResourceArnT &&value)
KeyspaceSummary & WithReplicationStrategy(Rs value)
KeyspaceSummary & AddReplicationRegions(ReplicationRegionsT &&value)
const Aws::String & GetResourceArn() const
AWS_KEYSPACES_API KeyspaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetReplicationRegions() const
void SetResourceArn(ResourceArnT &&value)
const Aws::String & GetKeyspaceName() const
void SetKeyspaceName(KeyspaceNameT &&value)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACES_API KeyspaceSummary(Aws::Utils::Json::JsonView jsonValue)
void SetReplicationRegions(ReplicationRegionsT &&value)
KeyspaceSummary & WithReplicationRegions(ReplicationRegionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue