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 Stringarn()The ARN of the sandbox.static Sandbox.Builderbuilder()final SandboxSessionThe current session for the sandbox.final StringThe Key Management Service customer master key (CMK) to be used for encrypting the sandbox output artifacts.final InstantendTime()When the sandbox process ended, expressed in Unix time format.final ProjectEnvironmentReturns the value of the Environment property for this object.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final List<ProjectFileSystemLocation> An array ofProjectFileSystemLocationobjects for a CodeBuild build project.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the FileSystemLocations property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the SecondarySources property.final booleanFor responses, this returns true if the service returned a value for the SecondarySourceVersions property.final Stringid()The ID of the sandbox.final LogsConfigReturns the value of the LogConfig property for this object.final StringThe CodeBuild project name.final IntegerThe number of minutes a sandbox is allowed to be queued before it times out.final InstantWhen the sandbox process was initially requested, expressed in Unix time format.final List<ProjectSource> An array ofProjectSourceobjects.final List<ProjectSourceVersion> An array ofProjectSourceVersionobjects.static Class<? extends Sandbox.Builder> final StringThe name of a service role used for this sandbox.final ProjectSourcesource()Returns the value of the Source property for this object.final StringAny version identifier for the version of the sandbox to be built.final InstantWhen the sandbox process started, expressed in Unix time format.final Stringstatus()The status of the sandbox.final IntegerHow 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 StringtoString()Returns a string representation of this object.final VpcConfigReturns 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
ProjectSourceobjects.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
ProjectSourceobjects.
-
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
ProjectSourceVersionobjects.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
ProjectSourceVersionobjects.
-
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
ProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof 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
ProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Sandbox.Builder,Sandbox> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-