AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename CurrentVersionT = Aws::String>
50 void SetCurrentVersion(CurrentVersionT&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::forward<CurrentVersionT>(value); }
51 template<typename CurrentVersionT = Aws::String>
52 ServiceSoftwareOptions& WithCurrentVersion(CurrentVersionT&& value) { SetCurrentVersion(std::forward<CurrentVersionT>(value)); return *this;}
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) { m_newVersionHasBeenSet = true; m_newVersion = std::forward<NewVersionT>(value); }
63 template<typename NewVersionT = Aws::String>
64 ServiceSoftwareOptions& WithNewVersion(NewVersionT&& value) { SetNewVersion(std::forward<NewVersionT>(value)); return *this;}
66
68
73 inline bool GetUpdateAvailable() const { return m_updateAvailable; }
74 inline bool UpdateAvailableHasBeenSet() const { return m_updateAvailableHasBeenSet; }
75 inline void SetUpdateAvailable(bool value) { m_updateAvailableHasBeenSet = true; m_updateAvailable = value; }
76 inline ServiceSoftwareOptions& WithUpdateAvailable(bool value) { SetUpdateAvailable(value); return *this;}
78
80
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
98 inline DeploymentStatus GetUpdateStatus() const { return m_updateStatus; }
99 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
100 inline void SetUpdateStatus(DeploymentStatus value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
103
105
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template<typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
112 template<typename DescriptionT = Aws::String>
113 ServiceSoftwareOptions& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
115
117
122 inline const Aws::Utils::DateTime& GetAutomatedUpdateDate() const { return m_automatedUpdateDate; }
123 inline bool AutomatedUpdateDateHasBeenSet() const { return m_automatedUpdateDateHasBeenSet; }
124 template<typename AutomatedUpdateDateT = Aws::Utils::DateTime>
125 void SetAutomatedUpdateDate(AutomatedUpdateDateT&& value) { m_automatedUpdateDateHasBeenSet = true; m_automatedUpdateDate = std::forward<AutomatedUpdateDateT>(value); }
126 template<typename AutomatedUpdateDateT = Aws::Utils::DateTime>
127 ServiceSoftwareOptions& WithAutomatedUpdateDate(AutomatedUpdateDateT&& value) { SetAutomatedUpdateDate(std::forward<AutomatedUpdateDateT>(value)); return *this;}
129
131
136 inline bool GetOptionalDeployment() const { return m_optionalDeployment; }
137 inline bool OptionalDeploymentHasBeenSet() const { return m_optionalDeploymentHasBeenSet; }
138 inline void SetOptionalDeployment(bool value) { m_optionalDeploymentHasBeenSet = true; m_optionalDeployment = value; }
139 inline ServiceSoftwareOptions& WithOptionalDeployment(bool value) { SetOptionalDeployment(value); return *this;}
141 private:
142
143 Aws::String m_currentVersion;
144 bool m_currentVersionHasBeenSet = false;
145
146 Aws::String m_newVersion;
147 bool m_newVersionHasBeenSet = false;
148
149 bool m_updateAvailable{false};
150 bool m_updateAvailableHasBeenSet = false;
151
152 bool m_cancellable{false};
153 bool m_cancellableHasBeenSet = false;
154
156 bool m_updateStatusHasBeenSet = false;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
161 Aws::Utils::DateTime m_automatedUpdateDate{};
162 bool m_automatedUpdateDateHasBeenSet = false;
163
164 bool m_optionalDeployment{false};
165 bool m_optionalDeploymentHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace ElasticsearchService
170} // 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