AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/opensearch/OpenSearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap() = default;
32 AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
41 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
42 template <typename SourceVersionT = Aws::String>
43 void SetSourceVersion(SourceVersionT&& value) {
44 m_sourceVersionHasBeenSet = true;
45 m_sourceVersion = std::forward<SourceVersionT>(value);
46 }
47 template <typename SourceVersionT = Aws::String>
48 CompatibleVersionsMap& WithSourceVersion(SourceVersionT&& value) {
49 SetSourceVersion(std::forward<SourceVersionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetTargetVersions() const { return m_targetVersions; }
59 inline bool TargetVersionsHasBeenSet() const { return m_targetVersionsHasBeenSet; }
60 template <typename TargetVersionsT = Aws::Vector<Aws::String>>
61 void SetTargetVersions(TargetVersionsT&& value) {
62 m_targetVersionsHasBeenSet = true;
63 m_targetVersions = std::forward<TargetVersionsT>(value);
64 }
65 template <typename TargetVersionsT = Aws::Vector<Aws::String>>
66 CompatibleVersionsMap& WithTargetVersions(TargetVersionsT&& value) {
67 SetTargetVersions(std::forward<TargetVersionsT>(value));
68 return *this;
69 }
70 template <typename TargetVersionsT = Aws::String>
71 CompatibleVersionsMap& AddTargetVersions(TargetVersionsT&& value) {
72 m_targetVersionsHasBeenSet = true;
73 m_targetVersions.emplace_back(std::forward<TargetVersionsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_sourceVersion;
79
80 Aws::Vector<Aws::String> m_targetVersions;
81 bool m_sourceVersionHasBeenSet = false;
82 bool m_targetVersionsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace OpenSearchService
87} // namespace Aws
CompatibleVersionsMap & WithSourceVersion(SourceVersionT &&value)
AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap()=default
AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap & operator=(Aws::Utils::Json::JsonView jsonValue)
CompatibleVersionsMap & WithTargetVersions(TargetVersionsT &&value)
const Aws::Vector< Aws::String > & GetTargetVersions() const
CompatibleVersionsMap & AddTargetVersions(TargetVersionsT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue