AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Script.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/dlm/DLM_EXPORTS.h>
10#include <aws/dlm/model/ExecutionHandlerServiceValues.h>
11#include <aws/dlm/model/StageValues.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DLM {
23namespace Model {
24
35class Script {
36 public:
37 AWS_DLM_API Script() = default;
38 AWS_DLM_API Script(Aws::Utils::Json::JsonView jsonValue);
41
43
61 inline const Aws::Vector<StageValues>& GetStages() const { return m_stages; }
62 inline bool StagesHasBeenSet() const { return m_stagesHasBeenSet; }
63 template <typename StagesT = Aws::Vector<StageValues>>
64 void SetStages(StagesT&& value) {
65 m_stagesHasBeenSet = true;
66 m_stages = std::forward<StagesT>(value);
67 }
68 template <typename StagesT = Aws::Vector<StageValues>>
69 Script& WithStages(StagesT&& value) {
70 SetStages(std::forward<StagesT>(value));
71 return *this;
72 }
73 inline Script& AddStages(StageValues value) {
74 m_stagesHasBeenSet = true;
75 m_stages.push_back(value);
76 return *this;
77 }
79
81
89 inline ExecutionHandlerServiceValues GetExecutionHandlerService() const { return m_executionHandlerService; }
90 inline bool ExecutionHandlerServiceHasBeenSet() const { return m_executionHandlerServiceHasBeenSet; }
92 m_executionHandlerServiceHasBeenSet = true;
93 m_executionHandlerService = value;
94 }
97 return *this;
98 }
100
102
113 inline const Aws::String& GetExecutionHandler() const { return m_executionHandler; }
114 inline bool ExecutionHandlerHasBeenSet() const { return m_executionHandlerHasBeenSet; }
115 template <typename ExecutionHandlerT = Aws::String>
116 void SetExecutionHandler(ExecutionHandlerT&& value) {
117 m_executionHandlerHasBeenSet = true;
118 m_executionHandler = std::forward<ExecutionHandlerT>(value);
119 }
120 template <typename ExecutionHandlerT = Aws::String>
121 Script& WithExecutionHandler(ExecutionHandlerT&& value) {
122 SetExecutionHandler(std::forward<ExecutionHandlerT>(value));
123 return *this;
124 }
126
128
137 inline bool GetExecuteOperationOnScriptFailure() const { return m_executeOperationOnScriptFailure; }
138 inline bool ExecuteOperationOnScriptFailureHasBeenSet() const { return m_executeOperationOnScriptFailureHasBeenSet; }
139 inline void SetExecuteOperationOnScriptFailure(bool value) {
140 m_executeOperationOnScriptFailureHasBeenSet = true;
141 m_executeOperationOnScriptFailure = value;
142 }
145 return *this;
146 }
148
150
158 inline int GetExecutionTimeout() const { return m_executionTimeout; }
159 inline bool ExecutionTimeoutHasBeenSet() const { return m_executionTimeoutHasBeenSet; }
160 inline void SetExecutionTimeout(int value) {
161 m_executionTimeoutHasBeenSet = true;
162 m_executionTimeout = value;
163 }
164 inline Script& WithExecutionTimeout(int value) {
165 SetExecutionTimeout(value);
166 return *this;
167 }
169
171
181 inline int GetMaximumRetryCount() const { return m_maximumRetryCount; }
182 inline bool MaximumRetryCountHasBeenSet() const { return m_maximumRetryCountHasBeenSet; }
183 inline void SetMaximumRetryCount(int value) {
184 m_maximumRetryCountHasBeenSet = true;
185 m_maximumRetryCount = value;
186 }
187 inline Script& WithMaximumRetryCount(int value) {
189 return *this;
190 }
192 private:
194
196
197 Aws::String m_executionHandler;
198
199 bool m_executeOperationOnScriptFailure{false};
200
201 int m_executionTimeout{0};
202
203 int m_maximumRetryCount{0};
204 bool m_stagesHasBeenSet = false;
205 bool m_executionHandlerServiceHasBeenSet = false;
206 bool m_executionHandlerHasBeenSet = false;
207 bool m_executeOperationOnScriptFailureHasBeenSet = false;
208 bool m_executionTimeoutHasBeenSet = false;
209 bool m_maximumRetryCountHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace DLM
214} // namespace Aws
void SetExecutionTimeout(int value)
Definition Script.h:160
const Aws::String & GetExecutionHandler() const
Definition Script.h:113
bool ExecuteOperationOnScriptFailureHasBeenSet() const
Definition Script.h:138
const Aws::Vector< StageValues > & GetStages() const
Definition Script.h:61
Script & WithExecutionHandlerService(ExecutionHandlerServiceValues value)
Definition Script.h:95
AWS_DLM_API Script()=default
ExecutionHandlerServiceValues GetExecutionHandlerService() const
Definition Script.h:89
bool StagesHasBeenSet() const
Definition Script.h:62
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMaximumRetryCount(int value)
Definition Script.h:183
AWS_DLM_API Script & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStages(StagesT &&value)
Definition Script.h:64
AWS_DLM_API Script(Aws::Utils::Json::JsonView jsonValue)
bool GetExecuteOperationOnScriptFailure() const
Definition Script.h:137
bool ExecutionHandlerServiceHasBeenSet() const
Definition Script.h:90
Script & WithExecutionHandler(ExecutionHandlerT &&value)
Definition Script.h:121
bool ExecutionTimeoutHasBeenSet() const
Definition Script.h:159
Script & WithMaximumRetryCount(int value)
Definition Script.h:187
Script & WithExecutionTimeout(int value)
Definition Script.h:164
void SetExecuteOperationOnScriptFailure(bool value)
Definition Script.h:139
Script & WithExecuteOperationOnScriptFailure(bool value)
Definition Script.h:143
int GetMaximumRetryCount() const
Definition Script.h:181
bool ExecutionHandlerHasBeenSet() const
Definition Script.h:114
Script & AddStages(StageValues value)
Definition Script.h:73
int GetExecutionTimeout() const
Definition Script.h:158
bool MaximumRetryCountHasBeenSet() const
Definition Script.h:182
Script & WithStages(StagesT &&value)
Definition Script.h:69
void SetExecutionHandlerService(ExecutionHandlerServiceValues value)
Definition Script.h:91
void SetExecutionHandler(ExecutionHandlerT &&value)
Definition Script.h:116
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue