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>
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>
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>
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>
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>
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>
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>
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>
138 template<
typename SourceT = ProjectSource>
139 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
140 template<
typename SourceT = ProjectSource>
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>
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>>
166 template<
typename SecondarySourcesT = ProjectSource>
167 Sandbox&
AddSecondarySources(SecondarySourcesT&& value) { m_secondarySourcesHasBeenSet =
true; m_secondarySources.emplace_back(std::forward<SecondarySourcesT>(value));
return *
this; }
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>>
180 template<
typename SecondarySourceVersionsT = ProjectSourceVersion>
181 Sandbox&
AddSecondarySourceVersions(SecondarySourceVersionsT&& value) { m_secondarySourceVersionsHasBeenSet =
true; m_secondarySourceVersions.emplace_back(std::forward<SecondarySourceVersionsT>(value));
return *
this; }
188 template<
typename EnvironmentT = ProjectEnvironment>
189 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
190 template<
typename EnvironmentT = ProjectEnvironment>
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>>
208 template<
typename FileSystemLocationsT = ProjectFileSystemLocation>
209 Sandbox&
AddFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet =
true; m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value));
return *
this; }
219 inline void SetTimeoutInMinutes(
int value) { m_timeoutInMinutesHasBeenSet =
true; m_timeoutInMinutes = value; }
238 template<
typename VpcConfigT = VpcConfig>
239 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
240 template<
typename VpcConfigT = VpcConfig>
248 template<
typename LogConfigT = LogsConfig>
249 void SetLogConfig(LogConfigT&& value) { m_logConfigHasBeenSet =
true; m_logConfig = std::forward<LogConfigT>(value); }
250 template<
typename LogConfigT = LogsConfig>
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>
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>
285 template<
typename CurrentSessionT = SandboxSession>
286 void SetCurrentSession(CurrentSessionT&& value) { m_currentSessionHasBeenSet =
true; m_currentSession = std::forward<CurrentSessionT>(value); }
287 template<
typename CurrentSessionT = SandboxSession>
293 bool m_idHasBeenSet =
false;
296 bool m_arnHasBeenSet =
false;
299 bool m_projectNameHasBeenSet =
false;
302 bool m_requestTimeHasBeenSet =
false;
305 bool m_startTimeHasBeenSet =
false;
308 bool m_endTimeHasBeenSet =
false;
311 bool m_statusHasBeenSet =
false;
313 ProjectSource m_source;
314 bool m_sourceHasBeenSet =
false;
317 bool m_sourceVersionHasBeenSet =
false;
320 bool m_secondarySourcesHasBeenSet =
false;
323 bool m_secondarySourceVersionsHasBeenSet =
false;
325 ProjectEnvironment m_environment;
326 bool m_environmentHasBeenSet =
false;
329 bool m_fileSystemLocationsHasBeenSet =
false;
331 int m_timeoutInMinutes{0};
332 bool m_timeoutInMinutesHasBeenSet =
false;
334 int m_queuedTimeoutInMinutes{0};
335 bool m_queuedTimeoutInMinutesHasBeenSet =
false;
337 VpcConfig m_vpcConfig;
338 bool m_vpcConfigHasBeenSet =
false;
340 LogsConfig m_logConfig;
341 bool m_logConfigHasBeenSet =
false;
344 bool m_encryptionKeyHasBeenSet =
false;
347 bool m_serviceRoleHasBeenSet =
false;
349 SandboxSession m_currentSession;
350 bool m_currentSessionHasBeenSet =
false;
const VpcConfig & GetVpcConfig() const
bool FileSystemLocationsHasBeenSet() const
Sandbox & WithLogConfig(LogConfigT &&value)
void SetSource(SourceT &&value)
const Aws::Utils::DateTime & GetStartTime() const
Sandbox & WithId(IdT &&value)
void SetQueuedTimeoutInMinutes(int value)
Sandbox & WithTimeoutInMinutes(int value)
void SetProjectName(ProjectNameT &&value)
bool EnvironmentHasBeenSet() const
void SetArn(ArnT &&value)
Sandbox & WithSource(SourceT &&value)
int GetQueuedTimeoutInMinutes() const
Sandbox & WithEnvironment(EnvironmentT &&value)
void SetEndTime(EndTimeT &&value)
bool SourceHasBeenSet() const
bool SourceVersionHasBeenSet() const
Sandbox & WithProjectName(ProjectNameT &&value)
const Aws::String & GetEncryptionKey() const
const Aws::String & GetStatus() const
const Aws::String & GetId() const
const Aws::Vector< ProjectSource > & GetSecondarySources() const
bool StartTimeHasBeenSet() const
Sandbox & WithFileSystemLocations(FileSystemLocationsT &&value)
Sandbox & AddFileSystemLocations(FileSystemLocationsT &&value)
void SetStatus(StatusT &&value)
bool RequestTimeHasBeenSet() const
void SetTimeoutInMinutes(int value)
Sandbox & WithStatus(StatusT &&value)
Sandbox & AddSecondarySources(SecondarySourcesT &&value)
bool SecondarySourceVersionsHasBeenSet() const
void SetSourceVersion(SourceVersionT &&value)
AWS_CODEBUILD_API Sandbox()=default
void SetCurrentSession(CurrentSessionT &&value)
bool ArnHasBeenSet() const
bool ProjectNameHasBeenSet() const
bool ServiceRoleHasBeenSet() const
Sandbox & WithCurrentSession(CurrentSessionT &&value)
bool EncryptionKeyHasBeenSet() const
Sandbox & WithSecondarySources(SecondarySourcesT &&value)
Sandbox & WithEncryptionKey(EncryptionKeyT &&value)
bool QueuedTimeoutInMinutesHasBeenSet() const
void SetStartTime(StartTimeT &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
Sandbox & WithStartTime(StartTimeT &&value)
void SetServiceRole(ServiceRoleT &&value)
bool StatusHasBeenSet() const
bool CurrentSessionHasBeenSet() const
void SetEncryptionKey(EncryptionKeyT &&value)
Sandbox & WithSourceVersion(SourceVersionT &&value)
const Aws::String & GetProjectName() const
Sandbox & WithRequestTime(RequestTimeT &&value)
const Aws::Utils::DateTime & GetRequestTime() const
void SetLogConfig(LogConfigT &&value)
void SetFileSystemLocations(FileSystemLocationsT &&value)
bool VpcConfigHasBeenSet() const
const ProjectEnvironment & GetEnvironment() const
const SandboxSession & GetCurrentSession() const
bool TimeoutInMinutesHasBeenSet() const
void SetVpcConfig(VpcConfigT &&value)
bool SecondarySourcesHasBeenSet() const
void SetSecondarySourceVersions(SecondarySourceVersionsT &&value)
Sandbox & WithVpcConfig(VpcConfigT &&value)
Sandbox & AddSecondarySourceVersions(SecondarySourceVersionsT &&value)
const Aws::Vector< ProjectFileSystemLocation > & GetFileSystemLocations() const
const Aws::String & GetServiceRole() const
bool IdHasBeenSet() const
const Aws::String & GetArn() const
AWS_CODEBUILD_API Sandbox(Aws::Utils::Json::JsonView jsonValue)
Sandbox & WithQueuedTimeoutInMinutes(int value)
const Aws::String & GetSourceVersion() const
const Aws::Utils::DateTime & GetEndTime() const
AWS_CODEBUILD_API Sandbox & operator=(Aws::Utils::Json::JsonView jsonValue)
const LogsConfig & GetLogConfig() const
bool EndTimeHasBeenSet() const
bool LogConfigHasBeenSet() const
Sandbox & WithEndTime(EndTimeT &&value)
Sandbox & WithSecondarySourceVersions(SecondarySourceVersionsT &&value)
void SetRequestTime(RequestTimeT &&value)
Sandbox & WithServiceRole(ServiceRoleT &&value)
const ProjectSource & GetSource() const
Sandbox & WithArn(ArnT &&value)
void SetEnvironment(EnvironmentT &&value)
int GetTimeoutInMinutes() const
const Aws::Vector< ProjectSourceVersion > & GetSecondarySourceVersions() const
void SetSecondarySources(SecondarySourcesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue