AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Cluster.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/model/ClusterType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/kafka/model/ClusterState.h>
12#include <aws/kafka/model/StateInfo.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/kafka/model/Provisioned.h>
15#include <aws/kafka/model/Serverless.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Kafka
29{
30namespace Model
31{
32
41 class Cluster
42 {
43 public:
44 AWS_KAFKA_API Cluster();
45 AWS_KAFKA_API Cluster(Aws::Utils::Json::JsonView jsonValue);
46 AWS_KAFKA_API Cluster& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
57 inline const Aws::String& GetActiveOperationArn() const{ return m_activeOperationArn; }
58 inline bool ActiveOperationArnHasBeenSet() const { return m_activeOperationArnHasBeenSet; }
59 inline void SetActiveOperationArn(const Aws::String& value) { m_activeOperationArnHasBeenSet = true; m_activeOperationArn = value; }
60 inline void SetActiveOperationArn(Aws::String&& value) { m_activeOperationArnHasBeenSet = true; m_activeOperationArn = std::move(value); }
61 inline void SetActiveOperationArn(const char* value) { m_activeOperationArnHasBeenSet = true; m_activeOperationArn.assign(value); }
62 inline Cluster& WithActiveOperationArn(const Aws::String& value) { SetActiveOperationArn(value); return *this;}
63 inline Cluster& WithActiveOperationArn(Aws::String&& value) { SetActiveOperationArn(std::move(value)); return *this;}
64 inline Cluster& WithActiveOperationArn(const char* value) { SetActiveOperationArn(value); return *this;}
66
68
73 inline const ClusterType& GetClusterType() const{ return m_clusterType; }
74 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
75 inline void SetClusterType(const ClusterType& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
76 inline void SetClusterType(ClusterType&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = std::move(value); }
77 inline Cluster& WithClusterType(const ClusterType& value) { SetClusterType(value); return *this;}
78 inline Cluster& WithClusterType(ClusterType&& value) { SetClusterType(std::move(value)); return *this;}
80
82
88 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
89 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
90 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
91 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
92 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
93 inline Cluster& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
94 inline Cluster& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
95 inline Cluster& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
97
99
104 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
105 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
106 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
107 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
108 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
109 inline Cluster& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
110 inline Cluster& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
111 inline Cluster& WithClusterName(const char* value) { SetClusterName(value); return *this;}
113
115
120 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
121 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
122 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
123 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
124 inline Cluster& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
125 inline Cluster& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
127
129
134 inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
135 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
136 inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
137 inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
138 inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
139 inline Cluster& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
140 inline Cluster& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
141 inline Cluster& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
143
145
152 inline const ClusterState& GetState() const{ return m_state; }
153 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
154 inline void SetState(const ClusterState& value) { m_stateHasBeenSet = true; m_state = value; }
155 inline void SetState(ClusterState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
156 inline Cluster& WithState(const ClusterState& value) { SetState(value); return *this;}
157 inline Cluster& WithState(ClusterState&& value) { SetState(std::move(value)); return *this;}
159
161
166 inline const StateInfo& GetStateInfo() const{ return m_stateInfo; }
167 inline bool StateInfoHasBeenSet() const { return m_stateInfoHasBeenSet; }
168 inline void SetStateInfo(const StateInfo& value) { m_stateInfoHasBeenSet = true; m_stateInfo = value; }
169 inline void SetStateInfo(StateInfo&& value) { m_stateInfoHasBeenSet = true; m_stateInfo = std::move(value); }
170 inline Cluster& WithStateInfo(const StateInfo& value) { SetStateInfo(value); return *this;}
171 inline Cluster& WithStateInfo(StateInfo&& value) { SetStateInfo(std::move(value)); return *this;}
173
175
180 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
181 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
182 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
183 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
184 inline Cluster& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
185 inline Cluster& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
186 inline Cluster& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
187 inline Cluster& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
188 inline Cluster& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
189 inline Cluster& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
190 inline Cluster& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
191 inline Cluster& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
192 inline Cluster& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
194
196
201 inline const Provisioned& GetProvisioned() const{ return m_provisioned; }
202 inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; }
203 inline void SetProvisioned(const Provisioned& value) { m_provisionedHasBeenSet = true; m_provisioned = value; }
204 inline void SetProvisioned(Provisioned&& value) { m_provisionedHasBeenSet = true; m_provisioned = std::move(value); }
205 inline Cluster& WithProvisioned(const Provisioned& value) { SetProvisioned(value); return *this;}
206 inline Cluster& WithProvisioned(Provisioned&& value) { SetProvisioned(std::move(value)); return *this;}
208
210
215 inline const Serverless& GetServerless() const{ return m_serverless; }
216 inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; }
217 inline void SetServerless(const Serverless& value) { m_serverlessHasBeenSet = true; m_serverless = value; }
218 inline void SetServerless(Serverless&& value) { m_serverlessHasBeenSet = true; m_serverless = std::move(value); }
219 inline Cluster& WithServerless(const Serverless& value) { SetServerless(value); return *this;}
220 inline Cluster& WithServerless(Serverless&& value) { SetServerless(std::move(value)); return *this;}
222 private:
223
224 Aws::String m_activeOperationArn;
225 bool m_activeOperationArnHasBeenSet = false;
226
227 ClusterType m_clusterType;
228 bool m_clusterTypeHasBeenSet = false;
229
230 Aws::String m_clusterArn;
231 bool m_clusterArnHasBeenSet = false;
232
233 Aws::String m_clusterName;
234 bool m_clusterNameHasBeenSet = false;
235
236 Aws::Utils::DateTime m_creationTime;
237 bool m_creationTimeHasBeenSet = false;
238
239 Aws::String m_currentVersion;
240 bool m_currentVersionHasBeenSet = false;
241
242 ClusterState m_state;
243 bool m_stateHasBeenSet = false;
244
245 StateInfo m_stateInfo;
246 bool m_stateInfoHasBeenSet = false;
247
249 bool m_tagsHasBeenSet = false;
250
251 Provisioned m_provisioned;
252 bool m_provisionedHasBeenSet = false;
253
254 Serverless m_serverless;
255 bool m_serverlessHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace Kafka
260} // namespace Aws
void SetProvisioned(Provisioned &&value)
Definition Cluster.h:204
Cluster & WithState(ClusterState &&value)
Definition Cluster.h:157
bool CreationTimeHasBeenSet() const
Definition Cluster.h:121
const Aws::String & GetActiveOperationArn() const
Definition Cluster.h:57
Cluster & WithProvisioned(Provisioned &&value)
Definition Cluster.h:206
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Cluster.h:183
void SetClusterName(const Aws::String &value)
Definition Cluster.h:106
void SetActiveOperationArn(const Aws::String &value)
Definition Cluster.h:59
Cluster & WithStateInfo(const StateInfo &value)
Definition Cluster.h:170
bool StateHasBeenSet() const
Definition Cluster.h:153
Cluster & WithProvisioned(const Provisioned &value)
Definition Cluster.h:205
const StateInfo & GetStateInfo() const
Definition Cluster.h:166
bool ServerlessHasBeenSet() const
Definition Cluster.h:216
Cluster & WithClusterType(const ClusterType &value)
Definition Cluster.h:77
AWS_KAFKA_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
Cluster & WithActiveOperationArn(const Aws::String &value)
Definition Cluster.h:62
Cluster & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Cluster.h:185
void SetClusterName(Aws::String &&value)
Definition Cluster.h:107
const Aws::String & GetClusterName() const
Definition Cluster.h:104
Cluster & WithCurrentVersion(const Aws::String &value)
Definition Cluster.h:139
Cluster & WithState(const ClusterState &value)
Definition Cluster.h:156
const Aws::Utils::DateTime & GetCreationTime() const
Definition Cluster.h:120
const Provisioned & GetProvisioned() const
Definition Cluster.h:201
bool CurrentVersionHasBeenSet() const
Definition Cluster.h:135
Cluster & WithStateInfo(StateInfo &&value)
Definition Cluster.h:171
Cluster & AddTags(const Aws::String &key, Aws::String &&value)
Definition Cluster.h:188
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Cluster.h:122
const ClusterState & GetState() const
Definition Cluster.h:152
const Aws::String & GetCurrentVersion() const
Definition Cluster.h:134
void SetClusterName(const char *value)
Definition Cluster.h:108
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Cluster.h:123
void SetServerless(const Serverless &value)
Definition Cluster.h:217
void SetActiveOperationArn(Aws::String &&value)
Definition Cluster.h:60
Cluster & WithClusterArn(const Aws::String &value)
Definition Cluster.h:93
const Serverless & GetServerless() const
Definition Cluster.h:215
Cluster & WithActiveOperationArn(Aws::String &&value)
Definition Cluster.h:63
void SetClusterType(ClusterType &&value)
Definition Cluster.h:76
void SetClusterArn(Aws::String &&value)
Definition Cluster.h:91
Cluster & WithActiveOperationArn(const char *value)
Definition Cluster.h:64
bool ClusterNameHasBeenSet() const
Definition Cluster.h:105
void SetStateInfo(const StateInfo &value)
Definition Cluster.h:168
bool ClusterTypeHasBeenSet() const
Definition Cluster.h:74
bool TagsHasBeenSet() const
Definition Cluster.h:181
Cluster & WithServerless(const Serverless &value)
Definition Cluster.h:219
AWS_KAFKA_API Cluster(Aws::Utils::Json::JsonView jsonValue)
void SetCurrentVersion(Aws::String &&value)
Definition Cluster.h:137
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Cluster.h:180
Cluster & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Cluster.h:124
void SetCurrentVersion(const char *value)
Definition Cluster.h:138
Cluster & WithClusterArn(const char *value)
Definition Cluster.h:95
void SetProvisioned(const Provisioned &value)
Definition Cluster.h:203
void SetClusterArn(const char *value)
Definition Cluster.h:92
Cluster & AddTags(Aws::String &&key, Aws::String &&value)
Definition Cluster.h:189
bool ClusterArnHasBeenSet() const
Definition Cluster.h:89
bool StateInfoHasBeenSet() const
Definition Cluster.h:167
bool ActiveOperationArnHasBeenSet() const
Definition Cluster.h:58
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
Cluster & AddTags(const Aws::String &key, const Aws::String &value)
Definition Cluster.h:186
Cluster & AddTags(Aws::String &&key, const char *value)
Definition Cluster.h:191
Cluster & WithServerless(Serverless &&value)
Definition Cluster.h:220
Cluster & WithClusterName(const char *value)
Definition Cluster.h:111
const ClusterType & GetClusterType() const
Definition Cluster.h:73
void SetClusterArn(const Aws::String &value)
Definition Cluster.h:90
Cluster & WithCurrentVersion(const char *value)
Definition Cluster.h:141
Cluster & WithClusterName(const Aws::String &value)
Definition Cluster.h:109
Cluster & WithClusterType(ClusterType &&value)
Definition Cluster.h:78
Cluster & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Cluster.h:125
Cluster & WithClusterName(Aws::String &&value)
Definition Cluster.h:110
Cluster & AddTags(const char *key, Aws::String &&value)
Definition Cluster.h:190
Cluster & WithClusterArn(Aws::String &&value)
Definition Cluster.h:94
void SetState(ClusterState &&value)
Definition Cluster.h:155
Cluster & AddTags(Aws::String &&key, const Aws::String &value)
Definition Cluster.h:187
Cluster & WithCurrentVersion(Aws::String &&value)
Definition Cluster.h:140
bool ProvisionedHasBeenSet() const
Definition Cluster.h:202
Cluster & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Cluster.h:184
Cluster & AddTags(const char *key, const char *value)
Definition Cluster.h:192
void SetState(const ClusterState &value)
Definition Cluster.h:154
void SetActiveOperationArn(const char *value)
Definition Cluster.h:61
void SetServerless(Serverless &&value)
Definition Cluster.h:218
void SetClusterType(const ClusterType &value)
Definition Cluster.h:75
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Cluster.h:182
const Aws::String & GetClusterArn() const
Definition Cluster.h:88
void SetCurrentVersion(const Aws::String &value)
Definition Cluster.h:136
void SetStateInfo(StateInfo &&value)
Definition Cluster.h:169
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue