AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
ScheduledAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/ActionSeverity.h>
10#include <aws/opensearch/model/ActionStatus.h>
11#include <aws/opensearch/model/ActionType.h>
12#include <aws/opensearch/model/ScheduledBy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService {
24namespace Model {
25
37 public:
38 AWS_OPENSEARCHSERVICE_API ScheduledAction() = default;
39 AWS_OPENSEARCHSERVICE_API ScheduledAction(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API ScheduledAction& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
55 ScheduledAction& WithId(IdT&& value) {
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline ActionType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(ActionType value) {
68 m_typeHasBeenSet = true;
69 m_type = value;
70 }
72 SetType(value);
73 return *this;
74 }
76
78
81 inline ActionSeverity GetSeverity() const { return m_severity; }
82 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
83 inline void SetSeverity(ActionSeverity value) {
84 m_severityHasBeenSet = true;
85 m_severity = value;
86 }
88 SetSeverity(value);
89 return *this;
90 }
92
94
97 inline long long GetScheduledTime() const { return m_scheduledTime; }
98 inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; }
99 inline void SetScheduledTime(long long value) {
100 m_scheduledTimeHasBeenSet = true;
101 m_scheduledTime = value;
102 }
103 inline ScheduledAction& WithScheduledTime(long long value) {
104 SetScheduledTime(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 ScheduledAction& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
132 inline ScheduledBy GetScheduledBy() const { return m_scheduledBy; }
133 inline bool ScheduledByHasBeenSet() const { return m_scheduledByHasBeenSet; }
134 inline void SetScheduledBy(ScheduledBy value) {
135 m_scheduledByHasBeenSet = true;
136 m_scheduledBy = value;
137 }
139 SetScheduledBy(value);
140 return *this;
141 }
143
145
148 inline ActionStatus GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(ActionStatus value) {
151 m_statusHasBeenSet = true;
152 m_status = value;
153 }
155 SetStatus(value);
156 return *this;
157 }
159
161
164 inline bool GetMandatory() const { return m_mandatory; }
165 inline bool MandatoryHasBeenSet() const { return m_mandatoryHasBeenSet; }
166 inline void SetMandatory(bool value) {
167 m_mandatoryHasBeenSet = true;
168 m_mandatory = value;
169 }
170 inline ScheduledAction& WithMandatory(bool value) {
171 SetMandatory(value);
172 return *this;
173 }
175
177
180 inline bool GetCancellable() const { return m_cancellable; }
181 inline bool CancellableHasBeenSet() const { return m_cancellableHasBeenSet; }
182 inline void SetCancellable(bool value) {
183 m_cancellableHasBeenSet = true;
184 m_cancellable = value;
185 }
186 inline ScheduledAction& WithCancellable(bool value) {
187 SetCancellable(value);
188 return *this;
189 }
191 private:
192 Aws::String m_id;
193
195
197
198 long long m_scheduledTime{0};
199
200 Aws::String m_description;
201
202 ScheduledBy m_scheduledBy{ScheduledBy::NOT_SET};
203
205
206 bool m_mandatory{false};
207
208 bool m_cancellable{false};
209 bool m_idHasBeenSet = false;
210 bool m_typeHasBeenSet = false;
211 bool m_severityHasBeenSet = false;
212 bool m_scheduledTimeHasBeenSet = false;
213 bool m_descriptionHasBeenSet = false;
214 bool m_scheduledByHasBeenSet = false;
215 bool m_statusHasBeenSet = false;
216 bool m_mandatoryHasBeenSet = false;
217 bool m_cancellableHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace OpenSearchService
222} // namespace Aws
AWS_OPENSEARCHSERVICE_API ScheduledAction(Aws::Utils::Json::JsonView jsonValue)
ScheduledAction & WithStatus(ActionStatus value)
AWS_OPENSEARCHSERVICE_API ScheduledAction()=default
ScheduledAction & WithCancellable(bool value)
ScheduledAction & WithScheduledBy(ScheduledBy value)
AWS_OPENSEARCHSERVICE_API ScheduledAction & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledAction & WithScheduledTime(long long value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledAction & WithDescription(DescriptionT &&value)
ScheduledAction & WithSeverity(ActionSeverity value)
ScheduledAction & WithType(ActionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue