Class SandboxSnapshot
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.generativeaisandbox.model.SandboxSnapshot
-
@Generated(value="OracleSDKGenerator", comments="API Version: 1.0") public final class SandboxSnapshot extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelSandbox snapshot resource representation.
Note: Objects should always be created or deserialized using theSandboxSnapshot.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theSandboxSnapshot.Builder, which maintain a set of all explicitly set fields calledSandboxSnapshot.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSandboxSnapshot.Builderstatic classSandboxSnapshot.LifecycleStateThe current state of the SandboxSnapshot.
-
Constructor Summary
Constructors Constructor Description SandboxSnapshot(String id, String displayName, String projectId, String sandboxId, String runtime, String expirationDuration, Long sizeBytes, SandboxSnapshot.LifecycleState lifecycleState, Date timeCreated, Date timeUpdated, Date timeExpires)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SandboxSnapshot.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetDisplayName()Display name for the sandbox snapshot.StringgetExpirationDuration()Duration after creation before the sandbox snapshot expires, in ISO 8601 duration format.StringgetId()Sandbox snapshot identifier.SandboxSnapshot.LifecycleStategetLifecycleState()The current state of the SandboxSnapshot.StringgetProjectId()Project identifier that the sandbox snapshot belongs to.StringgetRuntime()Runtime identifier for the sandbox snapshot.StringgetSandboxId()Identifier of the sandbox used to create the sandbox snapshot.LonggetSizeBytes()Size of the sandbox snapshot archive in bytes.DategetTimeCreated()The date and time the sandbox snapshot was created, in RFC 3339 format.DategetTimeExpires()The date and time the sandbox snapshot expires, in RFC 3339 format.DategetTimeUpdated()The date and time the sandbox snapshot was last updated, in RFC 3339 format.inthashCode()SandboxSnapshot.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
SandboxSnapshot
@Deprecated @ConstructorProperties({"id","displayName","projectId","sandboxId","runtime","expirationDuration","sizeBytes","lifecycleState","timeCreated","timeUpdated","timeExpires"}) public SandboxSnapshot(String id, String displayName, String projectId, String sandboxId, String runtime, String expirationDuration, Long sizeBytes, SandboxSnapshot.LifecycleState lifecycleState, Date timeCreated, Date timeUpdated, Date timeExpires)
Deprecated.
-
-
Method Detail
-
builder
public static SandboxSnapshot.Builder builder()
Create a new builder.
-
toBuilder
public SandboxSnapshot.Builder toBuilder()
-
getId
public String getId()
Sandbox snapshot identifier.- Returns:
- the value
-
getDisplayName
public String getDisplayName()
Display name for the sandbox snapshot.- Returns:
- the value
-
getProjectId
public String getProjectId()
Project identifier that the sandbox snapshot belongs to.- Returns:
- the value
-
getSandboxId
public String getSandboxId()
Identifier of the sandbox used to create the sandbox snapshot.- Returns:
- the value
-
getRuntime
public String getRuntime()
Runtime identifier for the sandbox snapshot.- Returns:
- the value
-
getExpirationDuration
public String getExpirationDuration()
Duration after creation before the sandbox snapshot expires, in ISO 8601 duration format.For example, P7D for 7 days or PT24H for 24 hours.
- Returns:
- the value
-
getSizeBytes
public Long getSizeBytes()
Size of the sandbox snapshot archive in bytes.- Returns:
- the value
-
getLifecycleState
public SandboxSnapshot.LifecycleState getLifecycleState()
The current state of the SandboxSnapshot.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time the sandbox snapshot was created, in RFC 3339 format.- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
The date and time the sandbox snapshot was last updated, in RFC 3339 format.- Returns:
- the value
-
getTimeExpires
public Date getTimeExpires()
The date and time the sandbox snapshot expires, in RFC 3339 format.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-