Class DbNodeSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.DbNodeSummary.Builder
-
- Enclosing class:
- DbNodeSummary
public static class DbNodeSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbNodeSummary.BuilderadditionalDetails(String additionalDetails)Additional information about the planned maintenance.DbNodeSummary.BuilderbackupIpId(String backupIpId)The OCID of the backup IPv4 address associated with the database node.DbNodeSummary.BuilderbackupIpv6Id(String backupIpv6Id)The OCID of the backup IPv6 address associated with the database node.DbNodeSummary.BuilderbackupVnic2Id(String backupVnic2Id)The OCID of the second backup VNIC.DbNodeSummary.BuilderbackupVnicId(String backupVnicId)The OCID of the backup VNIC.DbNodeSummarybuild()DbNodeSummary.BuildercomputeCount(Integer computeCount)The number of compute servers for the DB system.DbNodeSummary.BuildercomputeModel(DbNodeSummary.ComputeModel computeModel)The compute model for Base Database Service.DbNodeSummary.Buildercopy(DbNodeSummary model)DbNodeSummary.BuildercpuCoreCount(Integer cpuCoreCount)The number of CPU cores enabled on the Db node.DbNodeSummary.BuilderdbNodeStorageSizeInGBs(Integer dbNodeStorageSizeInGBs)The allocated local node storage in GBs on the Db node.DbNodeSummary.BuilderdbServerId(String dbServerId)The OCID of the Exacc Db server associated with the database node.DbNodeSummary.BuilderdbSystemId(String dbSystemId)The OCID of the DB system.DbNodeSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.DbNodeSummary.BuilderfaultDomain(String faultDomain)The name of the Fault Domain the instance is contained in.DbNodeSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.DbNodeSummary.BuilderhostIpId(String hostIpId)The OCID of the host IPv4 address associated with the database node.DbNodeSummary.BuilderhostIpv6Id(String hostIpv6Id)The OCID of the host IPv6 address associated with the database node.DbNodeSummary.Builderhostname(String hostname)The host name for the database node.DbNodeSummary.Builderid(String id)The OCID of the database node.DbNodeSummary.BuilderlifecycleDetails(String lifecycleDetails)Information about the current lifecycle state.DbNodeSummary.BuilderlifecycleState(DbNodeSummary.LifecycleState lifecycleState)The current state of the database node.DbNodeSummary.BuildermaintenanceType(DbNodeSummary.MaintenanceType maintenanceType)The type of database node maintenance.DbNodeSummary.BuildermemorySizeInGBs(Integer memorySizeInGBs)The allocated memory in GBs on the Db node.DbNodeSummary.BuildersoftwareStorageSizeInGB(Integer softwareStorageSizeInGB)The size (in GB) of the block storage volume allocation for the DB system.DbNodeSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.DbNodeSummary.BuildertimeCreated(Date timeCreated)The date and time that the database node was created.DbNodeSummary.BuildertimeMaintenanceWindowEnd(Date timeMaintenanceWindowEnd)End date and time of maintenance window.DbNodeSummary.BuildertimeMaintenanceWindowStart(Date timeMaintenanceWindowStart)Start date and time of maintenance window.DbNodeSummary.BuildertotalCpuCoreCount(Integer totalCpuCoreCount)The total number of CPU cores reserved on the Db node.DbNodeSummary.Buildervnic2Id(String vnic2Id)The OCID of the second VNIC.DbNodeSummary.BuildervnicId(String vnicId)The OCID of the VNIC.
-
-
-
Method Detail
-
id
public DbNodeSummary.Builder id(String id)
The OCID of the database node.- Parameters:
id- the value to set- Returns:
- this builder
-
dbSystemId
public DbNodeSummary.Builder dbSystemId(String dbSystemId)
The OCID of the DB system.- Parameters:
dbSystemId- the value to set- Returns:
- this builder
-
vnicId
public DbNodeSummary.Builder vnicId(String vnicId)
The OCID of the VNIC.- Parameters:
vnicId- the value to set- Returns:
- this builder
-
backupVnicId
public DbNodeSummary.Builder backupVnicId(String backupVnicId)
The OCID of the backup VNIC.- Parameters:
backupVnicId- the value to set- Returns:
- this builder
-
hostIpId
public DbNodeSummary.Builder hostIpId(String hostIpId)
The OCID of the host IPv4 address associated with the database node.Use this OCID with either the
getPrivateIpor thegetPublicIpByPrivateIpIdAPI to get the IPv4 address needed to make a database connection.*Note:** Applies only to Exadata Cloud Service.
- Parameters:
hostIpId- the value to set- Returns:
- this builder
-
backupIpId
public DbNodeSummary.Builder backupIpId(String backupIpId)
The OCID of the backup IPv4 address associated with the database node.Use this OCID with either the
getPrivateIpor thegetPublicIpByPrivateIpIdAPI to get the IPv4 address needed to make a database connection.*Note:** Applies only to Exadata Cloud Service.
- Parameters:
backupIpId- the value to set- Returns:
- this builder
-
hostIpv6Id
public DbNodeSummary.Builder hostIpv6Id(String hostIpv6Id)
The OCID of the host IPv6 address associated with the database node.Use this OCID with the
getIpv6API to get the IPv6 address needed to make a database connection.*Note:** Applies only to Exadata Cloud Service.
- Parameters:
hostIpv6Id- the value to set- Returns:
- this builder
-
backupIpv6Id
public DbNodeSummary.Builder backupIpv6Id(String backupIpv6Id)
The OCID of the backup IPv6 address associated with the database node.Use this OCID with the
getIpv6API to get the IPv6 address needed to make a database connection.*Note:** Applies only to Exadata Cloud Service.
- Parameters:
backupIpv6Id- the value to set- Returns:
- this builder
-
vnic2Id
public DbNodeSummary.Builder vnic2Id(String vnic2Id)
The OCID of the second VNIC.*Note:** Applies only to Exadata Cloud Service.
- Parameters:
vnic2Id- the value to set- Returns:
- this builder
-
backupVnic2Id
public DbNodeSummary.Builder backupVnic2Id(String backupVnic2Id)
The OCID of the second backup VNIC.*Note:** Applies only to Exadata Cloud Service.
- Parameters:
backupVnic2Id- the value to set- Returns:
- this builder
-
lifecycleState
public DbNodeSummary.Builder lifecycleState(DbNodeSummary.LifecycleState lifecycleState)
The current state of the database node.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
hostname
public DbNodeSummary.Builder hostname(String hostname)
The host name for the database node.- Parameters:
hostname- the value to set- Returns:
- this builder
-
faultDomain
public DbNodeSummary.Builder faultDomain(String faultDomain)
The name of the Fault Domain the instance is contained in.- Parameters:
faultDomain- the value to set- Returns:
- this builder
-
timeCreated
public DbNodeSummary.Builder timeCreated(Date timeCreated)
The date and time that the database node was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
softwareStorageSizeInGB
public DbNodeSummary.Builder softwareStorageSizeInGB(Integer softwareStorageSizeInGB)
The size (in GB) of the block storage volume allocation for the DB system.This attribute applies only for virtual machine DB systems.
- Parameters:
softwareStorageSizeInGB- the value to set- Returns:
- this builder
-
maintenanceType
public DbNodeSummary.Builder maintenanceType(DbNodeSummary.MaintenanceType maintenanceType)
The type of database node maintenance.- Parameters:
maintenanceType- the value to set- Returns:
- this builder
-
timeMaintenanceWindowStart
public DbNodeSummary.Builder timeMaintenanceWindowStart(Date timeMaintenanceWindowStart)
Start date and time of maintenance window.- Parameters:
timeMaintenanceWindowStart- the value to set- Returns:
- this builder
-
timeMaintenanceWindowEnd
public DbNodeSummary.Builder timeMaintenanceWindowEnd(Date timeMaintenanceWindowEnd)
End date and time of maintenance window.- Parameters:
timeMaintenanceWindowEnd- the value to set- Returns:
- this builder
-
additionalDetails
public DbNodeSummary.Builder additionalDetails(String additionalDetails)
Additional information about the planned maintenance.- Parameters:
additionalDetails- the value to set- Returns:
- this builder
-
freeformTags
public DbNodeSummary.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 DbNodeSummary.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 DbNodeSummary.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
-
lifecycleDetails
public DbNodeSummary.Builder lifecycleDetails(String lifecycleDetails)
Information about the current lifecycle state.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
cpuCoreCount
public DbNodeSummary.Builder cpuCoreCount(Integer cpuCoreCount)
The number of CPU cores enabled on the Db node.- Parameters:
cpuCoreCount- the value to set- Returns:
- this builder
-
memorySizeInGBs
public DbNodeSummary.Builder memorySizeInGBs(Integer memorySizeInGBs)
The allocated memory in GBs on the Db node.- Parameters:
memorySizeInGBs- the value to set- Returns:
- this builder
-
dbNodeStorageSizeInGBs
public DbNodeSummary.Builder dbNodeStorageSizeInGBs(Integer dbNodeStorageSizeInGBs)
The allocated local node storage in GBs on the Db node.- Parameters:
dbNodeStorageSizeInGBs- the value to set- Returns:
- this builder
-
totalCpuCoreCount
public DbNodeSummary.Builder totalCpuCoreCount(Integer totalCpuCoreCount)
The total number of CPU cores reserved on the Db node.- Parameters:
totalCpuCoreCount- the value to set- Returns:
- this builder
-
dbServerId
public DbNodeSummary.Builder dbServerId(String dbServerId)
The OCID of the Exacc Db server associated with the database node.- Parameters:
dbServerId- the value to set- Returns:
- this builder
-
computeModel
public DbNodeSummary.Builder computeModel(DbNodeSummary.ComputeModel computeModel)
The compute model for Base Database Service.This is required if using the computeCount parameter. If using cpuCoreCount then it is an error to specify computeModel to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.
- Parameters:
computeModel- the value to set- Returns:
- this builder
-
computeCount
public DbNodeSummary.Builder computeCount(Integer computeCount)
The number of compute servers for the DB system.- Parameters:
computeCount- the value to set- Returns:
- this builder
-
build
public DbNodeSummary build()
-
copy
public DbNodeSummary.Builder copy(DbNodeSummary model)
-
-