AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Sandbox.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/LogsConfig.h>
9#include <aws/codebuild/model/ProjectEnvironment.h>
10#include <aws/codebuild/model/ProjectFileSystemLocation.h>
11#include <aws/codebuild/model/ProjectSource.h>
12#include <aws/codebuild/model/ProjectSourceVersion.h>
13#include <aws/codebuild/model/SandboxSession.h>
14#include <aws/codebuild/model/VpcConfig.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace CodeBuild {
29namespace Model {
30
36class Sandbox {
37 public:
38 AWS_CODEBUILD_API Sandbox() = default;
39 AWS_CODEBUILD_API Sandbox(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEBUILD_API Sandbox& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
55 Sandbox& WithId(IdT&& value) {
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetArn() const { return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 template <typename ArnT = Aws::String>
68 void SetArn(ArnT&& value) {
69 m_arnHasBeenSet = true;
70 m_arn = std::forward<ArnT>(value);
71 }
72 template <typename ArnT = Aws::String>
73 Sandbox& WithArn(ArnT&& value) {
74 SetArn(std::forward<ArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetProjectName() const { return m_projectName; }
84 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
85 template <typename ProjectNameT = Aws::String>
86 void SetProjectName(ProjectNameT&& value) {
87 m_projectNameHasBeenSet = true;
88 m_projectName = std::forward<ProjectNameT>(value);
89 }
90 template <typename ProjectNameT = Aws::String>
91 Sandbox& WithProjectName(ProjectNameT&& value) {
92 SetProjectName(std::forward<ProjectNameT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Utils::DateTime& GetRequestTime() const { return m_requestTime; }
103 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
104 template <typename RequestTimeT = Aws::Utils::DateTime>
105 void SetRequestTime(RequestTimeT&& value) {
106 m_requestTimeHasBeenSet = true;
107 m_requestTime = std::forward<RequestTimeT>(value);
108 }
109 template <typename RequestTimeT = Aws::Utils::DateTime>
110 Sandbox& WithRequestTime(RequestTimeT&& value) {
111 SetRequestTime(std::forward<RequestTimeT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
121 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
122 template <typename StartTimeT = Aws::Utils::DateTime>
123 void SetStartTime(StartTimeT&& value) {
124 m_startTimeHasBeenSet = true;
125 m_startTime = std::forward<StartTimeT>(value);
126 }
127 template <typename StartTimeT = Aws::Utils::DateTime>
128 Sandbox& WithStartTime(StartTimeT&& value) {
129 SetStartTime(std::forward<StartTimeT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
139 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
140 template <typename EndTimeT = Aws::Utils::DateTime>
141 void SetEndTime(EndTimeT&& value) {
142 m_endTimeHasBeenSet = true;
143 m_endTime = std::forward<EndTimeT>(value);
144 }
145 template <typename EndTimeT = Aws::Utils::DateTime>
146 Sandbox& WithEndTime(EndTimeT&& value) {
147 SetEndTime(std::forward<EndTimeT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetStatus() const { return m_status; }
157 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
158 template <typename StatusT = Aws::String>
159 void SetStatus(StatusT&& value) {
160 m_statusHasBeenSet = true;
161 m_status = std::forward<StatusT>(value);
162 }
163 template <typename StatusT = Aws::String>
164 Sandbox& WithStatus(StatusT&& value) {
165 SetStatus(std::forward<StatusT>(value));
166 return *this;
167 }
169
171
172 inline const ProjectSource& GetSource() const { return m_source; }
173 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
174 template <typename SourceT = ProjectSource>
175 void SetSource(SourceT&& value) {
176 m_sourceHasBeenSet = true;
177 m_source = std::forward<SourceT>(value);
178 }
179 template <typename SourceT = ProjectSource>
180 Sandbox& WithSource(SourceT&& value) {
181 SetSource(std::forward<SourceT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
191 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
192 template <typename SourceVersionT = Aws::String>
193 void SetSourceVersion(SourceVersionT&& value) {
194 m_sourceVersionHasBeenSet = true;
195 m_sourceVersion = std::forward<SourceVersionT>(value);
196 }
197 template <typename SourceVersionT = Aws::String>
198 Sandbox& WithSourceVersion(SourceVersionT&& value) {
199 SetSourceVersion(std::forward<SourceVersionT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Vector<ProjectSource>& GetSecondarySources() const { return m_secondarySources; }
209 inline bool SecondarySourcesHasBeenSet() const { return m_secondarySourcesHasBeenSet; }
210 template <typename SecondarySourcesT = Aws::Vector<ProjectSource>>
211 void SetSecondarySources(SecondarySourcesT&& value) {
212 m_secondarySourcesHasBeenSet = true;
213 m_secondarySources = std::forward<SecondarySourcesT>(value);
214 }
215 template <typename SecondarySourcesT = Aws::Vector<ProjectSource>>
216 Sandbox& WithSecondarySources(SecondarySourcesT&& value) {
217 SetSecondarySources(std::forward<SecondarySourcesT>(value));
218 return *this;
219 }
220 template <typename SecondarySourcesT = ProjectSource>
221 Sandbox& AddSecondarySources(SecondarySourcesT&& value) {
222 m_secondarySourcesHasBeenSet = true;
223 m_secondarySources.emplace_back(std::forward<SecondarySourcesT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Vector<ProjectSourceVersion>& GetSecondarySourceVersions() const { return m_secondarySourceVersions; }
233 inline bool SecondarySourceVersionsHasBeenSet() const { return m_secondarySourceVersionsHasBeenSet; }
234 template <typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
235 void SetSecondarySourceVersions(SecondarySourceVersionsT&& value) {
236 m_secondarySourceVersionsHasBeenSet = true;
237 m_secondarySourceVersions = std::forward<SecondarySourceVersionsT>(value);
238 }
239 template <typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
240 Sandbox& WithSecondarySourceVersions(SecondarySourceVersionsT&& value) {
241 SetSecondarySourceVersions(std::forward<SecondarySourceVersionsT>(value));
242 return *this;
243 }
244 template <typename SecondarySourceVersionsT = ProjectSourceVersion>
245 Sandbox& AddSecondarySourceVersions(SecondarySourceVersionsT&& value) {
246 m_secondarySourceVersionsHasBeenSet = true;
247 m_secondarySourceVersions.emplace_back(std::forward<SecondarySourceVersionsT>(value));
248 return *this;
249 }
251
253
254 inline const ProjectEnvironment& GetEnvironment() const { return m_environment; }
255 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
256 template <typename EnvironmentT = ProjectEnvironment>
257 void SetEnvironment(EnvironmentT&& value) {
258 m_environmentHasBeenSet = true;
259 m_environment = std::forward<EnvironmentT>(value);
260 }
261 template <typename EnvironmentT = ProjectEnvironment>
262 Sandbox& WithEnvironment(EnvironmentT&& value) {
263 SetEnvironment(std::forward<EnvironmentT>(value));
264 return *this;
265 }
267
269
276 inline const Aws::Vector<ProjectFileSystemLocation>& GetFileSystemLocations() const { return m_fileSystemLocations; }
277 inline bool FileSystemLocationsHasBeenSet() const { return m_fileSystemLocationsHasBeenSet; }
278 template <typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
279 void SetFileSystemLocations(FileSystemLocationsT&& value) {
280 m_fileSystemLocationsHasBeenSet = true;
281 m_fileSystemLocations = std::forward<FileSystemLocationsT>(value);
282 }
283 template <typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
284 Sandbox& WithFileSystemLocations(FileSystemLocationsT&& value) {
285 SetFileSystemLocations(std::forward<FileSystemLocationsT>(value));
286 return *this;
287 }
288 template <typename FileSystemLocationsT = ProjectFileSystemLocation>
289 Sandbox& AddFileSystemLocations(FileSystemLocationsT&& value) {
290 m_fileSystemLocationsHasBeenSet = true;
291 m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value));
292 return *this;
293 }
295
297
301 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
302 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
303 inline void SetTimeoutInMinutes(int value) {
304 m_timeoutInMinutesHasBeenSet = true;
305 m_timeoutInMinutes = value;
306 }
307 inline Sandbox& WithTimeoutInMinutes(int value) {
308 SetTimeoutInMinutes(value);
309 return *this;
310 }
312
314
318 inline int GetQueuedTimeoutInMinutes() const { return m_queuedTimeoutInMinutes; }
319 inline bool QueuedTimeoutInMinutesHasBeenSet() const { return m_queuedTimeoutInMinutesHasBeenSet; }
320 inline void SetQueuedTimeoutInMinutes(int value) {
321 m_queuedTimeoutInMinutesHasBeenSet = true;
322 m_queuedTimeoutInMinutes = value;
323 }
326 return *this;
327 }
329
331
332 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
333 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
334 template <typename VpcConfigT = VpcConfig>
335 void SetVpcConfig(VpcConfigT&& value) {
336 m_vpcConfigHasBeenSet = true;
337 m_vpcConfig = std::forward<VpcConfigT>(value);
338 }
339 template <typename VpcConfigT = VpcConfig>
340 Sandbox& WithVpcConfig(VpcConfigT&& value) {
341 SetVpcConfig(std::forward<VpcConfigT>(value));
342 return *this;
343 }
345
347
348 inline const LogsConfig& GetLogConfig() const { return m_logConfig; }
349 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
350 template <typename LogConfigT = LogsConfig>
351 void SetLogConfig(LogConfigT&& value) {
352 m_logConfigHasBeenSet = true;
353 m_logConfig = std::forward<LogConfigT>(value);
354 }
355 template <typename LogConfigT = LogsConfig>
356 Sandbox& WithLogConfig(LogConfigT&& value) {
357 SetLogConfig(std::forward<LogConfigT>(value));
358 return *this;
359 }
361
363
367 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
368 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
369 template <typename EncryptionKeyT = Aws::String>
370 void SetEncryptionKey(EncryptionKeyT&& value) {
371 m_encryptionKeyHasBeenSet = true;
372 m_encryptionKey = std::forward<EncryptionKeyT>(value);
373 }
374 template <typename EncryptionKeyT = Aws::String>
375 Sandbox& WithEncryptionKey(EncryptionKeyT&& value) {
376 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
377 return *this;
378 }
380
382
385 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
386 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
387 template <typename ServiceRoleT = Aws::String>
388 void SetServiceRole(ServiceRoleT&& value) {
389 m_serviceRoleHasBeenSet = true;
390 m_serviceRole = std::forward<ServiceRoleT>(value);
391 }
392 template <typename ServiceRoleT = Aws::String>
393 Sandbox& WithServiceRole(ServiceRoleT&& value) {
394 SetServiceRole(std::forward<ServiceRoleT>(value));
395 return *this;
396 }
398
400
403 inline const SandboxSession& GetCurrentSession() const { return m_currentSession; }
404 inline bool CurrentSessionHasBeenSet() const { return m_currentSessionHasBeenSet; }
405 template <typename CurrentSessionT = SandboxSession>
406 void SetCurrentSession(CurrentSessionT&& value) {
407 m_currentSessionHasBeenSet = true;
408 m_currentSession = std::forward<CurrentSessionT>(value);
409 }
410 template <typename CurrentSessionT = SandboxSession>
411 Sandbox& WithCurrentSession(CurrentSessionT&& value) {
412 SetCurrentSession(std::forward<CurrentSessionT>(value));
413 return *this;
414 }
416 private:
417 Aws::String m_id;
418
419 Aws::String m_arn;
420
421 Aws::String m_projectName;
422
423 Aws::Utils::DateTime m_requestTime{};
424
425 Aws::Utils::DateTime m_startTime{};
426
427 Aws::Utils::DateTime m_endTime{};
428
429 Aws::String m_status;
430
431 ProjectSource m_source;
432
433 Aws::String m_sourceVersion;
434
435 Aws::Vector<ProjectSource> m_secondarySources;
436
437 Aws::Vector<ProjectSourceVersion> m_secondarySourceVersions;
438
439 ProjectEnvironment m_environment;
440
441 Aws::Vector<ProjectFileSystemLocation> m_fileSystemLocations;
442
443 int m_timeoutInMinutes{0};
444
445 int m_queuedTimeoutInMinutes{0};
446
447 VpcConfig m_vpcConfig;
448
449 LogsConfig m_logConfig;
450
451 Aws::String m_encryptionKey;
452
453 Aws::String m_serviceRole;
454
455 SandboxSession m_currentSession;
456 bool m_idHasBeenSet = false;
457 bool m_arnHasBeenSet = false;
458 bool m_projectNameHasBeenSet = false;
459 bool m_requestTimeHasBeenSet = false;
460 bool m_startTimeHasBeenSet = false;
461 bool m_endTimeHasBeenSet = false;
462 bool m_statusHasBeenSet = false;
463 bool m_sourceHasBeenSet = false;
464 bool m_sourceVersionHasBeenSet = false;
465 bool m_secondarySourcesHasBeenSet = false;
466 bool m_secondarySourceVersionsHasBeenSet = false;
467 bool m_environmentHasBeenSet = false;
468 bool m_fileSystemLocationsHasBeenSet = false;
469 bool m_timeoutInMinutesHasBeenSet = false;
470 bool m_queuedTimeoutInMinutesHasBeenSet = false;
471 bool m_vpcConfigHasBeenSet = false;
472 bool m_logConfigHasBeenSet = false;
473 bool m_encryptionKeyHasBeenSet = false;
474 bool m_serviceRoleHasBeenSet = false;
475 bool m_currentSessionHasBeenSet = false;
476};
477
478} // namespace Model
479} // namespace CodeBuild
480} // namespace Aws
const VpcConfig & GetVpcConfig() const
Definition Sandbox.h:332
bool FileSystemLocationsHasBeenSet() const
Definition Sandbox.h:277
Sandbox & WithLogConfig(LogConfigT &&value)
Definition Sandbox.h:356
void SetSource(SourceT &&value)
Definition Sandbox.h:175
const Aws::Utils::DateTime & GetStartTime() const
Definition Sandbox.h:120
Sandbox & WithId(IdT &&value)
Definition Sandbox.h:55
void SetQueuedTimeoutInMinutes(int value)
Definition Sandbox.h:320
Sandbox & WithTimeoutInMinutes(int value)
Definition Sandbox.h:307
void SetProjectName(ProjectNameT &&value)
Definition Sandbox.h:86
bool EnvironmentHasBeenSet() const
Definition Sandbox.h:255
void SetArn(ArnT &&value)
Definition Sandbox.h:68
Sandbox & WithSource(SourceT &&value)
Definition Sandbox.h:180
int GetQueuedTimeoutInMinutes() const
Definition Sandbox.h:318
Sandbox & WithEnvironment(EnvironmentT &&value)
Definition Sandbox.h:262
void SetEndTime(EndTimeT &&value)
Definition Sandbox.h:141
bool SourceVersionHasBeenSet() const
Definition Sandbox.h:191
Sandbox & WithProjectName(ProjectNameT &&value)
Definition Sandbox.h:91
const Aws::String & GetEncryptionKey() const
Definition Sandbox.h:367
const Aws::String & GetStatus() const
Definition Sandbox.h:156
const Aws::String & GetId() const
Definition Sandbox.h:47
const Aws::Vector< ProjectSource > & GetSecondarySources() const
Definition Sandbox.h:208
bool StartTimeHasBeenSet() const
Definition Sandbox.h:121
Sandbox & WithFileSystemLocations(FileSystemLocationsT &&value)
Definition Sandbox.h:284
Sandbox & AddFileSystemLocations(FileSystemLocationsT &&value)
Definition Sandbox.h:289
void SetStatus(StatusT &&value)
Definition Sandbox.h:159
bool RequestTimeHasBeenSet() const
Definition Sandbox.h:103
void SetTimeoutInMinutes(int value)
Definition Sandbox.h:303
Sandbox & WithStatus(StatusT &&value)
Definition Sandbox.h:164
Sandbox & AddSecondarySources(SecondarySourcesT &&value)
Definition Sandbox.h:221
bool SecondarySourceVersionsHasBeenSet() const
Definition Sandbox.h:233
void SetSourceVersion(SourceVersionT &&value)
Definition Sandbox.h:193
AWS_CODEBUILD_API Sandbox()=default
void SetCurrentSession(CurrentSessionT &&value)
Definition Sandbox.h:406
bool ProjectNameHasBeenSet() const
Definition Sandbox.h:84
void SetId(IdT &&value)
Definition Sandbox.h:50
bool ServiceRoleHasBeenSet() const
Definition Sandbox.h:386
Sandbox & WithCurrentSession(CurrentSessionT &&value)
Definition Sandbox.h:411
bool EncryptionKeyHasBeenSet() const
Definition Sandbox.h:368
Sandbox & WithSecondarySources(SecondarySourcesT &&value)
Definition Sandbox.h:216
Sandbox & WithEncryptionKey(EncryptionKeyT &&value)
Definition Sandbox.h:375
bool QueuedTimeoutInMinutesHasBeenSet() const
Definition Sandbox.h:319
void SetStartTime(StartTimeT &&value)
Definition Sandbox.h:123
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
Sandbox & WithStartTime(StartTimeT &&value)
Definition Sandbox.h:128
void SetServiceRole(ServiceRoleT &&value)
Definition Sandbox.h:388
bool CurrentSessionHasBeenSet() const
Definition Sandbox.h:404
void SetEncryptionKey(EncryptionKeyT &&value)
Definition Sandbox.h:370
Sandbox & WithSourceVersion(SourceVersionT &&value)
Definition Sandbox.h:198
const Aws::String & GetProjectName() const
Definition Sandbox.h:83
Sandbox & WithRequestTime(RequestTimeT &&value)
Definition Sandbox.h:110
const Aws::Utils::DateTime & GetRequestTime() const
Definition Sandbox.h:102
void SetLogConfig(LogConfigT &&value)
Definition Sandbox.h:351
void SetFileSystemLocations(FileSystemLocationsT &&value)
Definition Sandbox.h:279
bool VpcConfigHasBeenSet() const
Definition Sandbox.h:333
const ProjectEnvironment & GetEnvironment() const
Definition Sandbox.h:254
const SandboxSession & GetCurrentSession() const
Definition Sandbox.h:403
bool TimeoutInMinutesHasBeenSet() const
Definition Sandbox.h:302
void SetVpcConfig(VpcConfigT &&value)
Definition Sandbox.h:335
bool SecondarySourcesHasBeenSet() const
Definition Sandbox.h:209
void SetSecondarySourceVersions(SecondarySourceVersionsT &&value)
Definition Sandbox.h:235
Sandbox & WithVpcConfig(VpcConfigT &&value)
Definition Sandbox.h:340
Sandbox & AddSecondarySourceVersions(SecondarySourceVersionsT &&value)
Definition Sandbox.h:245
const Aws::Vector< ProjectFileSystemLocation > & GetFileSystemLocations() const
Definition Sandbox.h:276
const Aws::String & GetServiceRole() const
Definition Sandbox.h:385
const Aws::String & GetArn() const
Definition Sandbox.h:65
AWS_CODEBUILD_API Sandbox(Aws::Utils::Json::JsonView jsonValue)
Sandbox & WithQueuedTimeoutInMinutes(int value)
Definition Sandbox.h:324
const Aws::String & GetSourceVersion() const
Definition Sandbox.h:190
const Aws::Utils::DateTime & GetEndTime() const
Definition Sandbox.h:138
AWS_CODEBUILD_API Sandbox & operator=(Aws::Utils::Json::JsonView jsonValue)
const LogsConfig & GetLogConfig() const
Definition Sandbox.h:348
bool LogConfigHasBeenSet() const
Definition Sandbox.h:349
Sandbox & WithEndTime(EndTimeT &&value)
Definition Sandbox.h:146
Sandbox & WithSecondarySourceVersions(SecondarySourceVersionsT &&value)
Definition Sandbox.h:240
void SetRequestTime(RequestTimeT &&value)
Definition Sandbox.h:105
Sandbox & WithServiceRole(ServiceRoleT &&value)
Definition Sandbox.h:393
const ProjectSource & GetSource() const
Definition Sandbox.h:172
Sandbox & WithArn(ArnT &&value)
Definition Sandbox.h:73
void SetEnvironment(EnvironmentT &&value)
Definition Sandbox.h:257
const Aws::Vector< ProjectSourceVersion > & GetSecondarySourceVersions() const
Definition Sandbox.h:232
void SetSecondarySources(SecondarySourcesT &&value)
Definition Sandbox.h:211
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue