AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
UpgradeDomainResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11#include <aws/opensearch/model/ChangeProgressDetails.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace OpenSearchService {
25namespace Model {
33 public:
34 AWS_OPENSEARCHSERVICE_API UpgradeDomainResult() = default;
37
39
42 inline const Aws::String& GetUpgradeId() const { return m_upgradeId; }
43 template <typename UpgradeIdT = Aws::String>
44 void SetUpgradeId(UpgradeIdT&& value) {
45 m_upgradeIdHasBeenSet = true;
46 m_upgradeId = std::forward<UpgradeIdT>(value);
47 }
48 template <typename UpgradeIdT = Aws::String>
49 UpgradeDomainResult& WithUpgradeId(UpgradeIdT&& value) {
50 SetUpgradeId(std::forward<UpgradeIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDomainName() const { return m_domainName; }
60 template <typename DomainNameT = Aws::String>
61 void SetDomainName(DomainNameT&& value) {
62 m_domainNameHasBeenSet = true;
63 m_domainName = std::forward<DomainNameT>(value);
64 }
65 template <typename DomainNameT = Aws::String>
66 UpgradeDomainResult& WithDomainName(DomainNameT&& value) {
67 SetDomainName(std::forward<DomainNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTargetVersion() const { return m_targetVersion; }
77 template <typename TargetVersionT = Aws::String>
78 void SetTargetVersion(TargetVersionT&& value) {
79 m_targetVersionHasBeenSet = true;
80 m_targetVersion = std::forward<TargetVersionT>(value);
81 }
82 template <typename TargetVersionT = Aws::String>
83 UpgradeDomainResult& WithTargetVersion(TargetVersionT&& value) {
84 SetTargetVersion(std::forward<TargetVersionT>(value));
85 return *this;
86 }
88
90
93 inline bool GetPerformCheckOnly() const { return m_performCheckOnly; }
94 inline void SetPerformCheckOnly(bool value) {
95 m_performCheckOnlyHasBeenSet = true;
96 m_performCheckOnly = value;
97 }
100 return *this;
101 }
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const { return m_advancedOptions; }
109 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
110 void SetAdvancedOptions(AdvancedOptionsT&& value) {
111 m_advancedOptionsHasBeenSet = true;
112 m_advancedOptions = std::forward<AdvancedOptionsT>(value);
113 }
114 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
115 UpgradeDomainResult& WithAdvancedOptions(AdvancedOptionsT&& value) {
116 SetAdvancedOptions(std::forward<AdvancedOptionsT>(value));
117 return *this;
118 }
119 template <typename AdvancedOptionsKeyT = Aws::String, typename AdvancedOptionsValueT = Aws::String>
120 UpgradeDomainResult& AddAdvancedOptions(AdvancedOptionsKeyT&& key, AdvancedOptionsValueT&& value) {
121 m_advancedOptionsHasBeenSet = true;
122 m_advancedOptions.emplace(std::forward<AdvancedOptionsKeyT>(key), std::forward<AdvancedOptionsValueT>(value));
123 return *this;
124 }
126
128
132 inline const ChangeProgressDetails& GetChangeProgressDetails() const { return m_changeProgressDetails; }
133 template <typename ChangeProgressDetailsT = ChangeProgressDetails>
134 void SetChangeProgressDetails(ChangeProgressDetailsT&& value) {
135 m_changeProgressDetailsHasBeenSet = true;
136 m_changeProgressDetails = std::forward<ChangeProgressDetailsT>(value);
137 }
138 template <typename ChangeProgressDetailsT = ChangeProgressDetails>
139 UpgradeDomainResult& WithChangeProgressDetails(ChangeProgressDetailsT&& value) {
140 SetChangeProgressDetails(std::forward<ChangeProgressDetailsT>(value));
141 return *this;
142 }
144
146
147 inline const Aws::String& GetRequestId() const { return m_requestId; }
148 template <typename RequestIdT = Aws::String>
149 void SetRequestId(RequestIdT&& value) {
150 m_requestIdHasBeenSet = true;
151 m_requestId = std::forward<RequestIdT>(value);
152 }
153 template <typename RequestIdT = Aws::String>
154 UpgradeDomainResult& WithRequestId(RequestIdT&& value) {
155 SetRequestId(std::forward<RequestIdT>(value));
156 return *this;
157 }
159 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
160
161 private:
162 Aws::String m_upgradeId;
163
164 Aws::String m_domainName;
165
166 Aws::String m_targetVersion;
167
168 bool m_performCheckOnly{false};
169
170 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
171
172 ChangeProgressDetails m_changeProgressDetails;
173
174 Aws::String m_requestId;
175 Aws::Http::HttpResponseCode m_HttpResponseCode;
176 bool m_upgradeIdHasBeenSet = false;
177 bool m_domainNameHasBeenSet = false;
178 bool m_targetVersionHasBeenSet = false;
179 bool m_performCheckOnlyHasBeenSet = false;
180 bool m_advancedOptionsHasBeenSet = false;
181 bool m_changeProgressDetailsHasBeenSet = false;
182 bool m_requestIdHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace OpenSearchService
187} // namespace Aws
UpgradeDomainResult & WithRequestId(RequestIdT &&value)
UpgradeDomainResult & WithPerformCheckOnly(bool value)
AWS_OPENSEARCHSERVICE_API UpgradeDomainResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpgradeDomainResult & AddAdvancedOptions(AdvancedOptionsKeyT &&key, AdvancedOptionsValueT &&value)
UpgradeDomainResult & WithChangeProgressDetails(ChangeProgressDetailsT &&value)
UpgradeDomainResult & WithDomainName(DomainNameT &&value)
UpgradeDomainResult & WithAdvancedOptions(AdvancedOptionsT &&value)
UpgradeDomainResult & WithTargetVersion(TargetVersionT &&value)
AWS_OPENSEARCHSERVICE_API UpgradeDomainResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ChangeProgressDetails & GetChangeProgressDetails() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Map< Aws::String, Aws::String > & GetAdvancedOptions() const
UpgradeDomainResult & WithUpgradeId(UpgradeIdT &&value)
void SetChangeProgressDetails(ChangeProgressDetailsT &&value)
AWS_OPENSEARCHSERVICE_API UpgradeDomainResult()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue