AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Configuration.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kafka/model/ConfigurationRevision.h>
12#include <aws/kafka/model/ConfigurationState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Kafka
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_KAFKA_API Configuration();
42 AWS_KAFKA_API Configuration(Aws::Utils::Json::JsonView jsonValue);
44 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
54 inline const Aws::String& GetArn() const{ return m_arn; }
55 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
56 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
58 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
59 inline Configuration& WithArn(const Aws::String& value) { SetArn(value); return *this;}
60 inline Configuration& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
61 inline Configuration& WithArn(const char* value) { SetArn(value); return *this;}
63
65
70 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
71 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
72 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
73 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
74 inline Configuration& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
75 inline Configuration& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
77
79
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline Configuration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline Configuration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline Configuration& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
103 inline const Aws::Vector<Aws::String>& GetKafkaVersions() const{ return m_kafkaVersions; }
104 inline bool KafkaVersionsHasBeenSet() const { return m_kafkaVersionsHasBeenSet; }
105 inline void SetKafkaVersions(const Aws::Vector<Aws::String>& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = value; }
106 inline void SetKafkaVersions(Aws::Vector<Aws::String>&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = std::move(value); }
107 inline Configuration& WithKafkaVersions(const Aws::Vector<Aws::String>& value) { SetKafkaVersions(value); return *this;}
108 inline Configuration& WithKafkaVersions(Aws::Vector<Aws::String>&& value) { SetKafkaVersions(std::move(value)); return *this;}
109 inline Configuration& AddKafkaVersions(const Aws::String& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; }
110 inline Configuration& AddKafkaVersions(Aws::String&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(std::move(value)); return *this; }
111 inline Configuration& AddKafkaVersions(const char* value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; }
113
115
120 inline const ConfigurationRevision& GetLatestRevision() const{ return m_latestRevision; }
121 inline bool LatestRevisionHasBeenSet() const { return m_latestRevisionHasBeenSet; }
122 inline void SetLatestRevision(const ConfigurationRevision& value) { m_latestRevisionHasBeenSet = true; m_latestRevision = value; }
123 inline void SetLatestRevision(ConfigurationRevision&& value) { m_latestRevisionHasBeenSet = true; m_latestRevision = std::move(value); }
124 inline Configuration& WithLatestRevision(const ConfigurationRevision& value) { SetLatestRevision(value); return *this;}
125 inline Configuration& WithLatestRevision(ConfigurationRevision&& value) { SetLatestRevision(std::move(value)); return *this;}
127
129
134 inline const Aws::String& GetName() const{ return m_name; }
135 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
136 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
137 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
138 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
139 inline Configuration& WithName(const Aws::String& value) { SetName(value); return *this;}
140 inline Configuration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
141 inline Configuration& WithName(const char* value) { SetName(value); return *this;}
143
145
151 inline const ConfigurationState& GetState() const{ return m_state; }
152 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
153 inline void SetState(const ConfigurationState& value) { m_stateHasBeenSet = true; m_state = value; }
154 inline void SetState(ConfigurationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
155 inline Configuration& WithState(const ConfigurationState& value) { SetState(value); return *this;}
156 inline Configuration& WithState(ConfigurationState&& value) { SetState(std::move(value)); return *this;}
158 private:
159
160 Aws::String m_arn;
161 bool m_arnHasBeenSet = false;
162
163 Aws::Utils::DateTime m_creationTime;
164 bool m_creationTimeHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_kafkaVersions;
170 bool m_kafkaVersionsHasBeenSet = false;
171
172 ConfigurationRevision m_latestRevision;
173 bool m_latestRevisionHasBeenSet = false;
174
175 Aws::String m_name;
176 bool m_nameHasBeenSet = false;
177
178 ConfigurationState m_state;
179 bool m_stateHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace Kafka
184} // namespace Aws
void SetDescription(Aws::String &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
Configuration & WithState(ConfigurationState &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
Configuration & WithArn(const char *value)
const Aws::Vector< Aws::String > & GetKafkaVersions() const
AWS_KAFKA_API Configuration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
void SetArn(const char *value)
Configuration & WithArn(const Aws::String &value)
Configuration & WithKafkaVersions(const Aws::Vector< Aws::String > &value)
const Aws::String & GetArn() const
void SetKafkaVersions(const Aws::Vector< Aws::String > &value)
void SetArn(Aws::String &&value)
Configuration & WithState(const ConfigurationState &value)
const Aws::String & GetDescription() const
void SetName(const Aws::String &value)
const ConfigurationRevision & GetLatestRevision() const
Configuration & AddKafkaVersions(const char *value)
Configuration & AddKafkaVersions(const Aws::String &value)
Configuration & WithLatestRevision(ConfigurationRevision &&value)
Configuration & WithName(const char *value)
Configuration & WithDescription(const char *value)
Configuration & WithDescription(Aws::String &&value)
void SetLatestRevision(const ConfigurationRevision &value)
void SetDescription(const char *value)
Configuration & WithArn(Aws::String &&value)
Configuration & WithDescription(const Aws::String &value)
Configuration & WithName(Aws::String &&value)
void SetState(const ConfigurationState &value)
void SetLatestRevision(ConfigurationRevision &&value)
void SetName(const char *value)
void SetName(Aws::String &&value)
void SetState(ConfigurationState &&value)
const Aws::String & GetName() const
Configuration & WithKafkaVersions(Aws::Vector< Aws::String > &&value)
void SetArn(const Aws::String &value)
Configuration & WithLatestRevision(const ConfigurationRevision &value)
Configuration & WithName(const Aws::String &value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKafkaVersions(Aws::Vector< Aws::String > &&value)
void SetDescription(const Aws::String &value)
Configuration & WithCreationTime(Aws::Utils::DateTime &&value)
Configuration & AddKafkaVersions(Aws::String &&value)
Configuration & WithCreationTime(const Aws::Utils::DateTime &value)
AWS_KAFKA_API Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConfigurationState & GetState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue