AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
Execution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/ExecutionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsAgent {
22namespace Model {
23
30class Execution {
31 public:
32 AWS_DEVOPSAGENT_API Execution() = default;
33 AWS_DEVOPSAGENT_API Execution(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API Execution& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
42 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
43 template <typename AgentSpaceIdT = Aws::String>
44 void SetAgentSpaceId(AgentSpaceIdT&& value) {
45 m_agentSpaceIdHasBeenSet = true;
46 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
47 }
48 template <typename AgentSpaceIdT = Aws::String>
49 Execution& WithAgentSpaceId(AgentSpaceIdT&& value) {
50 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetExecutionId() const { return m_executionId; }
60 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
61 template <typename ExecutionIdT = Aws::String>
62 void SetExecutionId(ExecutionIdT&& value) {
63 m_executionIdHasBeenSet = true;
64 m_executionId = std::forward<ExecutionIdT>(value);
65 }
66 template <typename ExecutionIdT = Aws::String>
67 Execution& WithExecutionId(ExecutionIdT&& value) {
68 SetExecutionId(std::forward<ExecutionIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetParentExecutionId() const { return m_parentExecutionId; }
78 inline bool ParentExecutionIdHasBeenSet() const { return m_parentExecutionIdHasBeenSet; }
79 template <typename ParentExecutionIdT = Aws::String>
80 void SetParentExecutionId(ParentExecutionIdT&& value) {
81 m_parentExecutionIdHasBeenSet = true;
82 m_parentExecutionId = std::forward<ParentExecutionIdT>(value);
83 }
84 template <typename ParentExecutionIdT = Aws::String>
85 Execution& WithParentExecutionId(ParentExecutionIdT&& value) {
86 SetParentExecutionId(std::forward<ParentExecutionIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetAgentSubTask() const { return m_agentSubTask; }
96 inline bool AgentSubTaskHasBeenSet() const { return m_agentSubTaskHasBeenSet; }
97 template <typename AgentSubTaskT = Aws::String>
98 void SetAgentSubTask(AgentSubTaskT&& value) {
99 m_agentSubTaskHasBeenSet = true;
100 m_agentSubTask = std::forward<AgentSubTaskT>(value);
101 }
102 template <typename AgentSubTaskT = Aws::String>
103 Execution& WithAgentSubTask(AgentSubTaskT&& value) {
104 SetAgentSubTask(std::forward<AgentSubTaskT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
114 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
115 template <typename CreatedAtT = Aws::Utils::DateTime>
116 void SetCreatedAt(CreatedAtT&& value) {
117 m_createdAtHasBeenSet = true;
118 m_createdAt = std::forward<CreatedAtT>(value);
119 }
120 template <typename CreatedAtT = Aws::Utils::DateTime>
121 Execution& WithCreatedAt(CreatedAtT&& value) {
122 SetCreatedAt(std::forward<CreatedAtT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
132 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
133 template <typename UpdatedAtT = Aws::Utils::DateTime>
134 void SetUpdatedAt(UpdatedAtT&& value) {
135 m_updatedAtHasBeenSet = true;
136 m_updatedAt = std::forward<UpdatedAtT>(value);
137 }
138 template <typename UpdatedAtT = Aws::Utils::DateTime>
139 Execution& WithUpdatedAt(UpdatedAtT&& value) {
140 SetUpdatedAt(std::forward<UpdatedAtT>(value));
141 return *this;
142 }
144
146
149 inline ExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
150 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
152 m_executionStatusHasBeenSet = true;
153 m_executionStatus = value;
154 }
156 SetExecutionStatus(value);
157 return *this;
158 }
160
162
165 inline const Aws::String& GetAgentType() const { return m_agentType; }
166 inline bool AgentTypeHasBeenSet() const { return m_agentTypeHasBeenSet; }
167 template <typename AgentTypeT = Aws::String>
168 void SetAgentType(AgentTypeT&& value) {
169 m_agentTypeHasBeenSet = true;
170 m_agentType = std::forward<AgentTypeT>(value);
171 }
172 template <typename AgentTypeT = Aws::String>
173 Execution& WithAgentType(AgentTypeT&& value) {
174 SetAgentType(std::forward<AgentTypeT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetUid() const { return m_uid; }
184 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
185 template <typename UidT = Aws::String>
186 void SetUid(UidT&& value) {
187 m_uidHasBeenSet = true;
188 m_uid = std::forward<UidT>(value);
189 }
190 template <typename UidT = Aws::String>
191 Execution& WithUid(UidT&& value) {
192 SetUid(std::forward<UidT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_agentSpaceId;
198
199 Aws::String m_executionId;
200
201 Aws::String m_parentExecutionId;
202
203 Aws::String m_agentSubTask;
204
205 Aws::Utils::DateTime m_createdAt{};
206
207 Aws::Utils::DateTime m_updatedAt{};
208
209 ExecutionStatus m_executionStatus{ExecutionStatus::NOT_SET};
210
211 Aws::String m_agentType;
212
213 Aws::String m_uid;
214 bool m_agentSpaceIdHasBeenSet = false;
215 bool m_executionIdHasBeenSet = false;
216 bool m_parentExecutionIdHasBeenSet = false;
217 bool m_agentSubTaskHasBeenSet = false;
218 bool m_createdAtHasBeenSet = false;
219 bool m_updatedAtHasBeenSet = false;
220 bool m_executionStatusHasBeenSet = false;
221 bool m_agentTypeHasBeenSet = false;
222 bool m_uidHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace DevOpsAgent
227} // namespace Aws
void SetCreatedAt(CreatedAtT &&value)
Definition Execution.h:116
const Aws::String & GetExecutionId() const
Definition Execution.h:59
ExecutionStatus GetExecutionStatus() const
Definition Execution.h:149
void SetParentExecutionId(ParentExecutionIdT &&value)
Definition Execution.h:80
Execution & WithAgentType(AgentTypeT &&value)
Definition Execution.h:173
Execution & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition Execution.h:49
const Aws::String & GetUid() const
Definition Execution.h:183
Execution & WithAgentSubTask(AgentSubTaskT &&value)
Definition Execution.h:103
Execution & WithExecutionId(ExecutionIdT &&value)
Definition Execution.h:67
const Aws::String & GetParentExecutionId() const
Definition Execution.h:77
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Execution.h:131
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Execution.h:113
Execution & WithUid(UidT &&value)
Definition Execution.h:191
void SetExecutionStatus(ExecutionStatus value)
Definition Execution.h:151
const Aws::String & GetAgentSubTask() const
Definition Execution.h:95
AWS_DEVOPSAGENT_API Execution(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API Execution()=default
Execution & WithCreatedAt(CreatedAtT &&value)
Definition Execution.h:121
void SetUpdatedAt(UpdatedAtT &&value)
Definition Execution.h:134
void SetAgentType(AgentTypeT &&value)
Definition Execution.h:168
void SetExecutionId(ExecutionIdT &&value)
Definition Execution.h:62
Execution & WithExecutionStatus(ExecutionStatus value)
Definition Execution.h:155
void SetAgentSubTask(AgentSubTaskT &&value)
Definition Execution.h:98
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition Execution.h:44
Execution & WithUpdatedAt(UpdatedAtT &&value)
Definition Execution.h:139
AWS_DEVOPSAGENT_API Execution & operator=(Aws::Utils::Json::JsonView jsonValue)
Execution & WithParentExecutionId(ParentExecutionIdT &&value)
Definition Execution.h:85
const Aws::String & GetAgentSpaceId() const
Definition Execution.h:41
const Aws::String & GetAgentType() const
Definition Execution.h:165
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue