AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ScheduleAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elementalinference/ElementalInference_EXPORTS.h>
10#include <aws/elementalinference/model/ScheduleActionError.h>
11#include <aws/elementalinference/model/ScheduleActionOperation.h>
12#include <aws/elementalinference/model/ScheduleActionStartConfiguration.h>
13#include <aws/elementalinference/model/ScheduleActionStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ElementalInference {
25namespace Model {
26
35 public:
36 AWS_ELEMENTALINFERENCE_API ScheduleAction() = default;
37 AWS_ELEMENTALINFERENCE_API ScheduleAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELEMENTALINFERENCE_API ScheduleAction& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetActionName() const { return m_actionName; }
46 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
47 template <typename ActionNameT = Aws::String>
48 void SetActionName(ActionNameT&& value) {
49 m_actionNameHasBeenSet = true;
50 m_actionName = std::forward<ActionNameT>(value);
51 }
52 template <typename ActionNameT = Aws::String>
53 ScheduleAction& WithActionName(ActionNameT&& value) {
54 SetActionName(std::forward<ActionNameT>(value));
55 return *this;
56 }
58
60
63 inline const ScheduleActionStartConfiguration& GetStartConfiguration() const { return m_startConfiguration; }
64 inline bool StartConfigurationHasBeenSet() const { return m_startConfigurationHasBeenSet; }
65 template <typename StartConfigurationT = ScheduleActionStartConfiguration>
66 void SetStartConfiguration(StartConfigurationT&& value) {
67 m_startConfigurationHasBeenSet = true;
68 m_startConfiguration = std::forward<StartConfigurationT>(value);
69 }
70 template <typename StartConfigurationT = ScheduleActionStartConfiguration>
71 ScheduleAction& WithStartConfiguration(StartConfigurationT&& value) {
72 SetStartConfiguration(std::forward<StartConfigurationT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<ScheduleActionOperation>& GetOperations() const { return m_operations; }
82 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
83 template <typename OperationsT = Aws::Vector<ScheduleActionOperation>>
84 void SetOperations(OperationsT&& value) {
85 m_operationsHasBeenSet = true;
86 m_operations = std::forward<OperationsT>(value);
87 }
88 template <typename OperationsT = Aws::Vector<ScheduleActionOperation>>
89 ScheduleAction& WithOperations(OperationsT&& value) {
90 SetOperations(std::forward<OperationsT>(value));
91 return *this;
92 }
93 template <typename OperationsT = ScheduleActionOperation>
94 ScheduleAction& AddOperations(OperationsT&& value) {
95 m_operationsHasBeenSet = true;
96 m_operations.emplace_back(std::forward<OperationsT>(value));
97 return *this;
98 }
100
102
109 inline ScheduleActionStatus GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(ScheduleActionStatus value) {
112 m_statusHasBeenSet = true;
113 m_status = value;
114 }
116 SetStatus(value);
117 return *this;
118 }
120
122
126 inline const ScheduleActionError& GetError() const { return m_error; }
127 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
128 template <typename ErrorT = ScheduleActionError>
129 void SetError(ErrorT&& value) {
130 m_errorHasBeenSet = true;
131 m_error = std::forward<ErrorT>(value);
132 }
133 template <typename ErrorT = ScheduleActionError>
134 ScheduleAction& WithError(ErrorT&& value) {
135 SetError(std::forward<ErrorT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_actionName;
141
142 ScheduleActionStartConfiguration m_startConfiguration;
143
145
147
148 ScheduleActionError m_error;
149 bool m_actionNameHasBeenSet = false;
150 bool m_startConfigurationHasBeenSet = false;
151 bool m_operationsHasBeenSet = false;
152 bool m_statusHasBeenSet = false;
153 bool m_errorHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace ElementalInference
158} // namespace Aws
ScheduleAction & WithStartConfiguration(StartConfigurationT &&value)
const ScheduleActionStartConfiguration & GetStartConfiguration() const
void SetStartConfiguration(StartConfigurationT &&value)
AWS_ELEMENTALINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELEMENTALINFERENCE_API ScheduleAction()=default
const ScheduleActionError & GetError() const
AWS_ELEMENTALINFERENCE_API ScheduleAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ScheduleActionOperation > & GetOperations() const
AWS_ELEMENTALINFERENCE_API ScheduleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduleAction & WithStatus(ScheduleActionStatus value)
ScheduleAction & WithOperations(OperationsT &&value)
ScheduleAction & WithError(ErrorT &&value)
ScheduleAction & AddOperations(OperationsT &&value)
void SetStatus(ScheduleActionStatus value)
ScheduleAction & WithActionName(ActionNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue