AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CommandExecution.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/CommandType.h>
9#include <aws/codebuild/model/LogsLocation.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeBuild {
23namespace Model {
24
31 public:
32 AWS_CODEBUILD_API CommandExecution() = default;
33 AWS_CODEBUILD_API CommandExecution(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 CommandExecution& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSandboxId() const { return m_sandboxId; }
60 inline bool SandboxIdHasBeenSet() const { return m_sandboxIdHasBeenSet; }
61 template <typename SandboxIdT = Aws::String>
62 void SetSandboxId(SandboxIdT&& value) {
63 m_sandboxIdHasBeenSet = true;
64 m_sandboxId = std::forward<SandboxIdT>(value);
65 }
66 template <typename SandboxIdT = Aws::String>
67 CommandExecution& WithSandboxId(SandboxIdT&& value) {
68 SetSandboxId(std::forward<SandboxIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
79 inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
80 template <typename SubmitTimeT = Aws::Utils::DateTime>
81 void SetSubmitTime(SubmitTimeT&& value) {
82 m_submitTimeHasBeenSet = true;
83 m_submitTime = std::forward<SubmitTimeT>(value);
84 }
85 template <typename SubmitTimeT = Aws::Utils::DateTime>
86 CommandExecution& WithSubmitTime(SubmitTimeT&& value) {
87 SetSubmitTime(std::forward<SubmitTimeT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
98 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
99 template <typename StartTimeT = Aws::Utils::DateTime>
100 void SetStartTime(StartTimeT&& value) {
101 m_startTimeHasBeenSet = true;
102 m_startTime = std::forward<StartTimeT>(value);
103 }
104 template <typename StartTimeT = Aws::Utils::DateTime>
105 CommandExecution& WithStartTime(StartTimeT&& value) {
106 SetStartTime(std::forward<StartTimeT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
116 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
117 template <typename EndTimeT = Aws::Utils::DateTime>
118 void SetEndTime(EndTimeT&& value) {
119 m_endTimeHasBeenSet = true;
120 m_endTime = std::forward<EndTimeT>(value);
121 }
122 template <typename EndTimeT = Aws::Utils::DateTime>
123 CommandExecution& WithEndTime(EndTimeT&& value) {
124 SetEndTime(std::forward<EndTimeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetStatus() const { return m_status; }
134 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 template <typename StatusT = Aws::String>
136 void SetStatus(StatusT&& value) {
137 m_statusHasBeenSet = true;
138 m_status = std::forward<StatusT>(value);
139 }
140 template <typename StatusT = Aws::String>
141 CommandExecution& WithStatus(StatusT&& value) {
142 SetStatus(std::forward<StatusT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetCommand() const { return m_command; }
152 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
153 template <typename CommandT = Aws::String>
154 void SetCommand(CommandT&& value) {
155 m_commandHasBeenSet = true;
156 m_command = std::forward<CommandT>(value);
157 }
158 template <typename CommandT = Aws::String>
159 CommandExecution& WithCommand(CommandT&& value) {
160 SetCommand(std::forward<CommandT>(value));
161 return *this;
162 }
164
166
169 inline CommandType GetType() const { return m_type; }
170 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
171 inline void SetType(CommandType value) {
172 m_typeHasBeenSet = true;
173 m_type = value;
174 }
176 SetType(value);
177 return *this;
178 }
180
182
185 inline const Aws::String& GetExitCode() const { return m_exitCode; }
186 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
187 template <typename ExitCodeT = Aws::String>
188 void SetExitCode(ExitCodeT&& value) {
189 m_exitCodeHasBeenSet = true;
190 m_exitCode = std::forward<ExitCodeT>(value);
191 }
192 template <typename ExitCodeT = Aws::String>
193 CommandExecution& WithExitCode(ExitCodeT&& value) {
194 SetExitCode(std::forward<ExitCodeT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetStandardOutputContent() const { return m_standardOutputContent; }
204 inline bool StandardOutputContentHasBeenSet() const { return m_standardOutputContentHasBeenSet; }
205 template <typename StandardOutputContentT = Aws::String>
206 void SetStandardOutputContent(StandardOutputContentT&& value) {
207 m_standardOutputContentHasBeenSet = true;
208 m_standardOutputContent = std::forward<StandardOutputContentT>(value);
209 }
210 template <typename StandardOutputContentT = Aws::String>
211 CommandExecution& WithStandardOutputContent(StandardOutputContentT&& value) {
212 SetStandardOutputContent(std::forward<StandardOutputContentT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetStandardErrContent() const { return m_standardErrContent; }
222 inline bool StandardErrContentHasBeenSet() const { return m_standardErrContentHasBeenSet; }
223 template <typename StandardErrContentT = Aws::String>
224 void SetStandardErrContent(StandardErrContentT&& value) {
225 m_standardErrContentHasBeenSet = true;
226 m_standardErrContent = std::forward<StandardErrContentT>(value);
227 }
228 template <typename StandardErrContentT = Aws::String>
229 CommandExecution& WithStandardErrContent(StandardErrContentT&& value) {
230 SetStandardErrContent(std::forward<StandardErrContentT>(value));
231 return *this;
232 }
234
236
237 inline const LogsLocation& GetLogs() const { return m_logs; }
238 inline bool LogsHasBeenSet() const { return m_logsHasBeenSet; }
239 template <typename LogsT = LogsLocation>
240 void SetLogs(LogsT&& value) {
241 m_logsHasBeenSet = true;
242 m_logs = std::forward<LogsT>(value);
243 }
244 template <typename LogsT = LogsLocation>
245 CommandExecution& WithLogs(LogsT&& value) {
246 SetLogs(std::forward<LogsT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetSandboxArn() const { return m_sandboxArn; }
256 inline bool SandboxArnHasBeenSet() const { return m_sandboxArnHasBeenSet; }
257 template <typename SandboxArnT = Aws::String>
258 void SetSandboxArn(SandboxArnT&& value) {
259 m_sandboxArnHasBeenSet = true;
260 m_sandboxArn = std::forward<SandboxArnT>(value);
261 }
262 template <typename SandboxArnT = Aws::String>
263 CommandExecution& WithSandboxArn(SandboxArnT&& value) {
264 SetSandboxArn(std::forward<SandboxArnT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_id;
270
271 Aws::String m_sandboxId;
272
273 Aws::Utils::DateTime m_submitTime{};
274
275 Aws::Utils::DateTime m_startTime{};
276
277 Aws::Utils::DateTime m_endTime{};
278
279 Aws::String m_status;
280
281 Aws::String m_command;
282
284
285 Aws::String m_exitCode;
286
287 Aws::String m_standardOutputContent;
288
289 Aws::String m_standardErrContent;
290
291 LogsLocation m_logs;
292
293 Aws::String m_sandboxArn;
294 bool m_idHasBeenSet = false;
295 bool m_sandboxIdHasBeenSet = false;
296 bool m_submitTimeHasBeenSet = false;
297 bool m_startTimeHasBeenSet = false;
298 bool m_endTimeHasBeenSet = false;
299 bool m_statusHasBeenSet = false;
300 bool m_commandHasBeenSet = false;
301 bool m_typeHasBeenSet = false;
302 bool m_exitCodeHasBeenSet = false;
303 bool m_standardOutputContentHasBeenSet = false;
304 bool m_standardErrContentHasBeenSet = false;
305 bool m_logsHasBeenSet = false;
306 bool m_sandboxArnHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace CodeBuild
311} // namespace Aws
CommandExecution & WithStandardOutputContent(StandardOutputContentT &&value)
CommandExecution & WithStandardErrContent(StandardErrContentT &&value)
const Aws::Utils::DateTime & GetSubmitTime() const
void SetStandardErrContent(StandardErrContentT &&value)
const Aws::String & GetSandboxArn() const
const Aws::Utils::DateTime & GetEndTime() const
CommandExecution & WithType(CommandType value)
CommandExecution & WithStatus(StatusT &&value)
CommandExecution & WithEndTime(EndTimeT &&value)
const Aws::String & GetCommand() const
const Aws::String & GetSandboxId() const
CommandExecution & WithSubmitTime(SubmitTimeT &&value)
CommandExecution & WithStartTime(StartTimeT &&value)
const Aws::String & GetExitCode() const
CommandExecution & WithExitCode(ExitCodeT &&value)
const Aws::String & GetStandardErrContent() const
const LogsLocation & GetLogs() const
const Aws::String & GetStatus() const
AWS_CODEBUILD_API CommandExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubmitTime(SubmitTimeT &&value)
const Aws::String & GetStandardOutputContent() const
AWS_CODEBUILD_API CommandExecution(Aws::Utils::Json::JsonView jsonValue)
void SetStandardOutputContent(StandardOutputContentT &&value)
CommandExecution & WithLogs(LogsT &&value)
CommandExecution & WithSandboxArn(SandboxArnT &&value)
CommandExecution & WithId(IdT &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStartTime() const
CommandExecution & WithSandboxId(SandboxIdT &&value)
AWS_CODEBUILD_API CommandExecution()=default
CommandExecution & WithCommand(CommandT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue