AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceSoftwareOptions.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/es/model/DeploymentStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ElasticsearchService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions();
38 AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
48 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
49 inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
50 inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
51 inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
52 inline ServiceSoftwareOptions& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
53 inline ServiceSoftwareOptions& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
54 inline ServiceSoftwareOptions& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
56
58
61 inline const Aws::String& GetNewVersion() const{ return m_newVersion; }
62 inline bool NewVersionHasBeenSet() const { return m_newVersionHasBeenSet; }
63 inline void SetNewVersion(const Aws::String& value) { m_newVersionHasBeenSet = true; m_newVersion = value; }
64 inline void SetNewVersion(Aws::String&& value) { m_newVersionHasBeenSet = true; m_newVersion = std::move(value); }
65 inline void SetNewVersion(const char* value) { m_newVersionHasBeenSet = true; m_newVersion.assign(value); }
66 inline ServiceSoftwareOptions& WithNewVersion(const Aws::String& value) { SetNewVersion(value); return *this;}
67 inline ServiceSoftwareOptions& WithNewVersion(Aws::String&& value) { SetNewVersion(std::move(value)); return *this;}
68 inline ServiceSoftwareOptions& WithNewVersion(const char* value) { SetNewVersion(value); return *this;}
70
72
77 inline bool GetUpdateAvailable() const{ return m_updateAvailable; }
78 inline bool UpdateAvailableHasBeenSet() const { return m_updateAvailableHasBeenSet; }
79 inline void SetUpdateAvailable(bool value) { m_updateAvailableHasBeenSet = true; m_updateAvailable = value; }
80 inline ServiceSoftwareOptions& WithUpdateAvailable(bool value) { SetUpdateAvailable(value); return *this;}
82
84
89 inline bool GetCancellable() const{ return m_cancellable; }
90 inline bool CancellableHasBeenSet() const { return m_cancellableHasBeenSet; }
91 inline void SetCancellable(bool value) { m_cancellableHasBeenSet = true; m_cancellable = value; }
92 inline ServiceSoftwareOptions& WithCancellable(bool value) { SetCancellable(value); return *this;}
94
96
102 inline const DeploymentStatus& GetUpdateStatus() const{ return m_updateStatus; }
103 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
104 inline void SetUpdateStatus(const DeploymentStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
105 inline void SetUpdateStatus(DeploymentStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); }
106 inline ServiceSoftwareOptions& WithUpdateStatus(const DeploymentStatus& value) { SetUpdateStatus(value); return *this;}
107 inline ServiceSoftwareOptions& WithUpdateStatus(DeploymentStatus&& value) { SetUpdateStatus(std::move(value)); return *this;}
109
111
114 inline const Aws::String& GetDescription() const{ return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
117 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
118 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
119 inline ServiceSoftwareOptions& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
120 inline ServiceSoftwareOptions& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
121 inline ServiceSoftwareOptions& WithDescription(const char* value) { SetDescription(value); return *this;}
123
125
130 inline const Aws::Utils::DateTime& GetAutomatedUpdateDate() const{ return m_automatedUpdateDate; }
131 inline bool AutomatedUpdateDateHasBeenSet() const { return m_automatedUpdateDateHasBeenSet; }
132 inline void SetAutomatedUpdateDate(const Aws::Utils::DateTime& value) { m_automatedUpdateDateHasBeenSet = true; m_automatedUpdateDate = value; }
133 inline void SetAutomatedUpdateDate(Aws::Utils::DateTime&& value) { m_automatedUpdateDateHasBeenSet = true; m_automatedUpdateDate = std::move(value); }
137
139
144 inline bool GetOptionalDeployment() const{ return m_optionalDeployment; }
145 inline bool OptionalDeploymentHasBeenSet() const { return m_optionalDeploymentHasBeenSet; }
146 inline void SetOptionalDeployment(bool value) { m_optionalDeploymentHasBeenSet = true; m_optionalDeployment = value; }
147 inline ServiceSoftwareOptions& WithOptionalDeployment(bool value) { SetOptionalDeployment(value); return *this;}
149 private:
150
151 Aws::String m_currentVersion;
152 bool m_currentVersionHasBeenSet = false;
153
154 Aws::String m_newVersion;
155 bool m_newVersionHasBeenSet = false;
156
157 bool m_updateAvailable;
158 bool m_updateAvailableHasBeenSet = false;
159
160 bool m_cancellable;
161 bool m_cancellableHasBeenSet = false;
162
163 DeploymentStatus m_updateStatus;
164 bool m_updateStatusHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
169 Aws::Utils::DateTime m_automatedUpdateDate;
170 bool m_automatedUpdateDateHasBeenSet = false;
171
172 bool m_optionalDeployment;
173 bool m_optionalDeploymentHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace ElasticsearchService
178} // namespace Aws
ServiceSoftwareOptions & WithNewVersion(const char *value)
AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceSoftwareOptions & WithUpdateStatus(DeploymentStatus &&value)
AWS_ELASTICSEARCHSERVICE_API ServiceSoftwareOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceSoftwareOptions & WithCurrentVersion(Aws::String &&value)
ServiceSoftwareOptions & WithAutomatedUpdateDate(Aws::Utils::DateTime &&value)
ServiceSoftwareOptions & WithDescription(const char *value)
ServiceSoftwareOptions & WithNewVersion(const Aws::String &value)
ServiceSoftwareOptions & WithDescription(Aws::String &&value)
void SetAutomatedUpdateDate(const Aws::Utils::DateTime &value)
ServiceSoftwareOptions & WithCurrentVersion(const Aws::String &value)
ServiceSoftwareOptions & WithDescription(const Aws::String &value)
ServiceSoftwareOptions & WithNewVersion(Aws::String &&value)
ServiceSoftwareOptions & WithAutomatedUpdateDate(const Aws::Utils::DateTime &value)
ServiceSoftwareOptions & WithCurrentVersion(const char *value)
ServiceSoftwareOptions & WithUpdateStatus(const DeploymentStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue