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