AWS SDK for C++  1.9.104
AWS SDK for C++
CompatibleKafkaVersion.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Kafka
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
49  inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
50 
56  inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
57 
63  inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
64 
70  inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
71 
77  inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
78 
84  inline CompatibleKafkaVersion& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
85 
91  inline CompatibleKafkaVersion& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
92 
98  inline CompatibleKafkaVersion& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
99 
100 
106  inline const Aws::Vector<Aws::String>& GetTargetVersions() const{ return m_targetVersions; }
107 
113  inline bool TargetVersionsHasBeenSet() const { return m_targetVersionsHasBeenSet; }
114 
120  inline void SetTargetVersions(const Aws::Vector<Aws::String>& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = value; }
121 
127  inline void SetTargetVersions(Aws::Vector<Aws::String>&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = std::move(value); }
128 
134  inline CompatibleKafkaVersion& WithTargetVersions(const Aws::Vector<Aws::String>& value) { SetTargetVersions(value); return *this;}
135 
141  inline CompatibleKafkaVersion& WithTargetVersions(Aws::Vector<Aws::String>&& value) { SetTargetVersions(std::move(value)); return *this;}
142 
148  inline CompatibleKafkaVersion& AddTargetVersions(const Aws::String& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; }
149 
155  inline CompatibleKafkaVersion& AddTargetVersions(Aws::String&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(std::move(value)); return *this; }
156 
162  inline CompatibleKafkaVersion& AddTargetVersions(const char* value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; }
163 
164  private:
165 
166  Aws::String m_sourceVersion;
167  bool m_sourceVersionHasBeenSet;
168 
169  Aws::Vector<Aws::String> m_targetVersions;
170  bool m_targetVersionsHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace Kafka
175 } // namespace Aws
Aws::Kafka::Model::CompatibleKafkaVersion
Definition: CompatibleKafkaVersion.h:36
Aws::Kafka::Model::CompatibleKafkaVersion::WithSourceVersion
CompatibleKafkaVersion & WithSourceVersion(const char *value)
Definition: CompatibleKafkaVersion.h:98
Aws::Kafka::Model::CompatibleKafkaVersion::AddTargetVersions
CompatibleKafkaVersion & AddTargetVersions(const Aws::String &value)
Definition: CompatibleKafkaVersion.h:148
Aws::Kafka::Model::CompatibleKafkaVersion::GetSourceVersion
const Aws::String & GetSourceVersion() const
Definition: CompatibleKafkaVersion.h:49
Aws::Kafka::Model::CompatibleKafkaVersion::AddTargetVersions
CompatibleKafkaVersion & AddTargetVersions(const char *value)
Definition: CompatibleKafkaVersion.h:162
Aws::Kafka::Model::CompatibleKafkaVersion::GetTargetVersions
const Aws::Vector< Aws::String > & GetTargetVersions() const
Definition: CompatibleKafkaVersion.h:106
Aws::Kafka::Model::CompatibleKafkaVersion::operator=
CompatibleKafkaVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::CompatibleKafkaVersion::WithSourceVersion
CompatibleKafkaVersion & WithSourceVersion(Aws::String &&value)
Definition: CompatibleKafkaVersion.h:91
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kafka::Model::CompatibleKafkaVersion::SetTargetVersions
void SetTargetVersions(Aws::Vector< Aws::String > &&value)
Definition: CompatibleKafkaVersion.h:127
AWSVector.h
Aws::Kafka::Model::CompatibleKafkaVersion::CompatibleKafkaVersion
CompatibleKafkaVersion(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::CompatibleKafkaVersion::WithTargetVersions
CompatibleKafkaVersion & WithTargetVersions(const Aws::Vector< Aws::String > &value)
Definition: CompatibleKafkaVersion.h:134
Aws::Kafka::Model::CompatibleKafkaVersion::SetSourceVersion
void SetSourceVersion(Aws::String &&value)
Definition: CompatibleKafkaVersion.h:70
Aws::Kafka::Model::CompatibleKafkaVersion::CompatibleKafkaVersion
CompatibleKafkaVersion()
Aws::Kafka::Model::CompatibleKafkaVersion::WithSourceVersion
CompatibleKafkaVersion & WithSourceVersion(const Aws::String &value)
Definition: CompatibleKafkaVersion.h:84
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::CompatibleKafkaVersion::SetTargetVersions
void SetTargetVersions(const Aws::Vector< Aws::String > &value)
Definition: CompatibleKafkaVersion.h:120
Aws::Kafka::Model::CompatibleKafkaVersion::TargetVersionsHasBeenSet
bool TargetVersionsHasBeenSet() const
Definition: CompatibleKafkaVersion.h:113
Aws::Kafka::Model::CompatibleKafkaVersion::WithTargetVersions
CompatibleKafkaVersion & WithTargetVersions(Aws::Vector< Aws::String > &&value)
Definition: CompatibleKafkaVersion.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::CompatibleKafkaVersion::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kafka::Model::CompatibleKafkaVersion::SetSourceVersion
void SetSourceVersion(const char *value)
Definition: CompatibleKafkaVersion.h:77
Aws::Kafka::Model::CompatibleKafkaVersion::SourceVersionHasBeenSet
bool SourceVersionHasBeenSet() const
Definition: CompatibleKafkaVersion.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Kafka_EXPORTS.h
Aws::Kafka::Model::CompatibleKafkaVersion::SetSourceVersion
void SetSourceVersion(const Aws::String &value)
Definition: CompatibleKafkaVersion.h:63
Aws::Kafka::Model::CompatibleKafkaVersion::AddTargetVersions
CompatibleKafkaVersion & AddTargetVersions(Aws::String &&value)
Definition: CompatibleKafkaVersion.h:155