AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CompatibleVersionsMap.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_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 OpenSearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap() = default;
37 AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
47 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
48 template<typename SourceVersionT = Aws::String>
49 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
50 template<typename SourceVersionT = Aws::String>
51 CompatibleVersionsMap& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
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) { m_targetVersionsHasBeenSet = true; m_targetVersions = std::forward<TargetVersionsT>(value); }
62 template<typename TargetVersionsT = Aws::Vector<Aws::String>>
63 CompatibleVersionsMap& WithTargetVersions(TargetVersionsT&& value) { SetTargetVersions(std::forward<TargetVersionsT>(value)); return *this;}
64 template<typename TargetVersionsT = Aws::String>
65 CompatibleVersionsMap& AddTargetVersions(TargetVersionsT&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.emplace_back(std::forward<TargetVersionsT>(value)); return *this; }
67 private:
68
69 Aws::String m_sourceVersion;
70 bool m_sourceVersionHasBeenSet = false;
71
72 Aws::Vector<Aws::String> m_targetVersions;
73 bool m_targetVersionsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace OpenSearchService
78} // 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