AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
49 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
50 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
51 inline CompatibleVersionsMap& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
52 inline CompatibleVersionsMap& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
53 inline CompatibleVersionsMap& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetTargetVersions() const{ return m_targetVersions; }
61 inline bool TargetVersionsHasBeenSet() const { return m_targetVersionsHasBeenSet; }
62 inline void SetTargetVersions(const Aws::Vector<Aws::String>& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = value; }
63 inline void SetTargetVersions(Aws::Vector<Aws::String>&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = std::move(value); }
65 inline CompatibleVersionsMap& WithTargetVersions(Aws::Vector<Aws::String>&& value) { SetTargetVersions(std::move(value)); return *this;}
66 inline CompatibleVersionsMap& AddTargetVersions(const Aws::String& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; }
67 inline CompatibleVersionsMap& AddTargetVersions(Aws::String&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(std::move(value)); return *this; }
68 inline CompatibleVersionsMap& AddTargetVersions(const char* value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; }
70 private:
71
72 Aws::String m_sourceVersion;
73 bool m_sourceVersionHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_targetVersions;
76 bool m_targetVersionsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace OpenSearchService
81} // namespace Aws
CompatibleVersionsMap & WithSourceVersion(const Aws::String &value)
CompatibleVersionsMap & WithSourceVersion(const char *value)
CompatibleVersionsMap & WithTargetVersions(const Aws::Vector< Aws::String > &value)
CompatibleVersionsMap & WithSourceVersion(Aws::String &&value)
AWS_OPENSEARCHSERVICE_API CompatibleVersionsMap & operator=(Aws::Utils::Json::JsonView jsonValue)
CompatibleVersionsMap & WithTargetVersions(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetTargetVersions() const
CompatibleVersionsMap & AddTargetVersions(const Aws::String &value)
void SetTargetVersions(const Aws::Vector< Aws::String > &value)
void SetTargetVersions(Aws::Vector< Aws::String > &&value)
CompatibleVersionsMap & AddTargetVersions(Aws::String &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
CompatibleVersionsMap & AddTargetVersions(const char *value)
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