AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/es/ElasticsearchService_EXPORTS.h>
10#include <aws/es/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 ElasticsearchService {
22namespace Model {
23
31 public:
32 AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions() = default;
33 AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
42 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
43 template <typename CurrentVersionT = Aws::String>
44 void SetCurrentVersion(CurrentVersionT&& value) {
45 m_currentVersionHasBeenSet = true;
46 m_currentVersion = std::forward<CurrentVersionT>(value);
47 }
48 template <typename CurrentVersionT = Aws::String>
49 ServiceSoftwareOptions& WithCurrentVersion(CurrentVersionT&& value) {
50 SetCurrentVersion(std::forward<CurrentVersionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNewVersion() const { return m_newVersion; }
60 inline bool NewVersionHasBeenSet() const { return m_newVersionHasBeenSet; }
61 template <typename NewVersionT = Aws::String>
62 void SetNewVersion(NewVersionT&& value) {
63 m_newVersionHasBeenSet = true;
64 m_newVersion = std::forward<NewVersionT>(value);
65 }
66 template <typename NewVersionT = Aws::String>
67 ServiceSoftwareOptions& WithNewVersion(NewVersionT&& value) {
68 SetNewVersion(std::forward<NewVersionT>(value));
69 return *this;
70 }
72
74
79 inline bool GetUpdateAvailable() const { return m_updateAvailable; }
80 inline bool UpdateAvailableHasBeenSet() const { return m_updateAvailableHasBeenSet; }
81 inline void SetUpdateAvailable(bool value) {
82 m_updateAvailableHasBeenSet = true;
83 m_updateAvailable = value;
84 }
86 SetUpdateAvailable(value);
87 return *this;
88 }
90
92
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
116 inline DeploymentStatus GetUpdateStatus() const { return m_updateStatus; }
117 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
119 m_updateStatusHasBeenSet = true;
120 m_updateStatus = value;
121 }
123 SetUpdateStatus(value);
124 return *this;
125 }
127
129
132 inline const Aws::String& GetDescription() const { return m_description; }
133 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 template <typename DescriptionT = Aws::String>
135 void SetDescription(DescriptionT&& value) {
136 m_descriptionHasBeenSet = true;
137 m_description = std::forward<DescriptionT>(value);
138 }
139 template <typename DescriptionT = Aws::String>
141 SetDescription(std::forward<DescriptionT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::Utils::DateTime& GetAutomatedUpdateDate() const { return m_automatedUpdateDate; }
153 inline bool AutomatedUpdateDateHasBeenSet() const { return m_automatedUpdateDateHasBeenSet; }
154 template <typename AutomatedUpdateDateT = Aws::Utils::DateTime>
155 void SetAutomatedUpdateDate(AutomatedUpdateDateT&& value) {
156 m_automatedUpdateDateHasBeenSet = true;
157 m_automatedUpdateDate = std::forward<AutomatedUpdateDateT>(value);
158 }
159 template <typename AutomatedUpdateDateT = Aws::Utils::DateTime>
160 ServiceSoftwareOptions& WithAutomatedUpdateDate(AutomatedUpdateDateT&& value) {
161 SetAutomatedUpdateDate(std::forward<AutomatedUpdateDateT>(value));
162 return *this;
163 }
165
167
172 inline bool GetOptionalDeployment() const { return m_optionalDeployment; }
173 inline bool OptionalDeploymentHasBeenSet() const { return m_optionalDeploymentHasBeenSet; }
174 inline void SetOptionalDeployment(bool value) {
175 m_optionalDeploymentHasBeenSet = true;
176 m_optionalDeployment = value;
177 }
180 return *this;
181 }
183 private:
184 Aws::String m_currentVersion;
185
186 Aws::String m_newVersion;
187
188 bool m_updateAvailable{false};
189
190 bool m_cancellable{false};
191
193
194 Aws::String m_description;
195
196 Aws::Utils::DateTime m_automatedUpdateDate{};
197
198 bool m_optionalDeployment{false};
199 bool m_currentVersionHasBeenSet = false;
200 bool m_newVersionHasBeenSet = false;
201 bool m_updateAvailableHasBeenSet = false;
202 bool m_cancellableHasBeenSet = false;
203 bool m_updateStatusHasBeenSet = false;
204 bool m_descriptionHasBeenSet = false;
205 bool m_automatedUpdateDateHasBeenSet = false;
206 bool m_optionalDeploymentHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace ElasticsearchService
211} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions()=default
AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceSoftwareOptions & WithAutomatedUpdateDate(AutomatedUpdateDateT &&value)
ServiceSoftwareOptions & WithNewVersion(NewVersionT &&value)
ServiceSoftwareOptions & WithDescription(DescriptionT &&value)
ServiceSoftwareOptions & WithCurrentVersion(CurrentVersionT &&value)
ServiceSoftwareOptions & WithUpdateStatus(DeploymentStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue