AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Configuration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kafka/Kafka_EXPORTS.h>
11#include <aws/kafka/model/ConfigurationRevision.h>
12#include <aws/kafka/model/ConfigurationState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Kafka {
24namespace Model {
25
35 public:
36 AWS_KAFKA_API Configuration() = default;
37 AWS_KAFKA_API Configuration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template <typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) {
52 m_arnHasBeenSet = true;
53 m_arn = std::forward<ArnT>(value);
54 }
55 template <typename ArnT = Aws::String>
56 Configuration& WithArn(ArnT&& value) {
57 SetArn(std::forward<ArnT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
69 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
70 template <typename CreationTimeT = Aws::Utils::DateTime>
71 void SetCreationTime(CreationTimeT&& value) {
72 m_creationTimeHasBeenSet = true;
73 m_creationTime = std::forward<CreationTimeT>(value);
74 }
75 template <typename CreationTimeT = Aws::Utils::DateTime>
76 Configuration& WithCreationTime(CreationTimeT&& value) {
77 SetCreationTime(std::forward<CreationTimeT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 Configuration& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
111 inline const Aws::Vector<Aws::String>& GetKafkaVersions() const { return m_kafkaVersions; }
112 inline bool KafkaVersionsHasBeenSet() const { return m_kafkaVersionsHasBeenSet; }
113 template <typename KafkaVersionsT = Aws::Vector<Aws::String>>
114 void SetKafkaVersions(KafkaVersionsT&& value) {
115 m_kafkaVersionsHasBeenSet = true;
116 m_kafkaVersions = std::forward<KafkaVersionsT>(value);
117 }
118 template <typename KafkaVersionsT = Aws::Vector<Aws::String>>
119 Configuration& WithKafkaVersions(KafkaVersionsT&& value) {
120 SetKafkaVersions(std::forward<KafkaVersionsT>(value));
121 return *this;
122 }
123 template <typename KafkaVersionsT = Aws::String>
124 Configuration& AddKafkaVersions(KafkaVersionsT&& value) {
125 m_kafkaVersionsHasBeenSet = true;
126 m_kafkaVersions.emplace_back(std::forward<KafkaVersionsT>(value));
127 return *this;
128 }
130
132
137 inline const ConfigurationRevision& GetLatestRevision() const { return m_latestRevision; }
138 inline bool LatestRevisionHasBeenSet() const { return m_latestRevisionHasBeenSet; }
139 template <typename LatestRevisionT = ConfigurationRevision>
140 void SetLatestRevision(LatestRevisionT&& value) {
141 m_latestRevisionHasBeenSet = true;
142 m_latestRevision = std::forward<LatestRevisionT>(value);
143 }
144 template <typename LatestRevisionT = ConfigurationRevision>
145 Configuration& WithLatestRevision(LatestRevisionT&& value) {
146 SetLatestRevision(std::forward<LatestRevisionT>(value));
147 return *this;
148 }
150
152
157 inline const Aws::String& GetName() const { return m_name; }
158 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
159 template <typename NameT = Aws::String>
160 void SetName(NameT&& value) {
161 m_nameHasBeenSet = true;
162 m_name = std::forward<NameT>(value);
163 }
164 template <typename NameT = Aws::String>
165 Configuration& WithName(NameT&& value) {
166 SetName(std::forward<NameT>(value));
167 return *this;
168 }
170
172
178 inline ConfigurationState GetState() const { return m_state; }
179 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
180 inline void SetState(ConfigurationState value) {
181 m_stateHasBeenSet = true;
182 m_state = value;
183 }
185 SetState(value);
186 return *this;
187 }
189 private:
190 Aws::String m_arn;
191
192 Aws::Utils::DateTime m_creationTime{};
193
194 Aws::String m_description;
195
196 Aws::Vector<Aws::String> m_kafkaVersions;
197
198 ConfigurationRevision m_latestRevision;
199
200 Aws::String m_name;
201
203 bool m_arnHasBeenSet = false;
204 bool m_creationTimeHasBeenSet = false;
205 bool m_descriptionHasBeenSet = false;
206 bool m_kafkaVersionsHasBeenSet = false;
207 bool m_latestRevisionHasBeenSet = false;
208 bool m_nameHasBeenSet = false;
209 bool m_stateHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace Kafka
214} // namespace Aws
void SetState(ConfigurationState value)
Configuration & WithLatestRevision(LatestRevisionT &&value)
const Aws::Vector< Aws::String > & GetKafkaVersions() const
AWS_KAFKA_API Configuration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
Configuration & WithDescription(DescriptionT &&value)
const Aws::String & GetArn() const
Configuration & WithArn(ArnT &&value)
const Aws::String & GetDescription() const
const ConfigurationRevision & GetLatestRevision() const
ConfigurationState GetState() const
void SetKafkaVersions(KafkaVersionsT &&value)
Configuration & WithState(ConfigurationState value)
void SetDescription(DescriptionT &&value)
AWS_KAFKA_API Configuration()=default
void SetLatestRevision(LatestRevisionT &&value)
void SetCreationTime(CreationTimeT &&value)
const Aws::String & GetName() const
Configuration & WithCreationTime(CreationTimeT &&value)
Configuration & WithName(NameT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
Configuration & AddKafkaVersions(KafkaVersionsT &&value)
AWS_KAFKA_API Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
Configuration & WithKafkaVersions(KafkaVersionsT &&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