AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 ScheduledAction& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
60
62
65 inline ActionType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(ActionType value) { m_typeHasBeenSet = true; m_type = value; }
68 inline ScheduledAction& WithType(ActionType value) { SetType(value); return *this;}
70
72
75 inline ActionSeverity GetSeverity() const { return m_severity; }
76 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
77 inline void SetSeverity(ActionSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
78 inline ScheduledAction& WithSeverity(ActionSeverity value) { SetSeverity(value); return *this;}
80
82
85 inline long long GetScheduledTime() const { return m_scheduledTime; }
86 inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; }
87 inline void SetScheduledTime(long long value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = value; }
88 inline ScheduledAction& WithScheduledTime(long long value) { SetScheduledTime(value); return *this;}
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template<typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
99 template<typename DescriptionT = Aws::String>
100 ScheduledAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
102
104
108 inline ScheduledBy GetScheduledBy() const { return m_scheduledBy; }
109 inline bool ScheduledByHasBeenSet() const { return m_scheduledByHasBeenSet; }
110 inline void SetScheduledBy(ScheduledBy value) { m_scheduledByHasBeenSet = true; m_scheduledBy = value; }
111 inline ScheduledAction& WithScheduledBy(ScheduledBy value) { SetScheduledBy(value); return *this;}
113
115
118 inline ActionStatus GetStatus() const { return m_status; }
119 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
120 inline void SetStatus(ActionStatus value) { m_statusHasBeenSet = true; m_status = value; }
121 inline ScheduledAction& WithStatus(ActionStatus value) { SetStatus(value); return *this;}
123
125
128 inline bool GetMandatory() const { return m_mandatory; }
129 inline bool MandatoryHasBeenSet() const { return m_mandatoryHasBeenSet; }
130 inline void SetMandatory(bool value) { m_mandatoryHasBeenSet = true; m_mandatory = value; }
131 inline ScheduledAction& WithMandatory(bool value) { SetMandatory(value); return *this;}
133
135
138 inline bool GetCancellable() const { return m_cancellable; }
139 inline bool CancellableHasBeenSet() const { return m_cancellableHasBeenSet; }
140 inline void SetCancellable(bool value) { m_cancellableHasBeenSet = true; m_cancellable = value; }
141 inline ScheduledAction& WithCancellable(bool value) { SetCancellable(value); return *this;}
143 private:
144
145 Aws::String m_id;
146 bool m_idHasBeenSet = false;
147
149 bool m_typeHasBeenSet = false;
150
152 bool m_severityHasBeenSet = false;
153
154 long long m_scheduledTime{0};
155 bool m_scheduledTimeHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
160 ScheduledBy m_scheduledBy{ScheduledBy::NOT_SET};
161 bool m_scheduledByHasBeenSet = false;
162
164 bool m_statusHasBeenSet = false;
165
166 bool m_mandatory{false};
167 bool m_mandatoryHasBeenSet = false;
168
169 bool m_cancellable{false};
170 bool m_cancellableHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace OpenSearchService
175} // 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