Package com.oracle.bmc.psql.model
Class DefaultConfiguration.Builder
- java.lang.Object
-
- com.oracle.bmc.psql.model.DefaultConfiguration.Builder
-
- Enclosing class:
- DefaultConfiguration
public static class DefaultConfiguration.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultConfigurationbuild()DefaultConfiguration.BuildercompatibleShapes(List<String> compatibleShapes)Indicates the collection of compatible shapes for this configuration.DefaultConfiguration.BuilderconfigurationDetails(DefaultConfigurationDetails configurationDetails)DefaultConfiguration.Buildercopy(DefaultConfiguration model)DefaultConfiguration.BuilderdbVersion(String dbVersion)Version of the PostgreSQL database.DefaultConfiguration.Builderdescription(String description)A description for the configuration.DefaultConfiguration.BuilderdisplayName(String displayName)A user-friendly display name for the configuration.DefaultConfiguration.Builderid(String id)A unique identifier for the configuration.DefaultConfiguration.BuilderinstanceMemorySizeInGBs(Integer instanceMemorySizeInGBs)Memory size in gigabytes with 1GB increment.DefaultConfiguration.BuilderinstanceOcpuCount(Integer instanceOcpuCount)CPU core count.DefaultConfiguration.BuilderisFlexible(Boolean isFlexible)True if the configuration supports flexible shapes, false otherwise.DefaultConfiguration.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.DefaultConfiguration.BuilderlifecycleState(DefaultConfiguration.LifecycleState lifecycleState)The current state of the configuration.DefaultConfiguration.Buildershape(String shape)The name of the shape for the configuration.DefaultConfiguration.BuildertimeCreated(Date timeCreated)The date and time that the configuration was created, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public DefaultConfiguration.Builder id(String id)
A unique identifier for the configuration.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public DefaultConfiguration.Builder displayName(String displayName)
A user-friendly display name for the configuration.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public DefaultConfiguration.Builder description(String description)
A description for the configuration.- Parameters:
description- the value to set- Returns:
- this builder
-
timeCreated
public DefaultConfiguration.Builder timeCreated(Date timeCreated)
The date and time that the configuration was created, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
lifecycleState
public DefaultConfiguration.Builder lifecycleState(DefaultConfiguration.LifecycleState lifecycleState)
The current state of the configuration.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public DefaultConfiguration.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
-
dbVersion
public DefaultConfiguration.Builder dbVersion(String dbVersion)
Version of the PostgreSQL database.- Parameters:
dbVersion- the value to set- Returns:
- this builder
-
shape
public DefaultConfiguration.Builder shape(String shape)
The name of the shape for the configuration.For multi-shape enabled configurations, it is set to PostgreSQL. Please use compatibleShapes property to get list of supported shapes for such configurations.
- Parameters:
shape- the value to set- Returns:
- this builder
-
isFlexible
public DefaultConfiguration.Builder isFlexible(Boolean isFlexible)
True if the configuration supports flexible shapes, false otherwise.- Parameters:
isFlexible- the value to set- Returns:
- this builder
-
instanceOcpuCount
public DefaultConfiguration.Builder instanceOcpuCount(Integer instanceOcpuCount)
CPU core count.Its value is set to 0 if configuration is for a flexible shape.
- Parameters:
instanceOcpuCount- the value to set- Returns:
- this builder
-
instanceMemorySizeInGBs
public DefaultConfiguration.Builder instanceMemorySizeInGBs(Integer instanceMemorySizeInGBs)
Memory size in gigabytes with 1GB increment.Its value is set to 0 if configuration is for a flexible shape.
- Parameters:
instanceMemorySizeInGBs- the value to set- Returns:
- this builder
-
compatibleShapes
public DefaultConfiguration.Builder compatibleShapes(List<String> compatibleShapes)
Indicates the collection of compatible shapes for this configuration.- Parameters:
compatibleShapes- the value to set- Returns:
- this builder
-
configurationDetails
public DefaultConfiguration.Builder configurationDetails(DefaultConfigurationDetails configurationDetails)
-
build
public DefaultConfiguration build()
-
copy
public DefaultConfiguration.Builder copy(DefaultConfiguration model)
-
-