AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
58 template<typename ArnT = Aws::String>
59 Configuration& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
72 template<typename CreationTimeT = Aws::Utils::DateTime>
73 Configuration& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
75
77
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 Configuration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
99 inline const Aws::Vector<Aws::String>& GetKafkaVersions() const { return m_kafkaVersions; }
100 inline bool KafkaVersionsHasBeenSet() const { return m_kafkaVersionsHasBeenSet; }
101 template<typename KafkaVersionsT = Aws::Vector<Aws::String>>
102 void SetKafkaVersions(KafkaVersionsT&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = std::forward<KafkaVersionsT>(value); }
103 template<typename KafkaVersionsT = Aws::Vector<Aws::String>>
104 Configuration& WithKafkaVersions(KafkaVersionsT&& value) { SetKafkaVersions(std::forward<KafkaVersionsT>(value)); return *this;}
105 template<typename KafkaVersionsT = Aws::String>
106 Configuration& AddKafkaVersions(KafkaVersionsT&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.emplace_back(std::forward<KafkaVersionsT>(value)); return *this; }
108
110
115 inline const ConfigurationRevision& GetLatestRevision() const { return m_latestRevision; }
116 inline bool LatestRevisionHasBeenSet() const { return m_latestRevisionHasBeenSet; }
117 template<typename LatestRevisionT = ConfigurationRevision>
118 void SetLatestRevision(LatestRevisionT&& value) { m_latestRevisionHasBeenSet = true; m_latestRevision = std::forward<LatestRevisionT>(value); }
119 template<typename LatestRevisionT = ConfigurationRevision>
120 Configuration& WithLatestRevision(LatestRevisionT&& value) { SetLatestRevision(std::forward<LatestRevisionT>(value)); return *this;}
122
124
129 inline const Aws::String& GetName() const { return m_name; }
130 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
131 template<typename NameT = Aws::String>
132 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
133 template<typename NameT = Aws::String>
134 Configuration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
136
138
144 inline ConfigurationState GetState() const { return m_state; }
145 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
146 inline void SetState(ConfigurationState value) { m_stateHasBeenSet = true; m_state = value; }
147 inline Configuration& WithState(ConfigurationState value) { SetState(value); return *this;}
149 private:
150
151 Aws::String m_arn;
152 bool m_arnHasBeenSet = false;
153
154 Aws::Utils::DateTime m_creationTime{};
155 bool m_creationTimeHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
160 Aws::Vector<Aws::String> m_kafkaVersions;
161 bool m_kafkaVersionsHasBeenSet = false;
162
163 ConfigurationRevision m_latestRevision;
164 bool m_latestRevisionHasBeenSet = false;
165
166 Aws::String m_name;
167 bool m_nameHasBeenSet = false;
168
170 bool m_stateHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Kafka
175} // 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