AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ServiceSoftwareOptions.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/DeploymentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService {
22namespace Model {
23
33 public:
34 AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions() = default;
35 AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
44 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
45 template <typename CurrentVersionT = Aws::String>
46 void SetCurrentVersion(CurrentVersionT&& value) {
47 m_currentVersionHasBeenSet = true;
48 m_currentVersion = std::forward<CurrentVersionT>(value);
49 }
50 template <typename CurrentVersionT = Aws::String>
51 ServiceSoftwareOptions& WithCurrentVersion(CurrentVersionT&& value) {
52 SetCurrentVersion(std::forward<CurrentVersionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetNewVersion() const { return m_newVersion; }
62 inline bool NewVersionHasBeenSet() const { return m_newVersionHasBeenSet; }
63 template <typename NewVersionT = Aws::String>
64 void SetNewVersion(NewVersionT&& value) {
65 m_newVersionHasBeenSet = true;
66 m_newVersion = std::forward<NewVersionT>(value);
67 }
68 template <typename NewVersionT = Aws::String>
69 ServiceSoftwareOptions& WithNewVersion(NewVersionT&& value) {
70 SetNewVersion(std::forward<NewVersionT>(value));
71 return *this;
72 }
74
76
80 inline bool GetUpdateAvailable() const { return m_updateAvailable; }
81 inline bool UpdateAvailableHasBeenSet() const { return m_updateAvailableHasBeenSet; }
82 inline void SetUpdateAvailable(bool value) {
83 m_updateAvailableHasBeenSet = true;
84 m_updateAvailable = value;
85 }
87 SetUpdateAvailable(value);
88 return *this;
89 }
91
93
97 inline bool GetCancellable() const { return m_cancellable; }
98 inline bool CancellableHasBeenSet() const { return m_cancellableHasBeenSet; }
99 inline void SetCancellable(bool value) {
100 m_cancellableHasBeenSet = true;
101 m_cancellable = value;
102 }
104 SetCancellable(value);
105 return *this;
106 }
108
110
113 inline DeploymentStatus GetUpdateStatus() const { return m_updateStatus; }
114 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
116 m_updateStatusHasBeenSet = true;
117 m_updateStatus = value;
118 }
120 SetUpdateStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetDescription() const { return m_description; }
130 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 template <typename DescriptionT = Aws::String>
132 void SetDescription(DescriptionT&& value) {
133 m_descriptionHasBeenSet = true;
134 m_description = std::forward<DescriptionT>(value);
135 }
136 template <typename DescriptionT = Aws::String>
138 SetDescription(std::forward<DescriptionT>(value));
139 return *this;
140 }
142
144
149 inline const Aws::Utils::DateTime& GetAutomatedUpdateDate() const { return m_automatedUpdateDate; }
150 inline bool AutomatedUpdateDateHasBeenSet() const { return m_automatedUpdateDateHasBeenSet; }
151 template <typename AutomatedUpdateDateT = Aws::Utils::DateTime>
152 void SetAutomatedUpdateDate(AutomatedUpdateDateT&& value) {
153 m_automatedUpdateDateHasBeenSet = true;
154 m_automatedUpdateDate = std::forward<AutomatedUpdateDateT>(value);
155 }
156 template <typename AutomatedUpdateDateT = Aws::Utils::DateTime>
157 ServiceSoftwareOptions& WithAutomatedUpdateDate(AutomatedUpdateDateT&& value) {
158 SetAutomatedUpdateDate(std::forward<AutomatedUpdateDateT>(value));
159 return *this;
160 }
162
164
168 inline bool GetOptionalDeployment() const { return m_optionalDeployment; }
169 inline bool OptionalDeploymentHasBeenSet() const { return m_optionalDeploymentHasBeenSet; }
170 inline void SetOptionalDeployment(bool value) {
171 m_optionalDeploymentHasBeenSet = true;
172 m_optionalDeployment = value;
173 }
176 return *this;
177 }
179 private:
180 Aws::String m_currentVersion;
181
182 Aws::String m_newVersion;
183
184 bool m_updateAvailable{false};
185
186 bool m_cancellable{false};
187
189
190 Aws::String m_description;
191
192 Aws::Utils::DateTime m_automatedUpdateDate{};
193
194 bool m_optionalDeployment{false};
195 bool m_currentVersionHasBeenSet = false;
196 bool m_newVersionHasBeenSet = false;
197 bool m_updateAvailableHasBeenSet = false;
198 bool m_cancellableHasBeenSet = false;
199 bool m_updateStatusHasBeenSet = false;
200 bool m_descriptionHasBeenSet = false;
201 bool m_automatedUpdateDateHasBeenSet = false;
202 bool m_optionalDeploymentHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace OpenSearchService
207} // namespace Aws
AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceSoftwareOptions & WithUpdateStatus(DeploymentStatus value)
ServiceSoftwareOptions & WithAutomatedUpdateDate(AutomatedUpdateDateT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceSoftwareOptions & WithCurrentVersion(CurrentVersionT &&value)
AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions()=default
ServiceSoftwareOptions & WithNewVersion(NewVersionT &&value)
const Aws::Utils::DateTime & GetAutomatedUpdateDate() const
ServiceSoftwareOptions & WithOptionalDeployment(bool value)
ServiceSoftwareOptions & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue