AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CompatibleKafkaVersion.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/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Kafka
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_KAFKA_API CompatibleKafkaVersion();
41 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
51 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
52 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
53 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
54 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
55 inline CompatibleKafkaVersion& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
56 inline CompatibleKafkaVersion& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
57 inline CompatibleKafkaVersion& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
59
61
66 inline const Aws::Vector<Aws::String>& GetTargetVersions() const{ return m_targetVersions; }
67 inline bool TargetVersionsHasBeenSet() const { return m_targetVersionsHasBeenSet; }
68 inline void SetTargetVersions(const Aws::Vector<Aws::String>& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = value; }
69 inline void SetTargetVersions(Aws::Vector<Aws::String>&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = std::move(value); }
71 inline CompatibleKafkaVersion& WithTargetVersions(Aws::Vector<Aws::String>&& value) { SetTargetVersions(std::move(value)); return *this;}
72 inline CompatibleKafkaVersion& AddTargetVersions(const Aws::String& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; }
73 inline CompatibleKafkaVersion& AddTargetVersions(Aws::String&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(std::move(value)); return *this; }
74 inline CompatibleKafkaVersion& AddTargetVersions(const char* value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; }
76 private:
77
78 Aws::String m_sourceVersion;
79 bool m_sourceVersionHasBeenSet = false;
80
81 Aws::Vector<Aws::String> m_targetVersions;
82 bool m_targetVersionsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Kafka
87} // namespace Aws
CompatibleKafkaVersion & WithSourceVersion(const Aws::String &value)
CompatibleKafkaVersion & AddTargetVersions(const char *value)
void SetSourceVersion(const Aws::String &value)
AWS_KAFKA_API CompatibleKafkaVersion(Aws::Utils::Json::JsonView jsonValue)
CompatibleKafkaVersion & WithSourceVersion(const char *value)
void SetTargetVersions(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetTargetVersions() const
AWS_KAFKA_API CompatibleKafkaVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
CompatibleKafkaVersion & WithTargetVersions(Aws::Vector< Aws::String > &&value)
CompatibleKafkaVersion & AddTargetVersions(const Aws::String &value)
CompatibleKafkaVersion & WithSourceVersion(Aws::String &&value)
CompatibleKafkaVersion & AddTargetVersions(Aws::String &&value)
void SetTargetVersions(Aws::Vector< Aws::String > &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
CompatibleKafkaVersion & WithTargetVersions(const Aws::Vector< Aws::String > &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