Package com.oracle.bmc.psql.model
Class DbSystem.Builder
- java.lang.Object
-
- com.oracle.bmc.psql.model.DbSystem.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbSystem.Builder
adminUsername(String adminUsername)
The database system administrator username.DbSystem
build()
DbSystem.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the database system.DbSystem.Builder
configId(String configId)
The OCID of the configuration associated with the database system.DbSystem.Builder
copy(DbSystem model)
DbSystem.Builder
dbVersion(String dbVersion)
The major and minor versions of the database system software.DbSystem.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.DbSystem.Builder
description(String description)
A description of the database system.DbSystem.Builder
displayName(String displayName)
A user-friendly display name for the database system.DbSystem.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.DbSystem.Builder
id(String id)
A unique identifier for the database system.DbSystem.Builder
instanceCount(Integer instanceCount)
Count of instances, or nodes, in the database system.DbSystem.Builder
instanceMemorySizeInGBs(Integer instanceMemorySizeInGBs)
The total amount of memory available to each database instance node, in gigabytes.DbSystem.Builder
instanceOcpuCount(Integer instanceOcpuCount)
The total number of OCPUs available to each database instance node.DbSystem.Builder
instances(List<DbInstance> instances)
The list of instances, or nodes, in the database system.DbSystem.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.DbSystem.Builder
lifecycleState(DbSystem.LifecycleState lifecycleState)
The current state of the database system.DbSystem.Builder
managementPolicy(ManagementPolicy managementPolicy)
DbSystem.Builder
networkDetails(NetworkDetails networkDetails)
DbSystem.Builder
shape(String shape)
The name of the shape for the database instance.DbSystem.Builder
source(SourceDetails source)
DbSystem.Builder
storageDetails(StorageDetails storageDetails)
DbSystem.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.DbSystem.Builder
systemType(DbSystem.SystemType systemType)
Type of the database system.DbSystem.Builder
timeCreated(Date timeCreated)
The date and time that the database system was created, expressed in RFC 3339 timestamp format.DbSystem.Builder
timeUpdated(Date timeUpdated)
The date and time that the database system was updated, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public DbSystem.Builder id(String id)
A unique identifier for the database system.Immutable on creation.
- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public DbSystem.Builder displayName(String displayName)
A user-friendly display name for the database system.Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public DbSystem.Builder description(String description)
A description of the database system.- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public DbSystem.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the database system.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public DbSystem.Builder timeCreated(Date timeCreated)
The date and time that the database system was created, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public DbSystem.Builder timeUpdated(Date timeUpdated)
The date and time that the database system was updated, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public DbSystem.Builder lifecycleState(DbSystem.LifecycleState lifecycleState)
The current state of the database system.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public DbSystem.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
adminUsername
public DbSystem.Builder adminUsername(String adminUsername)
The database system administrator username.- Parameters:
adminUsername
- the value to set- Returns:
- this builder
-
freeformTags
public DbSystem.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 DbSystem.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 DbSystem.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
systemType
public DbSystem.Builder systemType(DbSystem.SystemType systemType)
Type of the database system.- Parameters:
systemType
- the value to set- Returns:
- this builder
-
dbVersion
public DbSystem.Builder dbVersion(String dbVersion)
The major and minor versions of the database system software.- Parameters:
dbVersion
- the value to set- Returns:
- this builder
-
configId
public DbSystem.Builder configId(String configId)
The OCID of the configuration associated with the database system.- Parameters:
configId
- the value to set- Returns:
- this builder
-
shape
public DbSystem.Builder shape(String shape)
The name of the shape for the database instance.Example: VM.Standard.E4.Flex
- Parameters:
shape
- the value to set- Returns:
- this builder
-
instanceOcpuCount
public DbSystem.Builder instanceOcpuCount(Integer instanceOcpuCount)
The total number of OCPUs available to each database instance node.- Parameters:
instanceOcpuCount
- the value to set- Returns:
- this builder
-
instanceMemorySizeInGBs
public DbSystem.Builder instanceMemorySizeInGBs(Integer instanceMemorySizeInGBs)
The total amount of memory available to each database instance node, in gigabytes.- Parameters:
instanceMemorySizeInGBs
- the value to set- Returns:
- this builder
-
instanceCount
public DbSystem.Builder instanceCount(Integer instanceCount)
Count of instances, or nodes, in the database system.- Parameters:
instanceCount
- the value to set- Returns:
- this builder
-
instances
public DbSystem.Builder instances(List<DbInstance> instances)
The list of instances, or nodes, in the database system.- Parameters:
instances
- the value to set- Returns:
- this builder
-
storageDetails
public DbSystem.Builder storageDetails(StorageDetails storageDetails)
-
networkDetails
public DbSystem.Builder networkDetails(NetworkDetails networkDetails)
-
managementPolicy
public DbSystem.Builder managementPolicy(ManagementPolicy managementPolicy)
-
source
public DbSystem.Builder source(SourceDetails source)
-
build
public DbSystem build()
-
copy
public DbSystem.Builder copy(DbSystem model)
-
-