Class DbSystemSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.mysql.model.DbSystemSummary.Builder
-
- Enclosing class:
- DbSystemSummary
public static class DbSystemSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbSystemSummary.Builder
accessMode(DbSystem.AccessMode accessMode)
The access mode indicating if the database access is unrestricted (to all MySQL user accounts), or restricted (to only certain users with specific privileges): - UNRESTRICTED: the access to the database is not restricted; - RESTRICTED: the access is allowed only to users with specific privileges; RESTRICTED will correspond to setting the MySQL system variable offline_mode to ON.DbSystemSummary.Builder
availabilityDomain(String availabilityDomain)
The availability domain on which to deploy the Read/Write endpoint.DbSystemSummary.Builder
backupPolicy(BackupPolicy backupPolicy)
DbSystemSummary
build()
DbSystemSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment the DB System belongs in.DbSystemSummary.Builder
copy(DbSystemSummary model)
DbSystemSummary.Builder
crashRecovery(CrashRecoveryStatus crashRecovery)
Whether to run the DB System with InnoDB Redo Logs and the Double Write Buffer enabled or disabled, and whether to enable or disable syncing of the Binary Logs.DbSystemSummary.Builder
currentPlacement(DbSystemPlacement currentPlacement)
DbSystemSummary.Builder
databaseManagement(DatabaseManagementStatus databaseManagement)
Whether to enable monitoring via the Database Management service.DbSystemSummary.Builder
databaseMode(DbSystem.DatabaseMode databaseMode)
The database mode indicating the types of statements that are allowed to run in the DB system.DbSystemSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.DbSystemSummary.Builder
deletionPolicy(DeletionPolicyDetails deletionPolicy)
DbSystemSummary.Builder
description(String description)
User-provided data about the DB System.DbSystemSummary.Builder
displayName(String displayName)
The user-friendly name for the DB System.DbSystemSummary.Builder
endpoints(List<DbSystemEndpoint> endpoints)
The network endpoints available for this DB System.DbSystemSummary.Builder
faultDomain(String faultDomain)
The fault domain on which to deploy the Read/Write endpoint.DbSystemSummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.DbSystemSummary.Builder
heatWaveCluster(HeatWaveClusterSummary heatWaveCluster)
DbSystemSummary.Builder
id(String id)
The OCID of the DB System.DbSystemSummary.Builder
isHeatWaveClusterAttached(Boolean isHeatWaveClusterAttached)
If the DB System has a HeatWave Cluster attached.DbSystemSummary.Builder
isHighlyAvailable(Boolean isHighlyAvailable)
Specifies if the DB System is highly available.DbSystemSummary.Builder
lifecycleState(DbSystem.LifecycleState lifecycleState)
The current state of the DB System.DbSystemSummary.Builder
mysqlVersion(String mysqlVersion)
Name of the MySQL Version in use for the DB System.DbSystemSummary.Builder
readEndpoint(ReadEndpointDetails readEndpoint)
DbSystemSummary.Builder
shapeName(String shapeName)
The shape of the primary instances of the DB System.DbSystemSummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.DbSystemSummary.Builder
timeCreated(Date timeCreated)
The date and time the DB System was created.DbSystemSummary.Builder
timeUpdated(Date timeUpdated)
The time the DB System was last updated.
-
-
-
Method Detail
-
id
public DbSystemSummary.Builder id(String id)
The OCID of the DB System.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public DbSystemSummary.Builder displayName(String displayName)
The user-friendly name for the DB System.It does not have to be unique.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public DbSystemSummary.Builder description(String description)
User-provided data about the DB System.- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public DbSystemSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment the DB System belongs in.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
isHighlyAvailable
public DbSystemSummary.Builder isHighlyAvailable(Boolean isHighlyAvailable)
Specifies if the DB System is highly available.- Parameters:
isHighlyAvailable
- the value to set- Returns:
- this builder
-
currentPlacement
public DbSystemSummary.Builder currentPlacement(DbSystemPlacement currentPlacement)
-
isHeatWaveClusterAttached
public DbSystemSummary.Builder isHeatWaveClusterAttached(Boolean isHeatWaveClusterAttached)
If the DB System has a HeatWave Cluster attached.- Parameters:
isHeatWaveClusterAttached
- the value to set- Returns:
- this builder
-
heatWaveCluster
public DbSystemSummary.Builder heatWaveCluster(HeatWaveClusterSummary heatWaveCluster)
-
availabilityDomain
public DbSystemSummary.Builder availabilityDomain(String availabilityDomain)
The availability domain on which to deploy the Read/Write endpoint.This defines the preferred primary instance.
In a failover scenario, the Read/Write endpoint is redirected to one of the other availability domains and the MySQL instance in that domain is promoted to the primary instance. This redirection does not affect the IP address of the DB System in any way.
For a standalone DB System, this defines the availability domain in which the DB System is placed.
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
faultDomain
public DbSystemSummary.Builder faultDomain(String faultDomain)
The fault domain on which to deploy the Read/Write endpoint.This defines the preferred primary instance.
In a failover scenario, the Read/Write endpoint is redirected to one of the other fault domains and the MySQL instance in that domain is promoted to the primary instance. This redirection does not affect the IP address of the DB System in any way.
For a standalone DB System, this defines the fault domain in which the DB System is placed.
- Parameters:
faultDomain
- the value to set- Returns:
- this builder
-
endpoints
public DbSystemSummary.Builder endpoints(List<DbSystemEndpoint> endpoints)
The network endpoints available for this DB System.- Parameters:
endpoints
- the value to set- Returns:
- this builder
-
lifecycleState
public DbSystemSummary.Builder lifecycleState(DbSystem.LifecycleState lifecycleState)
The current state of the DB System.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
mysqlVersion
public DbSystemSummary.Builder mysqlVersion(String mysqlVersion)
Name of the MySQL Version in use for the DB System.- Parameters:
mysqlVersion
- the value to set- Returns:
- this builder
-
timeCreated
public DbSystemSummary.Builder timeCreated(Date timeCreated)
The date and time the DB System was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public DbSystemSummary.Builder timeUpdated(Date timeUpdated)
The time the DB System was last updated.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
deletionPolicy
public DbSystemSummary.Builder deletionPolicy(DeletionPolicyDetails deletionPolicy)
-
freeformTags
public DbSystemSummary.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 DbSystemSummary.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
-
systemTags
public DbSystemSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
backupPolicy
public DbSystemSummary.Builder backupPolicy(BackupPolicy backupPolicy)
-
shapeName
public DbSystemSummary.Builder shapeName(String shapeName)
The shape of the primary instances of the DB System.The shape determines resources allocated to a DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use (the
listShapes
operation.- Parameters:
shapeName
- the value to set- Returns:
- this builder
-
crashRecovery
public DbSystemSummary.Builder crashRecovery(CrashRecoveryStatus crashRecovery)
Whether to run the DB System with InnoDB Redo Logs and the Double Write Buffer enabled or disabled, and whether to enable or disable syncing of the Binary Logs.- Parameters:
crashRecovery
- the value to set- Returns:
- this builder
-
databaseManagement
public DbSystemSummary.Builder databaseManagement(DatabaseManagementStatus databaseManagement)
Whether to enable monitoring via the Database Management service.- Parameters:
databaseManagement
- the value to set- Returns:
- this builder
-
databaseMode
public DbSystemSummary.Builder databaseMode(DbSystem.DatabaseMode databaseMode)
The database mode indicating the types of statements that are allowed to run in the DB system.This mode applies only to statements run by user connections. Replicated write statements continue to be allowed regardless of the DatabaseMode. - READ_WRITE: allow running read and write statements on the DB system; - READ_ONLY: only allow running read statements on the DB system.
- Parameters:
databaseMode
- the value to set- Returns:
- this builder
-
accessMode
public DbSystemSummary.Builder accessMode(DbSystem.AccessMode accessMode)
The access mode indicating if the database access is unrestricted (to all MySQL user accounts), or restricted (to only certain users with specific privileges): - UNRESTRICTED: the access to the database is not restricted; - RESTRICTED: the access is allowed only to users with specific privileges; RESTRICTED will correspond to setting the MySQL system variable offline_mode to ON.- Parameters:
accessMode
- the value to set- Returns:
- this builder
-
readEndpoint
public DbSystemSummary.Builder readEndpoint(ReadEndpointDetails readEndpoint)
-
build
public DbSystemSummary build()
-
copy
public DbSystemSummary.Builder copy(DbSystemSummary model)
-
-