AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Sandbox.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/ProjectSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codebuild/model/ProjectEnvironment.h>
13#include <aws/codebuild/model/VpcConfig.h>
14#include <aws/codebuild/model/LogsConfig.h>
15#include <aws/codebuild/model/SandboxSession.h>
16#include <aws/codebuild/model/ProjectSourceVersion.h>
17#include <aws/codebuild/model/ProjectFileSystemLocation.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace CodeBuild
31{
32namespace Model
33{
34
40 class Sandbox
41 {
42 public:
43 AWS_CODEBUILD_API Sandbox() = default;
44 AWS_CODEBUILD_API Sandbox(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODEBUILD_API Sandbox& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 Sandbox& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
69 template<typename ArnT = Aws::String>
70 Sandbox& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
72
74
77 inline const Aws::String& GetProjectName() const { return m_projectName; }
78 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
79 template<typename ProjectNameT = Aws::String>
80 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
81 template<typename ProjectNameT = Aws::String>
82 Sandbox& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetRequestTime() const { return m_requestTime; }
91 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
92 template<typename RequestTimeT = Aws::Utils::DateTime>
93 void SetRequestTime(RequestTimeT&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::forward<RequestTimeT>(value); }
94 template<typename RequestTimeT = Aws::Utils::DateTime>
95 Sandbox& WithRequestTime(RequestTimeT&& value) { SetRequestTime(std::forward<RequestTimeT>(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
103 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
104 template<typename StartTimeT = Aws::Utils::DateTime>
105 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
106 template<typename StartTimeT = Aws::Utils::DateTime>
107 Sandbox& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
115 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
116 template<typename EndTimeT = Aws::Utils::DateTime>
117 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
118 template<typename EndTimeT = Aws::Utils::DateTime>
119 Sandbox& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
121
123
126 inline const Aws::String& GetStatus() const { return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
128 template<typename StatusT = Aws::String>
129 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
130 template<typename StatusT = Aws::String>
131 Sandbox& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
133
135
136 inline const ProjectSource& GetSource() const { return m_source; }
137 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
138 template<typename SourceT = ProjectSource>
139 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
140 template<typename SourceT = ProjectSource>
141 Sandbox& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
143
145
148 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
149 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
150 template<typename SourceVersionT = Aws::String>
151 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
152 template<typename SourceVersionT = Aws::String>
153 Sandbox& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
155
157
160 inline const Aws::Vector<ProjectSource>& GetSecondarySources() const { return m_secondarySources; }
161 inline bool SecondarySourcesHasBeenSet() const { return m_secondarySourcesHasBeenSet; }
162 template<typename SecondarySourcesT = Aws::Vector<ProjectSource>>
163 void SetSecondarySources(SecondarySourcesT&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources = std::forward<SecondarySourcesT>(value); }
164 template<typename SecondarySourcesT = Aws::Vector<ProjectSource>>
165 Sandbox& WithSecondarySources(SecondarySourcesT&& value) { SetSecondarySources(std::forward<SecondarySourcesT>(value)); return *this;}
166 template<typename SecondarySourcesT = ProjectSource>
167 Sandbox& AddSecondarySources(SecondarySourcesT&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources.emplace_back(std::forward<SecondarySourcesT>(value)); return *this; }
169
171
174 inline const Aws::Vector<ProjectSourceVersion>& GetSecondarySourceVersions() const { return m_secondarySourceVersions; }
175 inline bool SecondarySourceVersionsHasBeenSet() const { return m_secondarySourceVersionsHasBeenSet; }
176 template<typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
177 void SetSecondarySourceVersions(SecondarySourceVersionsT&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions = std::forward<SecondarySourceVersionsT>(value); }
178 template<typename SecondarySourceVersionsT = Aws::Vector<ProjectSourceVersion>>
179 Sandbox& WithSecondarySourceVersions(SecondarySourceVersionsT&& value) { SetSecondarySourceVersions(std::forward<SecondarySourceVersionsT>(value)); return *this;}
180 template<typename SecondarySourceVersionsT = ProjectSourceVersion>
181 Sandbox& AddSecondarySourceVersions(SecondarySourceVersionsT&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions.emplace_back(std::forward<SecondarySourceVersionsT>(value)); return *this; }
183
185
186 inline const ProjectEnvironment& GetEnvironment() const { return m_environment; }
187 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
188 template<typename EnvironmentT = ProjectEnvironment>
189 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
190 template<typename EnvironmentT = ProjectEnvironment>
191 Sandbox& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
193
195
202 inline const Aws::Vector<ProjectFileSystemLocation>& GetFileSystemLocations() const { return m_fileSystemLocations; }
203 inline bool FileSystemLocationsHasBeenSet() const { return m_fileSystemLocationsHasBeenSet; }
204 template<typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
205 void SetFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations = std::forward<FileSystemLocationsT>(value); }
206 template<typename FileSystemLocationsT = Aws::Vector<ProjectFileSystemLocation>>
207 Sandbox& WithFileSystemLocations(FileSystemLocationsT&& value) { SetFileSystemLocations(std::forward<FileSystemLocationsT>(value)); return *this;}
208 template<typename FileSystemLocationsT = ProjectFileSystemLocation>
209 Sandbox& AddFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value)); return *this; }
211
213
217 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
218 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
219 inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
220 inline Sandbox& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
222
224
228 inline int GetQueuedTimeoutInMinutes() const { return m_queuedTimeoutInMinutes; }
229 inline bool QueuedTimeoutInMinutesHasBeenSet() const { return m_queuedTimeoutInMinutesHasBeenSet; }
230 inline void SetQueuedTimeoutInMinutes(int value) { m_queuedTimeoutInMinutesHasBeenSet = true; m_queuedTimeoutInMinutes = value; }
231 inline Sandbox& WithQueuedTimeoutInMinutes(int value) { SetQueuedTimeoutInMinutes(value); return *this;}
233
235
236 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
237 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
238 template<typename VpcConfigT = VpcConfig>
239 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
240 template<typename VpcConfigT = VpcConfig>
241 Sandbox& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
243
245
246 inline const LogsConfig& GetLogConfig() const { return m_logConfig; }
247 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
248 template<typename LogConfigT = LogsConfig>
249 void SetLogConfig(LogConfigT&& value) { m_logConfigHasBeenSet = true; m_logConfig = std::forward<LogConfigT>(value); }
250 template<typename LogConfigT = LogsConfig>
251 Sandbox& WithLogConfig(LogConfigT&& value) { SetLogConfig(std::forward<LogConfigT>(value)); return *this;}
253
255
259 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
260 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
261 template<typename EncryptionKeyT = Aws::String>
262 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
263 template<typename EncryptionKeyT = Aws::String>
264 Sandbox& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
266
268
271 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
272 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
273 template<typename ServiceRoleT = Aws::String>
274 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
275 template<typename ServiceRoleT = Aws::String>
276 Sandbox& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
278
280
283 inline const SandboxSession& GetCurrentSession() const { return m_currentSession; }
284 inline bool CurrentSessionHasBeenSet() const { return m_currentSessionHasBeenSet; }
285 template<typename CurrentSessionT = SandboxSession>
286 void SetCurrentSession(CurrentSessionT&& value) { m_currentSessionHasBeenSet = true; m_currentSession = std::forward<CurrentSessionT>(value); }
287 template<typename CurrentSessionT = SandboxSession>
288 Sandbox& WithCurrentSession(CurrentSessionT&& value) { SetCurrentSession(std::forward<CurrentSessionT>(value)); return *this;}
290 private:
291
292 Aws::String m_id;
293 bool m_idHasBeenSet = false;
294
295 Aws::String m_arn;
296 bool m_arnHasBeenSet = false;
297
298 Aws::String m_projectName;
299 bool m_projectNameHasBeenSet = false;
300
301 Aws::Utils::DateTime m_requestTime{};
302 bool m_requestTimeHasBeenSet = false;
303
304 Aws::Utils::DateTime m_startTime{};
305 bool m_startTimeHasBeenSet = false;
306
307 Aws::Utils::DateTime m_endTime{};
308 bool m_endTimeHasBeenSet = false;
309
310 Aws::String m_status;
311 bool m_statusHasBeenSet = false;
312
313 ProjectSource m_source;
314 bool m_sourceHasBeenSet = false;
315
316 Aws::String m_sourceVersion;
317 bool m_sourceVersionHasBeenSet = false;
318
319 Aws::Vector<ProjectSource> m_secondarySources;
320 bool m_secondarySourcesHasBeenSet = false;
321
322 Aws::Vector<ProjectSourceVersion> m_secondarySourceVersions;
323 bool m_secondarySourceVersionsHasBeenSet = false;
324
325 ProjectEnvironment m_environment;
326 bool m_environmentHasBeenSet = false;
327
328 Aws::Vector<ProjectFileSystemLocation> m_fileSystemLocations;
329 bool m_fileSystemLocationsHasBeenSet = false;
330
331 int m_timeoutInMinutes{0};
332 bool m_timeoutInMinutesHasBeenSet = false;
333
334 int m_queuedTimeoutInMinutes{0};
335 bool m_queuedTimeoutInMinutesHasBeenSet = false;
336
337 VpcConfig m_vpcConfig;
338 bool m_vpcConfigHasBeenSet = false;
339
340 LogsConfig m_logConfig;
341 bool m_logConfigHasBeenSet = false;
342
343 Aws::String m_encryptionKey;
344 bool m_encryptionKeyHasBeenSet = false;
345
346 Aws::String m_serviceRole;
347 bool m_serviceRoleHasBeenSet = false;
348
349 SandboxSession m_currentSession;
350 bool m_currentSessionHasBeenSet = false;
351 };
352
353} // namespace Model
354} // namespace CodeBuild
355} // namespace Aws
const VpcConfig & GetVpcConfig() const
Definition Sandbox.h:236
bool FileSystemLocationsHasBeenSet() const
Definition Sandbox.h:203
Sandbox & WithLogConfig(LogConfigT &&value)
Definition Sandbox.h:251
void SetSource(SourceT &&value)
Definition Sandbox.h:139
const Aws::Utils::DateTime & GetStartTime() const
Definition Sandbox.h:102
Sandbox & WithId(IdT &&value)
Definition Sandbox.h:58
void SetQueuedTimeoutInMinutes(int value)
Definition Sandbox.h:230
Sandbox & WithTimeoutInMinutes(int value)
Definition Sandbox.h:220
void SetProjectName(ProjectNameT &&value)
Definition Sandbox.h:80
bool EnvironmentHasBeenSet() const
Definition Sandbox.h:187
void SetArn(ArnT &&value)
Definition Sandbox.h:68
Sandbox & WithSource(SourceT &&value)
Definition Sandbox.h:141
int GetQueuedTimeoutInMinutes() const
Definition Sandbox.h:228
Sandbox & WithEnvironment(EnvironmentT &&value)
Definition Sandbox.h:191
void SetEndTime(EndTimeT &&value)
Definition Sandbox.h:117
bool SourceVersionHasBeenSet() const
Definition Sandbox.h:149
Sandbox & WithProjectName(ProjectNameT &&value)
Definition Sandbox.h:82
const Aws::String & GetEncryptionKey() const
Definition Sandbox.h:259
const Aws::String & GetStatus() const
Definition Sandbox.h:126
const Aws::String & GetId() const
Definition Sandbox.h:53
const Aws::Vector< ProjectSource > & GetSecondarySources() const
Definition Sandbox.h:160
bool StartTimeHasBeenSet() const
Definition Sandbox.h:103
Sandbox & WithFileSystemLocations(FileSystemLocationsT &&value)
Definition Sandbox.h:207
Sandbox & AddFileSystemLocations(FileSystemLocationsT &&value)
Definition Sandbox.h:209
void SetStatus(StatusT &&value)
Definition Sandbox.h:129
bool RequestTimeHasBeenSet() const
Definition Sandbox.h:91
void SetTimeoutInMinutes(int value)
Definition Sandbox.h:219
Sandbox & WithStatus(StatusT &&value)
Definition Sandbox.h:131
Sandbox & AddSecondarySources(SecondarySourcesT &&value)
Definition Sandbox.h:167
bool SecondarySourceVersionsHasBeenSet() const
Definition Sandbox.h:175
void SetSourceVersion(SourceVersionT &&value)
Definition Sandbox.h:151
AWS_CODEBUILD_API Sandbox()=default
void SetCurrentSession(CurrentSessionT &&value)
Definition Sandbox.h:286
bool ProjectNameHasBeenSet() const
Definition Sandbox.h:78
void SetId(IdT &&value)
Definition Sandbox.h:56
bool ServiceRoleHasBeenSet() const
Definition Sandbox.h:272
Sandbox & WithCurrentSession(CurrentSessionT &&value)
Definition Sandbox.h:288
bool EncryptionKeyHasBeenSet() const
Definition Sandbox.h:260
Sandbox & WithSecondarySources(SecondarySourcesT &&value)
Definition Sandbox.h:165
Sandbox & WithEncryptionKey(EncryptionKeyT &&value)
Definition Sandbox.h:264
bool QueuedTimeoutInMinutesHasBeenSet() const
Definition Sandbox.h:229
void SetStartTime(StartTimeT &&value)
Definition Sandbox.h:105
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
Sandbox & WithStartTime(StartTimeT &&value)
Definition Sandbox.h:107
void SetServiceRole(ServiceRoleT &&value)
Definition Sandbox.h:274
bool CurrentSessionHasBeenSet() const
Definition Sandbox.h:284
void SetEncryptionKey(EncryptionKeyT &&value)
Definition Sandbox.h:262
Sandbox & WithSourceVersion(SourceVersionT &&value)
Definition Sandbox.h:153
const Aws::String & GetProjectName() const
Definition Sandbox.h:77
Sandbox & WithRequestTime(RequestTimeT &&value)
Definition Sandbox.h:95
const Aws::Utils::DateTime & GetRequestTime() const
Definition Sandbox.h:90
void SetLogConfig(LogConfigT &&value)
Definition Sandbox.h:249
void SetFileSystemLocations(FileSystemLocationsT &&value)
Definition Sandbox.h:205
bool VpcConfigHasBeenSet() const
Definition Sandbox.h:237
const ProjectEnvironment & GetEnvironment() const
Definition Sandbox.h:186
const SandboxSession & GetCurrentSession() const
Definition Sandbox.h:283
bool TimeoutInMinutesHasBeenSet() const
Definition Sandbox.h:218
void SetVpcConfig(VpcConfigT &&value)
Definition Sandbox.h:239
bool SecondarySourcesHasBeenSet() const
Definition Sandbox.h:161
void SetSecondarySourceVersions(SecondarySourceVersionsT &&value)
Definition Sandbox.h:177
Sandbox & WithVpcConfig(VpcConfigT &&value)
Definition Sandbox.h:241
Sandbox & AddSecondarySourceVersions(SecondarySourceVersionsT &&value)
Definition Sandbox.h:181
const Aws::Vector< ProjectFileSystemLocation > & GetFileSystemLocations() const
Definition Sandbox.h:202
const Aws::String & GetServiceRole() const
Definition Sandbox.h:271
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:231
const Aws::String & GetSourceVersion() const
Definition Sandbox.h:148
const Aws::Utils::DateTime & GetEndTime() const
Definition Sandbox.h:114
AWS_CODEBUILD_API Sandbox & operator=(Aws::Utils::Json::JsonView jsonValue)
const LogsConfig & GetLogConfig() const
Definition Sandbox.h:246
bool LogConfigHasBeenSet() const
Definition Sandbox.h:247
Sandbox & WithEndTime(EndTimeT &&value)
Definition Sandbox.h:119
Sandbox & WithSecondarySourceVersions(SecondarySourceVersionsT &&value)
Definition Sandbox.h:179
void SetRequestTime(RequestTimeT &&value)
Definition Sandbox.h:93
Sandbox & WithServiceRole(ServiceRoleT &&value)
Definition Sandbox.h:276
const ProjectSource & GetSource() const
Definition Sandbox.h:136
Sandbox & WithArn(ArnT &&value)
Definition Sandbox.h:70
void SetEnvironment(EnvironmentT &&value)
Definition Sandbox.h:189
const Aws::Vector< ProjectSourceVersion > & GetSecondarySourceVersions() const
Definition Sandbox.h:174
void SetSecondarySources(SecondarySourcesT &&value)
Definition Sandbox.h:163
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue