AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Script.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dlm/model/ExecutionHandlerServiceValues.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dlm/model/StageValues.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DLM
25{
26namespace Model
27{
28
39 class Script
40 {
41 public:
42 AWS_DLM_API Script();
43 AWS_DLM_API Script(Aws::Utils::Json::JsonView jsonValue);
46
47
49
67 inline const Aws::Vector<StageValues>& GetStages() const{ return m_stages; }
68 inline bool StagesHasBeenSet() const { return m_stagesHasBeenSet; }
69 inline void SetStages(const Aws::Vector<StageValues>& value) { m_stagesHasBeenSet = true; m_stages = value; }
70 inline void SetStages(Aws::Vector<StageValues>&& value) { m_stagesHasBeenSet = true; m_stages = std::move(value); }
71 inline Script& WithStages(const Aws::Vector<StageValues>& value) { SetStages(value); return *this;}
72 inline Script& WithStages(Aws::Vector<StageValues>&& value) { SetStages(std::move(value)); return *this;}
73 inline Script& AddStages(const StageValues& value) { m_stagesHasBeenSet = true; m_stages.push_back(value); return *this; }
74 inline Script& AddStages(StageValues&& value) { m_stagesHasBeenSet = true; m_stages.push_back(std::move(value)); return *this; }
76
78
86 inline const ExecutionHandlerServiceValues& GetExecutionHandlerService() const{ return m_executionHandlerService; }
87 inline bool ExecutionHandlerServiceHasBeenSet() const { return m_executionHandlerServiceHasBeenSet; }
88 inline void SetExecutionHandlerService(const ExecutionHandlerServiceValues& value) { m_executionHandlerServiceHasBeenSet = true; m_executionHandlerService = value; }
89 inline void SetExecutionHandlerService(ExecutionHandlerServiceValues&& value) { m_executionHandlerServiceHasBeenSet = true; m_executionHandlerService = std::move(value); }
93
95
106 inline const Aws::String& GetExecutionHandler() const{ return m_executionHandler; }
107 inline bool ExecutionHandlerHasBeenSet() const { return m_executionHandlerHasBeenSet; }
108 inline void SetExecutionHandler(const Aws::String& value) { m_executionHandlerHasBeenSet = true; m_executionHandler = value; }
109 inline void SetExecutionHandler(Aws::String&& value) { m_executionHandlerHasBeenSet = true; m_executionHandler = std::move(value); }
110 inline void SetExecutionHandler(const char* value) { m_executionHandlerHasBeenSet = true; m_executionHandler.assign(value); }
111 inline Script& WithExecutionHandler(const Aws::String& value) { SetExecutionHandler(value); return *this;}
112 inline Script& WithExecutionHandler(Aws::String&& value) { SetExecutionHandler(std::move(value)); return *this;}
113 inline Script& WithExecutionHandler(const char* value) { SetExecutionHandler(value); return *this;}
115
117
126 inline bool GetExecuteOperationOnScriptFailure() const{ return m_executeOperationOnScriptFailure; }
127 inline bool ExecuteOperationOnScriptFailureHasBeenSet() const { return m_executeOperationOnScriptFailureHasBeenSet; }
128 inline void SetExecuteOperationOnScriptFailure(bool value) { m_executeOperationOnScriptFailureHasBeenSet = true; m_executeOperationOnScriptFailure = value; }
131
133
141 inline int GetExecutionTimeout() const{ return m_executionTimeout; }
142 inline bool ExecutionTimeoutHasBeenSet() const { return m_executionTimeoutHasBeenSet; }
143 inline void SetExecutionTimeout(int value) { m_executionTimeoutHasBeenSet = true; m_executionTimeout = value; }
144 inline Script& WithExecutionTimeout(int value) { SetExecutionTimeout(value); return *this;}
146
148
158 inline int GetMaximumRetryCount() const{ return m_maximumRetryCount; }
159 inline bool MaximumRetryCountHasBeenSet() const { return m_maximumRetryCountHasBeenSet; }
160 inline void SetMaximumRetryCount(int value) { m_maximumRetryCountHasBeenSet = true; m_maximumRetryCount = value; }
161 inline Script& WithMaximumRetryCount(int value) { SetMaximumRetryCount(value); return *this;}
163 private:
164
166 bool m_stagesHasBeenSet = false;
167
168 ExecutionHandlerServiceValues m_executionHandlerService;
169 bool m_executionHandlerServiceHasBeenSet = false;
170
171 Aws::String m_executionHandler;
172 bool m_executionHandlerHasBeenSet = false;
173
174 bool m_executeOperationOnScriptFailure;
175 bool m_executeOperationOnScriptFailureHasBeenSet = false;
176
177 int m_executionTimeout;
178 bool m_executionTimeoutHasBeenSet = false;
179
180 int m_maximumRetryCount;
181 bool m_maximumRetryCountHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace DLM
186} // namespace Aws
void SetExecutionTimeout(int value)
Definition Script.h:143
const Aws::String & GetExecutionHandler() const
Definition Script.h:106
Script & WithStages(const Aws::Vector< StageValues > &value)
Definition Script.h:71
void SetExecutionHandler(Aws::String &&value)
Definition Script.h:109
bool ExecuteOperationOnScriptFailureHasBeenSet() const
Definition Script.h:127
const Aws::Vector< StageValues > & GetStages() const
Definition Script.h:67
void SetExecutionHandlerService(const ExecutionHandlerServiceValues &value)
Definition Script.h:88
const ExecutionHandlerServiceValues & GetExecutionHandlerService() const
Definition Script.h:86
bool StagesHasBeenSet() const
Definition Script.h:68
void SetExecutionHandlerService(ExecutionHandlerServiceValues &&value)
Definition Script.h:89
Script & AddStages(const StageValues &value)
Definition Script.h:73
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMaximumRetryCount(int value)
Definition Script.h:160
Script & WithExecutionHandler(const char *value)
Definition Script.h:113
AWS_DLM_API Script & operator=(Aws::Utils::Json::JsonView jsonValue)
Script & WithExecutionHandlerService(const ExecutionHandlerServiceValues &value)
Definition Script.h:90
Script & WithStages(Aws::Vector< StageValues > &&value)
Definition Script.h:72
Script & AddStages(StageValues &&value)
Definition Script.h:74
AWS_DLM_API Script(Aws::Utils::Json::JsonView jsonValue)
Script & WithExecutionHandlerService(ExecutionHandlerServiceValues &&value)
Definition Script.h:91
bool GetExecuteOperationOnScriptFailure() const
Definition Script.h:126
bool ExecutionHandlerServiceHasBeenSet() const
Definition Script.h:87
void SetStages(const Aws::Vector< StageValues > &value)
Definition Script.h:69
Script & WithExecutionHandler(const Aws::String &value)
Definition Script.h:111
bool ExecutionTimeoutHasBeenSet() const
Definition Script.h:142
void SetExecutionHandler(const char *value)
Definition Script.h:110
Script & WithMaximumRetryCount(int value)
Definition Script.h:161
Script & WithExecutionTimeout(int value)
Definition Script.h:144
void SetExecuteOperationOnScriptFailure(bool value)
Definition Script.h:128
Script & WithExecuteOperationOnScriptFailure(bool value)
Definition Script.h:129
void SetStages(Aws::Vector< StageValues > &&value)
Definition Script.h:70
int GetMaximumRetryCount() const
Definition Script.h:158
bool ExecutionHandlerHasBeenSet() const
Definition Script.h:107
int GetExecutionTimeout() const
Definition Script.h:141
bool MaximumRetryCountHasBeenSet() const
Definition Script.h:159
Script & WithExecutionHandler(Aws::String &&value)
Definition Script.h:112
void SetExecutionHandler(const Aws::String &value)
Definition Script.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue