AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BlueprintRun.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/BlueprintRunState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
30 public:
31 AWS_GLUE_API BlueprintRun() = default;
35
37
40 inline const Aws::String& GetBlueprintName() const { return m_blueprintName; }
41 inline bool BlueprintNameHasBeenSet() const { return m_blueprintNameHasBeenSet; }
42 template <typename BlueprintNameT = Aws::String>
43 void SetBlueprintName(BlueprintNameT&& value) {
44 m_blueprintNameHasBeenSet = true;
45 m_blueprintName = std::forward<BlueprintNameT>(value);
46 }
47 template <typename BlueprintNameT = Aws::String>
48 BlueprintRun& WithBlueprintName(BlueprintNameT&& value) {
49 SetBlueprintName(std::forward<BlueprintNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRunId() const { return m_runId; }
59 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
60 template <typename RunIdT = Aws::String>
61 void SetRunId(RunIdT&& value) {
62 m_runIdHasBeenSet = true;
63 m_runId = std::forward<RunIdT>(value);
64 }
65 template <typename RunIdT = Aws::String>
66 BlueprintRun& WithRunId(RunIdT&& value) {
67 SetRunId(std::forward<RunIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetWorkflowName() const { return m_workflowName; }
78 inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
79 template <typename WorkflowNameT = Aws::String>
80 void SetWorkflowName(WorkflowNameT&& value) {
81 m_workflowNameHasBeenSet = true;
82 m_workflowName = std::forward<WorkflowNameT>(value);
83 }
84 template <typename WorkflowNameT = Aws::String>
85 BlueprintRun& WithWorkflowName(WorkflowNameT&& value) {
86 SetWorkflowName(std::forward<WorkflowNameT>(value));
87 return *this;
88 }
90
92
99 inline BlueprintRunState GetState() const { return m_state; }
100 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
101 inline void SetState(BlueprintRunState value) {
102 m_stateHasBeenSet = true;
103 m_state = value;
104 }
106 SetState(value);
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
116 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
117 template <typename StartedOnT = Aws::Utils::DateTime>
118 void SetStartedOn(StartedOnT&& value) {
119 m_startedOnHasBeenSet = true;
120 m_startedOn = std::forward<StartedOnT>(value);
121 }
122 template <typename StartedOnT = Aws::Utils::DateTime>
123 BlueprintRun& WithStartedOn(StartedOnT&& value) {
124 SetStartedOn(std::forward<StartedOnT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
134 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
135 template <typename CompletedOnT = Aws::Utils::DateTime>
136 void SetCompletedOn(CompletedOnT&& value) {
137 m_completedOnHasBeenSet = true;
138 m_completedOn = std::forward<CompletedOnT>(value);
139 }
140 template <typename CompletedOnT = Aws::Utils::DateTime>
141 BlueprintRun& WithCompletedOn(CompletedOnT&& value) {
142 SetCompletedOn(std::forward<CompletedOnT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
152 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
153 template <typename ErrorMessageT = Aws::String>
154 void SetErrorMessage(ErrorMessageT&& value) {
155 m_errorMessageHasBeenSet = true;
156 m_errorMessage = std::forward<ErrorMessageT>(value);
157 }
158 template <typename ErrorMessageT = Aws::String>
159 BlueprintRun& WithErrorMessage(ErrorMessageT&& value) {
160 SetErrorMessage(std::forward<ErrorMessageT>(value));
161 return *this;
162 }
164
166
172 inline const Aws::String& GetRollbackErrorMessage() const { return m_rollbackErrorMessage; }
173 inline bool RollbackErrorMessageHasBeenSet() const { return m_rollbackErrorMessageHasBeenSet; }
174 template <typename RollbackErrorMessageT = Aws::String>
175 void SetRollbackErrorMessage(RollbackErrorMessageT&& value) {
176 m_rollbackErrorMessageHasBeenSet = true;
177 m_rollbackErrorMessage = std::forward<RollbackErrorMessageT>(value);
178 }
179 template <typename RollbackErrorMessageT = Aws::String>
180 BlueprintRun& WithRollbackErrorMessage(RollbackErrorMessageT&& value) {
181 SetRollbackErrorMessage(std::forward<RollbackErrorMessageT>(value));
182 return *this;
183 }
185
187
192 inline const Aws::String& GetParameters() const { return m_parameters; }
193 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
194 template <typename ParametersT = Aws::String>
195 void SetParameters(ParametersT&& value) {
196 m_parametersHasBeenSet = true;
197 m_parameters = std::forward<ParametersT>(value);
198 }
199 template <typename ParametersT = Aws::String>
200 BlueprintRun& WithParameters(ParametersT&& value) {
201 SetParameters(std::forward<ParametersT>(value));
202 return *this;
203 }
205
207
211 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
212 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
213 template <typename RoleArnT = Aws::String>
214 void SetRoleArn(RoleArnT&& value) {
215 m_roleArnHasBeenSet = true;
216 m_roleArn = std::forward<RoleArnT>(value);
217 }
218 template <typename RoleArnT = Aws::String>
219 BlueprintRun& WithRoleArn(RoleArnT&& value) {
220 SetRoleArn(std::forward<RoleArnT>(value));
221 return *this;
222 }
224 private:
225 Aws::String m_blueprintName;
226
227 Aws::String m_runId;
228
229 Aws::String m_workflowName;
230
232
233 Aws::Utils::DateTime m_startedOn{};
234
235 Aws::Utils::DateTime m_completedOn{};
236
237 Aws::String m_errorMessage;
238
239 Aws::String m_rollbackErrorMessage;
240
241 Aws::String m_parameters;
242
243 Aws::String m_roleArn;
244 bool m_blueprintNameHasBeenSet = false;
245 bool m_runIdHasBeenSet = false;
246 bool m_workflowNameHasBeenSet = false;
247 bool m_stateHasBeenSet = false;
248 bool m_startedOnHasBeenSet = false;
249 bool m_completedOnHasBeenSet = false;
250 bool m_errorMessageHasBeenSet = false;
251 bool m_rollbackErrorMessageHasBeenSet = false;
252 bool m_parametersHasBeenSet = false;
253 bool m_roleArnHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace Glue
258} // namespace Aws
const Aws::String & GetRunId() const
BlueprintRun & WithErrorMessage(ErrorMessageT &&value)
void SetBlueprintName(BlueprintNameT &&value)
AWS_GLUE_API BlueprintRun(Aws::Utils::Json::JsonView jsonValue)
BlueprintRun & WithStartedOn(StartedOnT &&value)
const Aws::String & GetParameters() const
const Aws::String & GetRoleArn() const
void SetRoleArn(RoleArnT &&value)
BlueprintRun & WithBlueprintName(BlueprintNameT &&value)
const Aws::String & GetRollbackErrorMessage() const
void SetParameters(ParametersT &&value)
void SetErrorMessage(ErrorMessageT &&value)
void SetState(BlueprintRunState value)
BlueprintRun & WithRoleArn(RoleArnT &&value)
AWS_GLUE_API BlueprintRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCompletedOn() const
void SetWorkflowName(WorkflowNameT &&value)
BlueprintRun & WithWorkflowName(WorkflowNameT &&value)
BlueprintRun & WithParameters(ParametersT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
BlueprintRunState GetState() const
const Aws::String & GetErrorMessage() const
void SetRollbackErrorMessage(RollbackErrorMessageT &&value)
BlueprintRun & WithRollbackErrorMessage(RollbackErrorMessageT &&value)
BlueprintRun & WithState(BlueprintRunState value)
BlueprintRun & WithRunId(RunIdT &&value)
BlueprintRun & WithCompletedOn(CompletedOnT &&value)
const Aws::Utils::DateTime & GetStartedOn() const
const Aws::String & GetBlueprintName() const
AWS_GLUE_API BlueprintRun()=default
const Aws::String & GetWorkflowName() const
void SetCompletedOn(CompletedOnT &&value)
bool RollbackErrorMessageHasBeenSet() const
void SetStartedOn(StartedOnT &&value)
void SetRunId(RunIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue