AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CurrentVersionT = Aws::String>
52 void SetCurrentVersion(CurrentVersionT&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::forward<CurrentVersionT>(value); }
53 template<typename CurrentVersionT = Aws::String>
54 ServiceSoftwareOptions& WithCurrentVersion(CurrentVersionT&& value) { SetCurrentVersion(std::forward<CurrentVersionT>(value)); return *this;}
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) { m_newVersionHasBeenSet = true; m_newVersion = std::forward<NewVersionT>(value); }
65 template<typename NewVersionT = Aws::String>
66 ServiceSoftwareOptions& WithNewVersion(NewVersionT&& value) { SetNewVersion(std::forward<NewVersionT>(value)); return *this;}
68
70
74 inline bool GetUpdateAvailable() const { return m_updateAvailable; }
75 inline bool UpdateAvailableHasBeenSet() const { return m_updateAvailableHasBeenSet; }
76 inline void SetUpdateAvailable(bool value) { m_updateAvailableHasBeenSet = true; m_updateAvailable = value; }
77 inline ServiceSoftwareOptions& WithUpdateAvailable(bool value) { SetUpdateAvailable(value); return *this;}
79
81
85 inline bool GetCancellable() const { return m_cancellable; }
86 inline bool CancellableHasBeenSet() const { return m_cancellableHasBeenSet; }
87 inline void SetCancellable(bool value) { m_cancellableHasBeenSet = true; m_cancellable = value; }
88 inline ServiceSoftwareOptions& WithCancellable(bool value) { SetCancellable(value); return *this;}
90
92
95 inline DeploymentStatus GetUpdateStatus() const { return m_updateStatus; }
96 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
97 inline void SetUpdateStatus(DeploymentStatus value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template<typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
109 template<typename DescriptionT = Aws::String>
110 ServiceSoftwareOptions& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
112
114
119 inline const Aws::Utils::DateTime& GetAutomatedUpdateDate() const { return m_automatedUpdateDate; }
120 inline bool AutomatedUpdateDateHasBeenSet() const { return m_automatedUpdateDateHasBeenSet; }
121 template<typename AutomatedUpdateDateT = Aws::Utils::DateTime>
122 void SetAutomatedUpdateDate(AutomatedUpdateDateT&& value) { m_automatedUpdateDateHasBeenSet = true; m_automatedUpdateDate = std::forward<AutomatedUpdateDateT>(value); }
123 template<typename AutomatedUpdateDateT = Aws::Utils::DateTime>
124 ServiceSoftwareOptions& WithAutomatedUpdateDate(AutomatedUpdateDateT&& value) { SetAutomatedUpdateDate(std::forward<AutomatedUpdateDateT>(value)); return *this;}
126
128
132 inline bool GetOptionalDeployment() const { return m_optionalDeployment; }
133 inline bool OptionalDeploymentHasBeenSet() const { return m_optionalDeploymentHasBeenSet; }
134 inline void SetOptionalDeployment(bool value) { m_optionalDeploymentHasBeenSet = true; m_optionalDeployment = value; }
135 inline ServiceSoftwareOptions& WithOptionalDeployment(bool value) { SetOptionalDeployment(value); return *this;}
137 private:
138
139 Aws::String m_currentVersion;
140 bool m_currentVersionHasBeenSet = false;
141
142 Aws::String m_newVersion;
143 bool m_newVersionHasBeenSet = false;
144
145 bool m_updateAvailable{false};
146 bool m_updateAvailableHasBeenSet = false;
147
148 bool m_cancellable{false};
149 bool m_cancellableHasBeenSet = false;
150
152 bool m_updateStatusHasBeenSet = false;
153
154 Aws::String m_description;
155 bool m_descriptionHasBeenSet = false;
156
157 Aws::Utils::DateTime m_automatedUpdateDate{};
158 bool m_automatedUpdateDateHasBeenSet = false;
159
160 bool m_optionalDeployment{false};
161 bool m_optionalDeploymentHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace OpenSearchService
166} // 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