Package com.oracle.bmc.datasafe.model
Class TargetDatabase.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.TargetDatabase.Builder
-
- Enclosing class:
- TargetDatabase
public static class TargetDatabase.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetDatabase.BuilderassociatedResourceIds(List<String> associatedResourceIds)The OCIDs of associated resources like database, Data Safe private endpoint etc.TargetDatabasebuild()TargetDatabase.BuildercompartmentId(String compartmentId)The OCID of the compartment which contains the Data Safe target database.TargetDatabase.BuilderconnectionOption(ConnectionOption connectionOption)TargetDatabase.Buildercopy(TargetDatabase model)TargetDatabase.Buildercredentials(Credentials credentials)TargetDatabase.BuilderdatabaseDetails(DatabaseDetails databaseDetails)TargetDatabase.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.TargetDatabase.Builderdescription(String description)The description of the target database in Data Safe.TargetDatabase.BuilderdisplayName(String displayName)The display name of the target database in Data Safe.TargetDatabase.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.TargetDatabase.Builderid(String id)The OCID of the Data Safe target database.TargetDatabase.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the target database in Data Safe.TargetDatabase.BuilderlifecycleState(TargetDatabaseLifecycleState lifecycleState)The current state of the target database in Data Safe.TargetDatabase.BuilderpeerTargetDatabases(List<PeerTargetDatabase> peerTargetDatabases)The OCIDs of associated resources like database, Data Safe private endpoint, etc.TargetDatabase.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.TargetDatabase.BuildertimeCreated(Date timeCreated)The date and time of the target database registration and creation in Data Safe.TargetDatabase.BuildertimeUpdated(Date timeUpdated)The date and time of the target database update in Data Safe.TargetDatabase.BuildertlsConfig(TlsConfig tlsConfig)
-
-
-
Method Detail
-
compartmentId
public TargetDatabase.Builder compartmentId(String compartmentId)
The OCID of the compartment which contains the Data Safe target database.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
id
public TargetDatabase.Builder id(String id)
The OCID of the Data Safe target database.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public TargetDatabase.Builder displayName(String displayName)
The display name of the target database in Data Safe.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public TargetDatabase.Builder description(String description)
The description of the target database in Data Safe.- Parameters:
description- the value to set- Returns:
- this builder
-
databaseDetails
public TargetDatabase.Builder databaseDetails(DatabaseDetails databaseDetails)
-
credentials
public TargetDatabase.Builder credentials(Credentials credentials)
-
tlsConfig
public TargetDatabase.Builder tlsConfig(TlsConfig tlsConfig)
-
connectionOption
public TargetDatabase.Builder connectionOption(ConnectionOption connectionOption)
-
associatedResourceIds
public TargetDatabase.Builder associatedResourceIds(List<String> associatedResourceIds)
The OCIDs of associated resources like database, Data Safe private endpoint etc.- Parameters:
associatedResourceIds- the value to set- Returns:
- this builder
-
lifecycleState
public TargetDatabase.Builder lifecycleState(TargetDatabaseLifecycleState lifecycleState)
The current state of the target database in Data Safe.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public TargetDatabase.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the target database in Data Safe.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
timeCreated
public TargetDatabase.Builder timeCreated(Date timeCreated)
The date and time of the target database registration and creation in Data Safe.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public TargetDatabase.Builder timeUpdated(Date timeUpdated)
The date and time of the target database update in Data Safe.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
peerTargetDatabases
public TargetDatabase.Builder peerTargetDatabases(List<PeerTargetDatabase> peerTargetDatabases)
The OCIDs of associated resources like database, Data Safe private endpoint, etc.- Parameters:
peerTargetDatabases- the value to set- Returns:
- this builder
-
freeformTags
public TargetDatabase.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 TargetDatabase.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 Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public TargetDatabase.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. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public TargetDatabase build()
-
copy
public TargetDatabase.Builder copy(TargetDatabase model)
-
-