AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CompatibleVersionsMap.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/es/ElasticsearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ElasticsearchService {
21namespace Model {
22
31 public:
32 AWS_ELASTICSEARCHSERVICE_API CompatibleVersionsMap() = default;
33 AWS_ELASTICSEARCHSERVICE_API CompatibleVersionsMap(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_API CompatibleVersionsMap& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
42 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
43 template <typename SourceVersionT = Aws::String>
44 void SetSourceVersion(SourceVersionT&& value) {
45 m_sourceVersionHasBeenSet = true;
46 m_sourceVersion = std::forward<SourceVersionT>(value);
47 }
48 template <typename SourceVersionT = Aws::String>
49 CompatibleVersionsMap& WithSourceVersion(SourceVersionT&& value) {
50 SetSourceVersion(std::forward<SourceVersionT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::Vector<Aws::String>& GetTargetVersions() const { return m_targetVersions; }
58 inline bool TargetVersionsHasBeenSet() const { return m_targetVersionsHasBeenSet; }
59 template <typename TargetVersionsT = Aws::Vector<Aws::String>>
60 void SetTargetVersions(TargetVersionsT&& value) {
61 m_targetVersionsHasBeenSet = true;
62 m_targetVersions = std::forward<TargetVersionsT>(value);
63 }
64 template <typename TargetVersionsT = Aws::Vector<Aws::String>>
65 CompatibleVersionsMap& WithTargetVersions(TargetVersionsT&& value) {
66 SetTargetVersions(std::forward<TargetVersionsT>(value));
67 return *this;
68 }
69 template <typename TargetVersionsT = Aws::String>
70 CompatibleVersionsMap& AddTargetVersions(TargetVersionsT&& value) {
71 m_targetVersionsHasBeenSet = true;
72 m_targetVersions.emplace_back(std::forward<TargetVersionsT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_sourceVersion;
78
79 Aws::Vector<Aws::String> m_targetVersions;
80 bool m_sourceVersionHasBeenSet = false;
81 bool m_targetVersionsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace ElasticsearchService
86} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API CompatibleVersionsMap(Aws::Utils::Json::JsonView jsonValue)
CompatibleVersionsMap & WithTargetVersions(TargetVersionsT &&value)
AWS_ELASTICSEARCHSERVICE_API CompatibleVersionsMap & operator=(Aws::Utils::Json::JsonView jsonValue)
CompatibleVersionsMap & WithSourceVersion(SourceVersionT &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetTargetVersions() const
AWS_ELASTICSEARCHSERVICE_API CompatibleVersionsMap()=default
CompatibleVersionsMap & AddTargetVersions(TargetVersionsT &&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