AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CompatibleKafkaVersion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Kafka {
21namespace Model {
22
32 public:
33 AWS_KAFKA_API CompatibleKafkaVersion() = default;
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
45 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
46 template <typename SourceVersionT = Aws::String>
47 void SetSourceVersion(SourceVersionT&& value) {
48 m_sourceVersionHasBeenSet = true;
49 m_sourceVersion = std::forward<SourceVersionT>(value);
50 }
51 template <typename SourceVersionT = Aws::String>
52 CompatibleKafkaVersion& WithSourceVersion(SourceVersionT&& value) {
53 SetSourceVersion(std::forward<SourceVersionT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::Vector<Aws::String>& GetTargetVersions() const { return m_targetVersions; }
65 inline bool TargetVersionsHasBeenSet() const { return m_targetVersionsHasBeenSet; }
66 template <typename TargetVersionsT = Aws::Vector<Aws::String>>
67 void SetTargetVersions(TargetVersionsT&& value) {
68 m_targetVersionsHasBeenSet = true;
69 m_targetVersions = std::forward<TargetVersionsT>(value);
70 }
71 template <typename TargetVersionsT = Aws::Vector<Aws::String>>
72 CompatibleKafkaVersion& WithTargetVersions(TargetVersionsT&& value) {
73 SetTargetVersions(std::forward<TargetVersionsT>(value));
74 return *this;
75 }
76 template <typename TargetVersionsT = Aws::String>
77 CompatibleKafkaVersion& AddTargetVersions(TargetVersionsT&& value) {
78 m_targetVersionsHasBeenSet = true;
79 m_targetVersions.emplace_back(std::forward<TargetVersionsT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_sourceVersion;
85
86 Aws::Vector<Aws::String> m_targetVersions;
87 bool m_sourceVersionHasBeenSet = false;
88 bool m_targetVersionsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace Kafka
93} // namespace Aws
AWS_KAFKA_API CompatibleKafkaVersion(Aws::Utils::Json::JsonView jsonValue)
void SetTargetVersions(TargetVersionsT &&value)
CompatibleKafkaVersion & WithSourceVersion(SourceVersionT &&value)
const Aws::Vector< Aws::String > & GetTargetVersions() const
AWS_KAFKA_API CompatibleKafkaVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
CompatibleKafkaVersion & AddTargetVersions(TargetVersionsT &&value)
AWS_KAFKA_API CompatibleKafkaVersion()=default
CompatibleKafkaVersion & WithTargetVersions(TargetVersionsT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() 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