AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename SourceVersionT = Aws::String>
53 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
54 template<typename SourceVersionT = Aws::String>
55 CompatibleKafkaVersion& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
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) { m_targetVersionsHasBeenSet = true; m_targetVersions = std::forward<TargetVersionsT>(value); }
68 template<typename TargetVersionsT = Aws::Vector<Aws::String>>
69 CompatibleKafkaVersion& WithTargetVersions(TargetVersionsT&& value) { SetTargetVersions(std::forward<TargetVersionsT>(value)); return *this;}
70 template<typename TargetVersionsT = Aws::String>
71 CompatibleKafkaVersion& AddTargetVersions(TargetVersionsT&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.emplace_back(std::forward<TargetVersionsT>(value)); return *this; }
73 private:
74
75 Aws::String m_sourceVersion;
76 bool m_sourceVersionHasBeenSet = false;
77
78 Aws::Vector<Aws::String> m_targetVersions;
79 bool m_targetVersionsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Kafka
84} // 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