AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledAction.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/ActionType.h>
10#include <aws/opensearch/model/ActionSeverity.h>
11#include <aws/opensearch/model/ScheduledBy.h>
12#include <aws/opensearch/model/ActionStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchService
26{
27namespace Model
28{
29
41 {
42 public:
43 AWS_OPENSEARCHSERVICE_API ScheduledAction();
44 AWS_OPENSEARCHSERVICE_API ScheduledAction(Aws::Utils::Json::JsonView jsonValue);
45 AWS_OPENSEARCHSERVICE_API ScheduledAction& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetId() const{ return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
58 inline ScheduledAction& WithId(const Aws::String& value) { SetId(value); return *this;}
59 inline ScheduledAction& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
60 inline ScheduledAction& WithId(const char* value) { SetId(value); return *this;}
62
64
67 inline const ActionType& GetType() const{ return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(const ActionType& value) { m_typeHasBeenSet = true; m_type = value; }
70 inline void SetType(ActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
71 inline ScheduledAction& WithType(const ActionType& value) { SetType(value); return *this;}
72 inline ScheduledAction& WithType(ActionType&& value) { SetType(std::move(value)); return *this;}
74
76
79 inline const ActionSeverity& GetSeverity() const{ return m_severity; }
80 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
81 inline void SetSeverity(const ActionSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
82 inline void SetSeverity(ActionSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
83 inline ScheduledAction& WithSeverity(const ActionSeverity& value) { SetSeverity(value); return *this;}
84 inline ScheduledAction& WithSeverity(ActionSeverity&& value) { SetSeverity(std::move(value)); return *this;}
86
88
91 inline long long GetScheduledTime() const{ return m_scheduledTime; }
92 inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; }
93 inline void SetScheduledTime(long long value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = value; }
94 inline ScheduledAction& WithScheduledTime(long long value) { SetScheduledTime(value); return *this;}
96
98
101 inline const Aws::String& GetDescription() const{ return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
104 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
105 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 inline ScheduledAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 inline ScheduledAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
108 inline ScheduledAction& WithDescription(const char* value) { SetDescription(value); return *this;}
110
112
116 inline const ScheduledBy& GetScheduledBy() const{ return m_scheduledBy; }
117 inline bool ScheduledByHasBeenSet() const { return m_scheduledByHasBeenSet; }
118 inline void SetScheduledBy(const ScheduledBy& value) { m_scheduledByHasBeenSet = true; m_scheduledBy = value; }
119 inline void SetScheduledBy(ScheduledBy&& value) { m_scheduledByHasBeenSet = true; m_scheduledBy = std::move(value); }
120 inline ScheduledAction& WithScheduledBy(const ScheduledBy& value) { SetScheduledBy(value); return *this;}
121 inline ScheduledAction& WithScheduledBy(ScheduledBy&& value) { SetScheduledBy(std::move(value)); return *this;}
123
125
128 inline const ActionStatus& GetStatus() const{ return m_status; }
129 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
130 inline void SetStatus(const ActionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
131 inline void SetStatus(ActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
132 inline ScheduledAction& WithStatus(const ActionStatus& value) { SetStatus(value); return *this;}
133 inline ScheduledAction& WithStatus(ActionStatus&& value) { SetStatus(std::move(value)); return *this;}
135
137
140 inline bool GetMandatory() const{ return m_mandatory; }
141 inline bool MandatoryHasBeenSet() const { return m_mandatoryHasBeenSet; }
142 inline void SetMandatory(bool value) { m_mandatoryHasBeenSet = true; m_mandatory = value; }
143 inline ScheduledAction& WithMandatory(bool value) { SetMandatory(value); return *this;}
145
147
150 inline bool GetCancellable() const{ return m_cancellable; }
151 inline bool CancellableHasBeenSet() const { return m_cancellableHasBeenSet; }
152 inline void SetCancellable(bool value) { m_cancellableHasBeenSet = true; m_cancellable = value; }
153 inline ScheduledAction& WithCancellable(bool value) { SetCancellable(value); return *this;}
155 private:
156
157 Aws::String m_id;
158 bool m_idHasBeenSet = false;
159
160 ActionType m_type;
161 bool m_typeHasBeenSet = false;
162
163 ActionSeverity m_severity;
164 bool m_severityHasBeenSet = false;
165
166 long long m_scheduledTime;
167 bool m_scheduledTimeHasBeenSet = false;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
172 ScheduledBy m_scheduledBy;
173 bool m_scheduledByHasBeenSet = false;
174
175 ActionStatus m_status;
176 bool m_statusHasBeenSet = false;
177
178 bool m_mandatory;
179 bool m_mandatoryHasBeenSet = false;
180
181 bool m_cancellable;
182 bool m_cancellableHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace OpenSearchService
187} // namespace Aws
AWS_OPENSEARCHSERVICE_API ScheduledAction(Aws::Utils::Json::JsonView jsonValue)
ScheduledAction & WithDescription(const Aws::String &value)
ScheduledAction & WithSeverity(const ActionSeverity &value)
AWS_OPENSEARCHSERVICE_API ScheduledAction()
ScheduledAction & WithId(Aws::String &&value)
ScheduledAction & WithType(ActionType &&value)
ScheduledAction & WithCancellable(bool value)
void SetDescription(const Aws::String &value)
void SetSeverity(const ActionSeverity &value)
ScheduledAction & WithDescription(const char *value)
void SetScheduledBy(const ScheduledBy &value)
ScheduledAction & WithId(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API ScheduledAction & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledAction & WithId(const char *value)
ScheduledAction & WithStatus(const ActionStatus &value)
const ActionSeverity & GetSeverity() const
ScheduledAction & WithStatus(ActionStatus &&value)
ScheduledAction & WithScheduledTime(long long value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledAction & WithScheduledBy(const ScheduledBy &value)
ScheduledAction & WithSeverity(ActionSeverity &&value)
ScheduledAction & WithDescription(Aws::String &&value)
ScheduledAction & WithType(const ActionType &value)
void SetStatus(const ActionStatus &value)
ScheduledAction & WithScheduledBy(ScheduledBy &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue