Package com.oracle.bmc.mysql.model
Class CreateReplicaDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.mysql.model.CreateReplicaDetails.Builder
-
- Enclosing class:
- CreateReplicaDetails
public static class CreateReplicaDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateReplicaDetails
build()
CreateReplicaDetails.Builder
copy(CreateReplicaDetails model)
CreateReplicaDetails.Builder
dbSystemId(String dbSystemId)
The OCID of the DB System the read replica is associated with.CreateReplicaDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateReplicaDetails.Builder
description(String description)
User provided description of the read replica.CreateReplicaDetails.Builder
displayName(String displayName)
The user-friendly name for the read replica.CreateReplicaDetails.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.CreateReplicaDetails.Builder
isDeleteProtected(Boolean isDeleteProtected)
Specifies whether the read replica can be deleted.CreateReplicaDetails.Builder
replicaOverrides(ReplicaOverrides replicaOverrides)
-
-
-
Method Detail
-
dbSystemId
public CreateReplicaDetails.Builder dbSystemId(String dbSystemId)
The OCID of the DB System the read replica is associated with.- Parameters:
dbSystemId
- the value to set- Returns:
- this builder
-
displayName
public CreateReplicaDetails.Builder displayName(String displayName)
The user-friendly name for the read replica.It does not have to be unique.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public CreateReplicaDetails.Builder description(String description)
User provided description of the read replica.- Parameters:
description
- the value to set- Returns:
- this builder
-
freeformTags
public CreateReplicaDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public CreateReplicaDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
isDeleteProtected
public CreateReplicaDetails.Builder isDeleteProtected(Boolean isDeleteProtected)
Specifies whether the read replica can be deleted.Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
- Parameters:
isDeleteProtected
- the value to set- Returns:
- this builder
-
replicaOverrides
public CreateReplicaDetails.Builder replicaOverrides(ReplicaOverrides replicaOverrides)
-
build
public CreateReplicaDetails build()
-
copy
public CreateReplicaDetails.Builder copy(CreateReplicaDetails model)
-
-