AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActiveOperationArnT = Aws::String>
60 void SetActiveOperationArn(ActiveOperationArnT&& value) { m_activeOperationArnHasBeenSet = true; m_activeOperationArn = std::forward<ActiveOperationArnT>(value); }
61 template<typename ActiveOperationArnT = Aws::String>
62 Cluster& WithActiveOperationArn(ActiveOperationArnT&& value) { SetActiveOperationArn(std::forward<ActiveOperationArnT>(value)); return *this;}
64
66
71 inline ClusterType GetClusterType() const { return m_clusterType; }
72 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
73 inline void SetClusterType(ClusterType value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
74 inline Cluster& WithClusterType(ClusterType value) { SetClusterType(value); return *this;}
76
78
84 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
85 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
86 template<typename ClusterArnT = Aws::String>
87 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
88 template<typename ClusterArnT = Aws::String>
89 Cluster& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
91
93
98 inline const Aws::String& GetClusterName() const { return m_clusterName; }
99 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
100 template<typename ClusterNameT = Aws::String>
101 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
102 template<typename ClusterNameT = Aws::String>
103 Cluster& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
105
107
112 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
113 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
114 template<typename CreationTimeT = Aws::Utils::DateTime>
115 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
116 template<typename CreationTimeT = Aws::Utils::DateTime>
117 Cluster& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
119
121
126 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
127 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
128 template<typename CurrentVersionT = Aws::String>
129 void SetCurrentVersion(CurrentVersionT&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::forward<CurrentVersionT>(value); }
130 template<typename CurrentVersionT = Aws::String>
131 Cluster& WithCurrentVersion(CurrentVersionT&& value) { SetCurrentVersion(std::forward<CurrentVersionT>(value)); return *this;}
133
135
142 inline ClusterState GetState() const { return m_state; }
143 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
144 inline void SetState(ClusterState value) { m_stateHasBeenSet = true; m_state = value; }
145 inline Cluster& WithState(ClusterState value) { SetState(value); return *this;}
147
149
154 inline const StateInfo& GetStateInfo() const { return m_stateInfo; }
155 inline bool StateInfoHasBeenSet() const { return m_stateInfoHasBeenSet; }
156 template<typename StateInfoT = StateInfo>
157 void SetStateInfo(StateInfoT&& value) { m_stateInfoHasBeenSet = true; m_stateInfo = std::forward<StateInfoT>(value); }
158 template<typename StateInfoT = StateInfo>
159 Cluster& WithStateInfo(StateInfoT&& value) { SetStateInfo(std::forward<StateInfoT>(value)); return *this;}
161
163
168 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
171 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
172 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
173 Cluster& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
174 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
175 Cluster& AddTags(TagsKeyT&& key, TagsValueT&& value) {
176 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
177 }
179
181
186 inline const Provisioned& GetProvisioned() const { return m_provisioned; }
187 inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; }
188 template<typename ProvisionedT = Provisioned>
189 void SetProvisioned(ProvisionedT&& value) { m_provisionedHasBeenSet = true; m_provisioned = std::forward<ProvisionedT>(value); }
190 template<typename ProvisionedT = Provisioned>
191 Cluster& WithProvisioned(ProvisionedT&& value) { SetProvisioned(std::forward<ProvisionedT>(value)); return *this;}
193
195
200 inline const Serverless& GetServerless() const { return m_serverless; }
201 inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; }
202 template<typename ServerlessT = Serverless>
203 void SetServerless(ServerlessT&& value) { m_serverlessHasBeenSet = true; m_serverless = std::forward<ServerlessT>(value); }
204 template<typename ServerlessT = Serverless>
205 Cluster& WithServerless(ServerlessT&& value) { SetServerless(std::forward<ServerlessT>(value)); return *this;}
207 private:
208
209 Aws::String m_activeOperationArn;
210 bool m_activeOperationArnHasBeenSet = false;
211
212 ClusterType m_clusterType{ClusterType::NOT_SET};
213 bool m_clusterTypeHasBeenSet = false;
214
215 Aws::String m_clusterArn;
216 bool m_clusterArnHasBeenSet = false;
217
218 Aws::String m_clusterName;
219 bool m_clusterNameHasBeenSet = false;
220
221 Aws::Utils::DateTime m_creationTime{};
222 bool m_creationTimeHasBeenSet = false;
223
224 Aws::String m_currentVersion;
225 bool m_currentVersionHasBeenSet = false;
226
228 bool m_stateHasBeenSet = false;
229
230 StateInfo m_stateInfo;
231 bool m_stateInfoHasBeenSet = false;
232
234 bool m_tagsHasBeenSet = false;
235
236 Provisioned m_provisioned;
237 bool m_provisionedHasBeenSet = false;
238
239 Serverless m_serverless;
240 bool m_serverlessHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace Kafka
245} // namespace Aws
void SetTags(TagsT &&value)
Definition Cluster.h:171
void SetCreationTime(CreationTimeT &&value)
Definition Cluster.h:115
bool CreationTimeHasBeenSet() const
Definition Cluster.h:113
const Aws::String & GetActiveOperationArn() const
Definition Cluster.h:57
bool StateHasBeenSet() const
Definition Cluster.h:143
const StateInfo & GetStateInfo() const
Definition Cluster.h:154
bool ServerlessHasBeenSet() const
Definition Cluster.h:201
void SetClusterArn(ClusterArnT &&value)
Definition Cluster.h:87
AWS_KAFKA_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClusterName() const
Definition Cluster.h:98
void SetCurrentVersion(CurrentVersionT &&value)
Definition Cluster.h:129
void SetClusterName(ClusterNameT &&value)
Definition Cluster.h:101
void SetClusterType(ClusterType value)
Definition Cluster.h:73
Cluster & WithCurrentVersion(CurrentVersionT &&value)
Definition Cluster.h:131
const Aws::Utils::DateTime & GetCreationTime() const
Definition Cluster.h:112
void SetServerless(ServerlessT &&value)
Definition Cluster.h:203
const Provisioned & GetProvisioned() const
Definition Cluster.h:186
bool CurrentVersionHasBeenSet() const
Definition Cluster.h:127
Cluster & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Cluster.h:175
ClusterType GetClusterType() const
Definition Cluster.h:71
const Aws::String & GetCurrentVersion() const
Definition Cluster.h:126
Cluster & WithClusterName(ClusterNameT &&value)
Definition Cluster.h:103
Cluster & WithCreationTime(CreationTimeT &&value)
Definition Cluster.h:117
Cluster & WithClusterType(ClusterType value)
Definition Cluster.h:74
const Serverless & GetServerless() const
Definition Cluster.h:200
bool ClusterNameHasBeenSet() const
Definition Cluster.h:99
bool ClusterTypeHasBeenSet() const
Definition Cluster.h:72
bool TagsHasBeenSet() const
Definition Cluster.h:169
AWS_KAFKA_API Cluster(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Cluster.h:168
Cluster & WithTags(TagsT &&value)
Definition Cluster.h:173
void SetState(ClusterState value)
Definition Cluster.h:144
void SetActiveOperationArn(ActiveOperationArnT &&value)
Definition Cluster.h:60
bool ClusterArnHasBeenSet() const
Definition Cluster.h:85
bool StateInfoHasBeenSet() const
Definition Cluster.h:155
bool ActiveOperationArnHasBeenSet() const
Definition Cluster.h:58
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
Cluster & WithState(ClusterState value)
Definition Cluster.h:145
void SetProvisioned(ProvisionedT &&value)
Definition Cluster.h:189
Cluster & WithActiveOperationArn(ActiveOperationArnT &&value)
Definition Cluster.h:62
Cluster & WithServerless(ServerlessT &&value)
Definition Cluster.h:205
bool ProvisionedHasBeenSet() const
Definition Cluster.h:187
Cluster & WithClusterArn(ClusterArnT &&value)
Definition Cluster.h:89
void SetStateInfo(StateInfoT &&value)
Definition Cluster.h:157
ClusterState GetState() const
Definition Cluster.h:142
Cluster & WithStateInfo(StateInfoT &&value)
Definition Cluster.h:159
const Aws::String & GetClusterArn() const
Definition Cluster.h:84
AWS_KAFKA_API Cluster()=default
Cluster & WithProvisioned(ProvisionedT &&value)
Definition Cluster.h:191
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