AWS SDK for C++  1.9.106
AWS SDK for C++
Configuration.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace Kafka
26 {
27 namespace Model
28 {
29 
39  {
40  public:
45 
46 
53  inline const Aws::String& GetArn() const{ return m_arn; }
54 
61  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 
69  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
70 
77  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
78 
85  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
86 
93  inline Configuration& WithArn(const Aws::String& value) { SetArn(value); return *this;}
94 
101  inline Configuration& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
102 
109  inline Configuration& WithArn(const char* value) { SetArn(value); return *this;}
110 
111 
117  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
118 
124  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
125 
131  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
132 
138  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
139 
145  inline Configuration& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
146 
152  inline Configuration& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
153 
154 
160  inline const Aws::String& GetDescription() const{ return m_description; }
161 
167  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
168 
174  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
175 
181  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
182 
188  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
189 
195  inline Configuration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
196 
202  inline Configuration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
203 
209  inline Configuration& WithDescription(const char* value) { SetDescription(value); return *this;}
210 
211 
220  inline const Aws::Vector<Aws::String>& GetKafkaVersions() const{ return m_kafkaVersions; }
221 
230  inline bool KafkaVersionsHasBeenSet() const { return m_kafkaVersionsHasBeenSet; }
231 
240  inline void SetKafkaVersions(const Aws::Vector<Aws::String>& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = value; }
241 
250  inline void SetKafkaVersions(Aws::Vector<Aws::String>&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = std::move(value); }
251 
260  inline Configuration& WithKafkaVersions(const Aws::Vector<Aws::String>& value) { SetKafkaVersions(value); return *this;}
261 
270  inline Configuration& WithKafkaVersions(Aws::Vector<Aws::String>&& value) { SetKafkaVersions(std::move(value)); return *this;}
271 
280  inline Configuration& AddKafkaVersions(const Aws::String& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; }
281 
290  inline Configuration& AddKafkaVersions(Aws::String&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(std::move(value)); return *this; }
291 
300  inline Configuration& AddKafkaVersions(const char* value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; }
301 
302 
308  inline const ConfigurationRevision& GetLatestRevision() const{ return m_latestRevision; }
309 
315  inline bool LatestRevisionHasBeenSet() const { return m_latestRevisionHasBeenSet; }
316 
322  inline void SetLatestRevision(const ConfigurationRevision& value) { m_latestRevisionHasBeenSet = true; m_latestRevision = value; }
323 
329  inline void SetLatestRevision(ConfigurationRevision&& value) { m_latestRevisionHasBeenSet = true; m_latestRevision = std::move(value); }
330 
336  inline Configuration& WithLatestRevision(const ConfigurationRevision& value) { SetLatestRevision(value); return *this;}
337 
343  inline Configuration& WithLatestRevision(ConfigurationRevision&& value) { SetLatestRevision(std::move(value)); return *this;}
344 
345 
351  inline const Aws::String& GetName() const{ return m_name; }
352 
358  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
359 
365  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
366 
372  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
373 
379  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
380 
386  inline Configuration& WithName(const Aws::String& value) { SetName(value); return *this;}
387 
393  inline Configuration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
394 
400  inline Configuration& WithName(const char* value) { SetName(value); return *this;}
401 
402 
409  inline const ConfigurationState& GetState() const{ return m_state; }
410 
417  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
418 
425  inline void SetState(const ConfigurationState& value) { m_stateHasBeenSet = true; m_state = value; }
426 
433  inline void SetState(ConfigurationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
434 
441  inline Configuration& WithState(const ConfigurationState& value) { SetState(value); return *this;}
442 
449  inline Configuration& WithState(ConfigurationState&& value) { SetState(std::move(value)); return *this;}
450 
451  private:
452 
453  Aws::String m_arn;
454  bool m_arnHasBeenSet;
455 
456  Aws::Utils::DateTime m_creationTime;
457  bool m_creationTimeHasBeenSet;
458 
459  Aws::String m_description;
460  bool m_descriptionHasBeenSet;
461 
462  Aws::Vector<Aws::String> m_kafkaVersions;
463  bool m_kafkaVersionsHasBeenSet;
464 
465  ConfigurationRevision m_latestRevision;
466  bool m_latestRevisionHasBeenSet;
467 
468  Aws::String m_name;
469  bool m_nameHasBeenSet;
470 
471  ConfigurationState m_state;
472  bool m_stateHasBeenSet;
473  };
474 
475 } // namespace Model
476 } // namespace Kafka
477 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Kafka::Model::Configuration::WithDescription
Configuration & WithDescription(const Aws::String &value)
Definition: Configuration.h:195
Aws::Kafka::Model::Configuration::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Configuration.h:358
Aws::Kafka::Model::Configuration::operator=
Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::Configuration::AddKafkaVersions
Configuration & AddKafkaVersions(const Aws::String &value)
Definition: Configuration.h:280
Aws::Kafka::Model::Configuration::WithArn
Configuration & WithArn(const char *value)
Definition: Configuration.h:109
Aws::Kafka::Model::Configuration::WithKafkaVersions
Configuration & WithKafkaVersions(Aws::Vector< Aws::String > &&value)
Definition: Configuration.h:270
Aws::Kafka::Model::Configuration::SetDescription
void SetDescription(Aws::String &&value)
Definition: Configuration.h:181
Aws::Kafka::Model::Configuration::WithLatestRevision
Configuration & WithLatestRevision(ConfigurationRevision &&value)
Definition: Configuration.h:343
DateTime.h
Aws::Kafka::Model::Configuration::WithName
Configuration & WithName(const Aws::String &value)
Definition: Configuration.h:386
Aws::Kafka::Model::Configuration::WithCreationTime
Configuration & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: Configuration.h:152
Aws::Kafka::Model::Configuration::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: Configuration.h:124
Aws::Kafka::Model::Configuration::SetKafkaVersions
void SetKafkaVersions(Aws::Vector< Aws::String > &&value)
Definition: Configuration.h:250
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kafka::Model::Configuration::Configuration
Configuration(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::Configuration::WithCreationTime
Configuration & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: Configuration.h:145
Aws::Kafka::Model::Configuration::SetName
void SetName(Aws::String &&value)
Definition: Configuration.h:372
Aws::Kafka::Model::Configuration::SetArn
void SetArn(Aws::String &&value)
Definition: Configuration.h:77
AWSVector.h
Aws::Kafka::Model::Configuration::GetLatestRevision
const ConfigurationRevision & GetLatestRevision() const
Definition: Configuration.h:308
Aws::Kafka::Model::Configuration::WithState
Configuration & WithState(ConfigurationState &&value)
Definition: Configuration.h:449
Aws::Kafka::Model::Configuration::WithDescription
Configuration & WithDescription(const char *value)
Definition: Configuration.h:209
Aws::Kafka::Model::Configuration::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: Configuration.h:138
Aws::Kafka::Model::Configuration::SetArn
void SetArn(const char *value)
Definition: Configuration.h:85
Aws::Kafka::Model::Configuration::GetName
const Aws::String & GetName() const
Definition: Configuration.h:351
Aws::Kafka::Model::Configuration::GetDescription
const Aws::String & GetDescription() const
Definition: Configuration.h:160
Aws::Kafka::Model::Configuration::StateHasBeenSet
bool StateHasBeenSet() const
Definition: Configuration.h:417
Aws::Kafka::Model::Configuration::GetKafkaVersions
const Aws::Vector< Aws::String > & GetKafkaVersions() const
Definition: Configuration.h:220
Aws::Kafka::Model::Configuration::WithArn
Configuration & WithArn(Aws::String &&value)
Definition: Configuration.h:101
Aws::Kafka::Model::Configuration::GetState
const ConfigurationState & GetState() const
Definition: Configuration.h:409
Aws::Kafka::Model::Configuration::LatestRevisionHasBeenSet
bool LatestRevisionHasBeenSet() const
Definition: Configuration.h:315
Aws::Kafka::Model::Configuration::WithName
Configuration & WithName(const char *value)
Definition: Configuration.h:400
Aws::Kafka::Model::Configuration::SetLatestRevision
void SetLatestRevision(const ConfigurationRevision &value)
Definition: Configuration.h:322
Aws::Kafka::Model::Configuration::AddKafkaVersions
Configuration & AddKafkaVersions(Aws::String &&value)
Definition: Configuration.h:290
Aws::Kafka::Model::Configuration::SetArn
void SetArn(const Aws::String &value)
Definition: Configuration.h:69
Aws::Kafka::Model::Configuration::SetName
void SetName(const char *value)
Definition: Configuration.h:379
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kafka::Model::ConfigurationState
ConfigurationState
Definition: ConfigurationState.h:17
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::Configuration::SetName
void SetName(const Aws::String &value)
Definition: Configuration.h:365
Aws::Kafka::Model::Configuration::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Configuration.h:167
Aws::Kafka::Model::Configuration::WithArn
Configuration & WithArn(const Aws::String &value)
Definition: Configuration.h:93
Aws::Kafka::Model::Configuration::WithKafkaVersions
Configuration & WithKafkaVersions(const Aws::Vector< Aws::String > &value)
Definition: Configuration.h:260
Aws::Kafka::Model::Configuration::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: Configuration.h:117
Aws::Kafka::Model::Configuration::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: Configuration.h:131
Aws::Kafka::Model::ConfigurationRevision
Definition: ConfigurationRevision.h:36
ConfigurationRevision.h
Aws::Kafka::Model::Configuration::SetState
void SetState(const ConfigurationState &value)
Definition: Configuration.h:425
Aws::Kafka::Model::Configuration::WithState
Configuration & WithState(const ConfigurationState &value)
Definition: Configuration.h:441
Aws::Kafka::Model::Configuration::WithName
Configuration & WithName(Aws::String &&value)
Definition: Configuration.h:393
Aws::Kafka::Model::Configuration::WithDescription
Configuration & WithDescription(Aws::String &&value)
Definition: Configuration.h:202
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::Configuration
Definition: Configuration.h:39
Aws::Kafka::Model::Configuration::SetDescription
void SetDescription(const Aws::String &value)
Definition: Configuration.h:174
Aws::Kafka::Model::Configuration::SetKafkaVersions
void SetKafkaVersions(const Aws::Vector< Aws::String > &value)
Definition: Configuration.h:240
Aws::Kafka::Model::Configuration::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Configuration.h:61
Aws::Kafka::Model::Configuration::SetLatestRevision
void SetLatestRevision(ConfigurationRevision &&value)
Definition: Configuration.h:329
Aws::Kafka::Model::Configuration::AddKafkaVersions
Configuration & AddKafkaVersions(const char *value)
Definition: Configuration.h:300
Aws::Kafka::Model::Configuration::SetDescription
void SetDescription(const char *value)
Definition: Configuration.h:188
Aws::Kafka::Model::Configuration::KafkaVersionsHasBeenSet
bool KafkaVersionsHasBeenSet() const
Definition: Configuration.h:230
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Kafka_EXPORTS.h
Aws::Kafka::Model::Configuration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kafka::Model::Configuration::WithLatestRevision
Configuration & WithLatestRevision(const ConfigurationRevision &value)
Definition: Configuration.h:336
Aws::Kafka::Model::Configuration::Configuration
Configuration()
Aws::Kafka::Model::Configuration::SetState
void SetState(ConfigurationState &&value)
Definition: Configuration.h:433
Aws::Kafka::Model::Configuration::GetArn
const Aws::String & GetArn() const
Definition: Configuration.h:53
ConfigurationState.h