AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CommandExecution.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codebuild/model/CommandType.h>
11#include <aws/codebuild/model/LogsLocation.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 CodeBuild
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CODEBUILD_API CommandExecution() = default;
38 AWS_CODEBUILD_API CommandExecution(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 CommandExecution& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_sandboxIdHasBeenSet = true; m_sandboxId = std::forward<SandboxIdT>(value); }
63 template<typename SandboxIdT = Aws::String>
64 CommandExecution& WithSandboxId(SandboxIdT&& value) { SetSandboxId(std::forward<SandboxIdT>(value)); return *this;}
66
68
72 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
73 inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
74 template<typename SubmitTimeT = Aws::Utils::DateTime>
75 void SetSubmitTime(SubmitTimeT&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::forward<SubmitTimeT>(value); }
76 template<typename SubmitTimeT = Aws::Utils::DateTime>
77 CommandExecution& WithSubmitTime(SubmitTimeT&& value) { SetSubmitTime(std::forward<SubmitTimeT>(value)); return *this;}
79
81
85 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
86 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
87 template<typename StartTimeT = Aws::Utils::DateTime>
88 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
89 template<typename StartTimeT = Aws::Utils::DateTime>
90 CommandExecution& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
98 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
99 template<typename EndTimeT = Aws::Utils::DateTime>
100 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
101 template<typename EndTimeT = Aws::Utils::DateTime>
102 CommandExecution& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
104
106
109 inline const Aws::String& GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 template<typename StatusT = Aws::String>
112 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
113 template<typename StatusT = Aws::String>
114 CommandExecution& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
116
118
121 inline const Aws::String& GetCommand() const { return m_command; }
122 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
123 template<typename CommandT = Aws::String>
124 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
125 template<typename CommandT = Aws::String>
126 CommandExecution& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
128
130
133 inline CommandType GetType() const { return m_type; }
134 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
135 inline void SetType(CommandType value) { m_typeHasBeenSet = true; m_type = value; }
136 inline CommandExecution& WithType(CommandType value) { SetType(value); return *this;}
138
140
143 inline const Aws::String& GetExitCode() const { return m_exitCode; }
144 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
145 template<typename ExitCodeT = Aws::String>
146 void SetExitCode(ExitCodeT&& value) { m_exitCodeHasBeenSet = true; m_exitCode = std::forward<ExitCodeT>(value); }
147 template<typename ExitCodeT = Aws::String>
148 CommandExecution& WithExitCode(ExitCodeT&& value) { SetExitCode(std::forward<ExitCodeT>(value)); return *this;}
150
152
155 inline const Aws::String& GetStandardOutputContent() const { return m_standardOutputContent; }
156 inline bool StandardOutputContentHasBeenSet() const { return m_standardOutputContentHasBeenSet; }
157 template<typename StandardOutputContentT = Aws::String>
158 void SetStandardOutputContent(StandardOutputContentT&& value) { m_standardOutputContentHasBeenSet = true; m_standardOutputContent = std::forward<StandardOutputContentT>(value); }
159 template<typename StandardOutputContentT = Aws::String>
160 CommandExecution& WithStandardOutputContent(StandardOutputContentT&& value) { SetStandardOutputContent(std::forward<StandardOutputContentT>(value)); return *this;}
162
164
167 inline const Aws::String& GetStandardErrContent() const { return m_standardErrContent; }
168 inline bool StandardErrContentHasBeenSet() const { return m_standardErrContentHasBeenSet; }
169 template<typename StandardErrContentT = Aws::String>
170 void SetStandardErrContent(StandardErrContentT&& value) { m_standardErrContentHasBeenSet = true; m_standardErrContent = std::forward<StandardErrContentT>(value); }
171 template<typename StandardErrContentT = Aws::String>
172 CommandExecution& WithStandardErrContent(StandardErrContentT&& value) { SetStandardErrContent(std::forward<StandardErrContentT>(value)); return *this;}
174
176
177 inline const LogsLocation& GetLogs() const { return m_logs; }
178 inline bool LogsHasBeenSet() const { return m_logsHasBeenSet; }
179 template<typename LogsT = LogsLocation>
180 void SetLogs(LogsT&& value) { m_logsHasBeenSet = true; m_logs = std::forward<LogsT>(value); }
181 template<typename LogsT = LogsLocation>
182 CommandExecution& WithLogs(LogsT&& value) { SetLogs(std::forward<LogsT>(value)); return *this;}
184
186
189 inline const Aws::String& GetSandboxArn() const { return m_sandboxArn; }
190 inline bool SandboxArnHasBeenSet() const { return m_sandboxArnHasBeenSet; }
191 template<typename SandboxArnT = Aws::String>
192 void SetSandboxArn(SandboxArnT&& value) { m_sandboxArnHasBeenSet = true; m_sandboxArn = std::forward<SandboxArnT>(value); }
193 template<typename SandboxArnT = Aws::String>
194 CommandExecution& WithSandboxArn(SandboxArnT&& value) { SetSandboxArn(std::forward<SandboxArnT>(value)); return *this;}
196 private:
197
198 Aws::String m_id;
199 bool m_idHasBeenSet = false;
200
201 Aws::String m_sandboxId;
202 bool m_sandboxIdHasBeenSet = false;
203
204 Aws::Utils::DateTime m_submitTime{};
205 bool m_submitTimeHasBeenSet = false;
206
207 Aws::Utils::DateTime m_startTime{};
208 bool m_startTimeHasBeenSet = false;
209
210 Aws::Utils::DateTime m_endTime{};
211 bool m_endTimeHasBeenSet = false;
212
213 Aws::String m_status;
214 bool m_statusHasBeenSet = false;
215
216 Aws::String m_command;
217 bool m_commandHasBeenSet = false;
218
220 bool m_typeHasBeenSet = false;
221
222 Aws::String m_exitCode;
223 bool m_exitCodeHasBeenSet = false;
224
225 Aws::String m_standardOutputContent;
226 bool m_standardOutputContentHasBeenSet = false;
227
228 Aws::String m_standardErrContent;
229 bool m_standardErrContentHasBeenSet = false;
230
231 LogsLocation m_logs;
232 bool m_logsHasBeenSet = false;
233
234 Aws::String m_sandboxArn;
235 bool m_sandboxArnHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace CodeBuild
240} // 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