Class Sandbox
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Sandbox.Builder,
Sandbox>
Contains sandbox information.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
arn()
The ARN of the sandbox.static Sandbox.Builder
builder()
final SandboxSession
The current session for the sandbox.final String
The Key Management Service customer master key (CMK) to be used for encrypting the sandbox output artifacts.final Instant
endTime()
When the sandbox process ended, expressed in Unix time format.final ProjectEnvironment
Returns the value of the Environment property for this object.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final List
<ProjectFileSystemLocation> An array ofProjectFileSystemLocation
objects for a CodeBuild build project.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the FileSystemLocations property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the SecondarySources property.final boolean
For responses, this returns true if the service returned a value for the SecondarySourceVersions property.final String
id()
The ID of the sandbox.final LogsConfig
Returns the value of the LogConfig property for this object.final String
The CodeBuild project name.final Integer
The number of minutes a sandbox is allowed to be queued before it times out.final Instant
When the sandbox process was initially requested, expressed in Unix time format.final List
<ProjectSource> An array ofProjectSource
objects.final List
<ProjectSourceVersion> An array ofProjectSourceVersion
objects.static Class
<? extends Sandbox.Builder> final String
The name of a service role used for this sandbox.final ProjectSource
source()
Returns the value of the Source property for this object.final String
Any version identifier for the version of the sandbox to be built.final Instant
When the sandbox process started, expressed in Unix time format.final String
status()
The status of the sandbox.final Integer
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this sandbox if it does not get marked as completed.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final VpcConfig
Returns the value of the VpcConfig property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
-
arn
-
projectName
-
requestTime
When the sandbox process was initially requested, expressed in Unix time format.
- Returns:
- When the sandbox process was initially requested, expressed in Unix time format.
-
startTime
When the sandbox process started, expressed in Unix time format.
- Returns:
- When the sandbox process started, expressed in Unix time format.
-
endTime
When the sandbox process ended, expressed in Unix time format.
- Returns:
- When the sandbox process ended, expressed in Unix time format.
-
status
-
source
Returns the value of the Source property for this object.- Returns:
- The value of the Source property for this object.
-
sourceVersion
Any version identifier for the version of the sandbox to be built.
- Returns:
- Any version identifier for the version of the sandbox to be built.
-
hasSecondarySources
public final boolean hasSecondarySources()For responses, this returns true if the service returned a value for the SecondarySources property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
secondarySources
An array of
ProjectSource
objects.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSecondarySources()
method.- Returns:
- An array of
ProjectSource
objects.
-
hasSecondarySourceVersions
public final boolean hasSecondarySourceVersions()For responses, this returns true if the service returned a value for the SecondarySourceVersions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
secondarySourceVersions
An array of
ProjectSourceVersion
objects.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSecondarySourceVersions()
method.- Returns:
- An array of
ProjectSourceVersion
objects.
-
environment
Returns the value of the Environment property for this object.- Returns:
- The value of the Environment property for this object.
-
hasFileSystemLocations
public final boolean hasFileSystemLocations()For responses, this returns true if the service returned a value for the FileSystemLocations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
fileSystemLocations
An array of
ProjectFileSystemLocation
objects for a CodeBuild build project. AProjectFileSystemLocation
object specifies theidentifier
,location
,mountOptions
,mountPoint
, andtype
of a file system created using Amazon Elastic File System.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasFileSystemLocations()
method.- Returns:
- An array of
ProjectFileSystemLocation
objects for a CodeBuild build project. AProjectFileSystemLocation
object specifies theidentifier
,location
,mountOptions
,mountPoint
, andtype
of a file system created using Amazon Elastic File System.
-
timeoutInMinutes
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this sandbox if it does not get marked as completed.
- Returns:
- How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this sandbox if it does not get marked as completed.
-
queuedTimeoutInMinutes
The number of minutes a sandbox is allowed to be queued before it times out.
- Returns:
- The number of minutes a sandbox is allowed to be queued before it times out.
-
vpcConfig
Returns the value of the VpcConfig property for this object.- Returns:
- The value of the VpcConfig property for this object.
-
logConfig
Returns the value of the LogConfig property for this object.- Returns:
- The value of the LogConfig property for this object.
-
encryptionKey
The Key Management Service customer master key (CMK) to be used for encrypting the sandbox output artifacts.
- Returns:
- The Key Management Service customer master key (CMK) to be used for encrypting the sandbox output artifacts.
-
serviceRole
The name of a service role used for this sandbox.
- Returns:
- The name of a service role used for this sandbox.
-
currentSession
The current session for the sandbox.
- Returns:
- The current session for the sandbox.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Sandbox.Builder,
Sandbox> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-