Class SandboxSnapshotSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaisandbox.model.SandboxSnapshotSummary.Builder
-
- Enclosing class:
- SandboxSnapshotSummary
public static class SandboxSnapshotSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SandboxSnapshotSummarybuild()SandboxSnapshotSummary.Buildercopy(SandboxSnapshotSummary model)SandboxSnapshotSummary.BuilderdisplayName(String displayName)Display name for the sandbox snapshot.SandboxSnapshotSummary.BuilderexpirationDuration(String expirationDuration)Duration after creation before the sandbox snapshot expires, in ISO 8601 duration format.SandboxSnapshotSummary.Builderid(String id)Sandbox snapshot identifier.SandboxSnapshotSummary.BuilderlifecycleState(SandboxSnapshot.LifecycleState lifecycleState)The current state of the SandboxSnapshot.SandboxSnapshotSummary.BuilderprojectId(String projectId)Project identifier that the sandbox snapshot belongs to.SandboxSnapshotSummary.Builderruntime(String runtime)Runtime identifier for the sandbox snapshot.SandboxSnapshotSummary.BuildersandboxId(String sandboxId)Identifier of the sandbox used to create the sandbox snapshot.SandboxSnapshotSummary.BuildersizeBytes(Long sizeBytes)Size of the sandbox snapshot archive in bytes.SandboxSnapshotSummary.BuildertimeCreated(Date timeCreated)The date and time the sandbox snapshot was created, in RFC 3339 format.SandboxSnapshotSummary.BuildertimeExpires(Date timeExpires)The date and time the sandbox snapshot expires, in RFC 3339 format.SandboxSnapshotSummary.BuildertimeUpdated(Date timeUpdated)The date and time the sandbox snapshot was last updated, in RFC 3339 format.
-
-
-
Method Detail
-
id
public SandboxSnapshotSummary.Builder id(String id)
Sandbox snapshot identifier.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public SandboxSnapshotSummary.Builder displayName(String displayName)
Display name for the sandbox snapshot.- Parameters:
displayName- the value to set- Returns:
- this builder
-
projectId
public SandboxSnapshotSummary.Builder projectId(String projectId)
Project identifier that the sandbox snapshot belongs to.- Parameters:
projectId- the value to set- Returns:
- this builder
-
sandboxId
public SandboxSnapshotSummary.Builder sandboxId(String sandboxId)
Identifier of the sandbox used to create the sandbox snapshot.- Parameters:
sandboxId- the value to set- Returns:
- this builder
-
runtime
public SandboxSnapshotSummary.Builder runtime(String runtime)
Runtime identifier for the sandbox snapshot.- Parameters:
runtime- the value to set- Returns:
- this builder
-
expirationDuration
public SandboxSnapshotSummary.Builder expirationDuration(String expirationDuration)
Duration after creation before the sandbox snapshot expires, in ISO 8601 duration format.For example, P7D for 7 days or PT24H for 24 hours.
- Parameters:
expirationDuration- the value to set- Returns:
- this builder
-
sizeBytes
public SandboxSnapshotSummary.Builder sizeBytes(Long sizeBytes)
Size of the sandbox snapshot archive in bytes.- Parameters:
sizeBytes- the value to set- Returns:
- this builder
-
lifecycleState
public SandboxSnapshotSummary.Builder lifecycleState(SandboxSnapshot.LifecycleState lifecycleState)
The current state of the SandboxSnapshot.Allowed values are: - CREATING - ACTIVE - FAILED - DELETING - DELETED
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
timeCreated
public SandboxSnapshotSummary.Builder timeCreated(Date timeCreated)
The date and time the sandbox snapshot was created, in RFC 3339 format.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public SandboxSnapshotSummary.Builder timeUpdated(Date timeUpdated)
The date and time the sandbox snapshot was last updated, in RFC 3339 format.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
timeExpires
public SandboxSnapshotSummary.Builder timeExpires(Date timeExpires)
The date and time the sandbox snapshot expires, in RFC 3339 format.- Parameters:
timeExpires- the value to set- Returns:
- this builder
-
build
public SandboxSnapshotSummary build()
-
copy
public SandboxSnapshotSummary.Builder copy(SandboxSnapshotSummary model)
-
-