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/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/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 OpenSearchService
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions();
40 AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
50 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
51 inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
52 inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
53 inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
54 inline ServiceSoftwareOptions& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
55 inline ServiceSoftwareOptions& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
56 inline ServiceSoftwareOptions& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
58
60
63 inline const Aws::String& GetNewVersion() const{ return m_newVersion; }
64 inline bool NewVersionHasBeenSet() const { return m_newVersionHasBeenSet; }
65 inline void SetNewVersion(const Aws::String& value) { m_newVersionHasBeenSet = true; m_newVersion = value; }
66 inline void SetNewVersion(Aws::String&& value) { m_newVersionHasBeenSet = true; m_newVersion = std::move(value); }
67 inline void SetNewVersion(const char* value) { m_newVersionHasBeenSet = true; m_newVersion.assign(value); }
68 inline ServiceSoftwareOptions& WithNewVersion(const Aws::String& value) { SetNewVersion(value); return *this;}
69 inline ServiceSoftwareOptions& WithNewVersion(Aws::String&& value) { SetNewVersion(std::move(value)); return *this;}
70 inline ServiceSoftwareOptions& WithNewVersion(const char* value) { SetNewVersion(value); return *this;}
72
74
78 inline bool GetUpdateAvailable() const{ return m_updateAvailable; }
79 inline bool UpdateAvailableHasBeenSet() const { return m_updateAvailableHasBeenSet; }
80 inline void SetUpdateAvailable(bool value) { m_updateAvailableHasBeenSet = true; m_updateAvailable = value; }
81 inline ServiceSoftwareOptions& WithUpdateAvailable(bool value) { SetUpdateAvailable(value); return *this;}
83
85
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
99 inline const DeploymentStatus& GetUpdateStatus() const{ return m_updateStatus; }
100 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
101 inline void SetUpdateStatus(const DeploymentStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
102 inline void SetUpdateStatus(DeploymentStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); }
103 inline ServiceSoftwareOptions& WithUpdateStatus(const DeploymentStatus& value) { SetUpdateStatus(value); return *this;}
104 inline ServiceSoftwareOptions& WithUpdateStatus(DeploymentStatus&& value) { SetUpdateStatus(std::move(value)); return *this;}
106
108
111 inline const Aws::String& GetDescription() const{ return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
114 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
115 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
116 inline ServiceSoftwareOptions& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
117 inline ServiceSoftwareOptions& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
118 inline ServiceSoftwareOptions& WithDescription(const char* value) { SetDescription(value); return *this;}
120
122
127 inline const Aws::Utils::DateTime& GetAutomatedUpdateDate() const{ return m_automatedUpdateDate; }
128 inline bool AutomatedUpdateDateHasBeenSet() const { return m_automatedUpdateDateHasBeenSet; }
129 inline void SetAutomatedUpdateDate(const Aws::Utils::DateTime& value) { m_automatedUpdateDateHasBeenSet = true; m_automatedUpdateDate = value; }
130 inline void SetAutomatedUpdateDate(Aws::Utils::DateTime&& value) { m_automatedUpdateDateHasBeenSet = true; m_automatedUpdateDate = std::move(value); }
134
136
140 inline bool GetOptionalDeployment() const{ return m_optionalDeployment; }
141 inline bool OptionalDeploymentHasBeenSet() const { return m_optionalDeploymentHasBeenSet; }
142 inline void SetOptionalDeployment(bool value) { m_optionalDeploymentHasBeenSet = true; m_optionalDeployment = value; }
143 inline ServiceSoftwareOptions& WithOptionalDeployment(bool value) { SetOptionalDeployment(value); return *this;}
145 private:
146
147 Aws::String m_currentVersion;
148 bool m_currentVersionHasBeenSet = false;
149
150 Aws::String m_newVersion;
151 bool m_newVersionHasBeenSet = false;
152
153 bool m_updateAvailable;
154 bool m_updateAvailableHasBeenSet = false;
155
156 bool m_cancellable;
157 bool m_cancellableHasBeenSet = false;
158
159 DeploymentStatus m_updateStatus;
160 bool m_updateStatusHasBeenSet = false;
161
162 Aws::String m_description;
163 bool m_descriptionHasBeenSet = false;
164
165 Aws::Utils::DateTime m_automatedUpdateDate;
166 bool m_automatedUpdateDateHasBeenSet = false;
167
168 bool m_optionalDeployment;
169 bool m_optionalDeploymentHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace OpenSearchService
174} // namespace Aws
ServiceSoftwareOptions & WithCurrentVersion(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API ServiceSoftwareOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceSoftwareOptions & WithUpdateStatus(const DeploymentStatus &value)
void SetAutomatedUpdateDate(const Aws::Utils::DateTime &value)
ServiceSoftwareOptions & WithNewVersion(const Aws::String &value)
ServiceSoftwareOptions & WithDescription(const Aws::String &value)
ServiceSoftwareOptions & WithDescription(const char *value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceSoftwareOptions & WithAutomatedUpdateDate(const Aws::Utils::DateTime &value)
ServiceSoftwareOptions & WithDescription(Aws::String &&value)
ServiceSoftwareOptions & WithCurrentVersion(const char *value)
ServiceSoftwareOptions & WithNewVersion(const char *value)
ServiceSoftwareOptions & WithAutomatedUpdateDate(Aws::Utils::DateTime &&value)
ServiceSoftwareOptions & WithCurrentVersion(Aws::String &&value)
const Aws::Utils::DateTime & GetAutomatedUpdateDate() const
ServiceSoftwareOptions & WithNewVersion(Aws::String &&value)
ServiceSoftwareOptions & WithUpdateStatus(DeploymentStatus &&value)
ServiceSoftwareOptions & WithOptionalDeployment(bool 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