Package com.oracle.bmc.database.model
Class DatabaseSnapshot.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.DatabaseSnapshot.Builder
-
- Enclosing class:
- DatabaseSnapshot
public static class DatabaseSnapshot.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseSnapshotbuild()DatabaseSnapshot.BuilderclusterId(String clusterId)The OCID of the VM cluster.DatabaseSnapshot.BuildercompartmentId(String compartmentId)The OCID of the compartment.DatabaseSnapshot.Buildercopy(DatabaseSnapshot model)DatabaseSnapshot.BuilderdatabaseId(String databaseId)The OCID of the Exadata Database.DatabaseSnapshot.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.DatabaseSnapshot.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.DatabaseSnapshot.Builderid(String id)The OCID of the Exadata Database Snapshot.DatabaseSnapshot.BuilderlifecycleDetails(String lifecycleDetails)Additional information about the current lifecycle state of the Exadata Database Snapshot.DatabaseSnapshot.BuilderlifecycleState(DatabaseSnapshot.LifecycleState lifecycleState)The current state of the Exadata Database Snapshot.DatabaseSnapshot.Buildername(String name)The user-friendly name for the Database Snapshot.DatabaseSnapshot.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.DatabaseSnapshot.BuildertimeCreated(Date timeCreated)The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format.
-
-
-
Method Detail
-
id
public DatabaseSnapshot.Builder id(String id)
The OCID of the Exadata Database Snapshot.- Parameters:
id- the value to set- Returns:
- this builder
-
lifecycleState
public DatabaseSnapshot.Builder lifecycleState(DatabaseSnapshot.LifecycleState lifecycleState)
The current state of the Exadata Database Snapshot.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
name
public DatabaseSnapshot.Builder name(String name)
The user-friendly name for the Database Snapshot.The name should be unique.
- Parameters:
name- the value to set- Returns:
- this builder
-
databaseId
public DatabaseSnapshot.Builder databaseId(String databaseId)
The OCID of the Exadata Database.- Parameters:
databaseId- the value to set- Returns:
- this builder
-
timeCreated
public DatabaseSnapshot.Builder timeCreated(Date timeCreated)
The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format.For example: 2023-06-27T21:10:29Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
lifecycleDetails
public DatabaseSnapshot.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state of the Exadata Database Snapshot.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
freeformTags
public DatabaseSnapshot.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public DatabaseSnapshot.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public DatabaseSnapshot.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
compartmentId
public DatabaseSnapshot.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
clusterId
public DatabaseSnapshot.Builder clusterId(String clusterId)
The OCID of the VM cluster.- Parameters:
clusterId- the value to set- Returns:
- this builder
-
build
public DatabaseSnapshot build()
-
copy
public DatabaseSnapshot.Builder copy(DatabaseSnapshot model)
-
-