Package com.oracle.bmc.psql.model
Class ConfigurationSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.psql.model.ConfigurationSummary.Builder
-
- Enclosing class:
- ConfigurationSummary
public static class ConfigurationSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationSummarybuild()ConfigurationSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the configuration.ConfigurationSummary.BuildercompatibleShapes(List<String> compatibleShapes)Indicates the collection of compatible shapes for this configuration.ConfigurationSummary.Buildercopy(ConfigurationSummary model)ConfigurationSummary.BuilderdbVersion(String dbVersion)Version of the PostgreSQL database.ConfigurationSummary.BuilderdefaultConfigId(String defaultConfigId)The Default configuration used for this configuration.ConfigurationSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ConfigurationSummary.BuilderdisplayName(String displayName)A user-friendly display name for the configuration.ConfigurationSummary.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ConfigurationSummary.Builderid(String id)The OCID of the configuration.ConfigurationSummary.BuilderinstanceMemorySizeInGBs(Integer instanceMemorySizeInGBs)Memory size in gigabytes with 1GB increment.ConfigurationSummary.BuilderinstanceOcpuCount(Integer instanceOcpuCount)CPU core count.ConfigurationSummary.BuilderisFlexible(Boolean isFlexible)Whether the configuration supports flexible shapes.ConfigurationSummary.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.ConfigurationSummary.BuilderlifecycleState(Configuration.LifecycleState lifecycleState)The current state of the configuration.ConfigurationSummary.Buildershape(String shape)The name of the shape for the configuration.ConfigurationSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.ConfigurationSummary.BuildertimeCreated(Date timeCreated)The date and time the configuration was created, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public ConfigurationSummary.Builder id(String id)
The OCID of the configuration.Immutable on creation.
- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public ConfigurationSummary.Builder displayName(String displayName)
A user-friendly display name for the configuration.Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public ConfigurationSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the configuration.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
timeCreated
public ConfigurationSummary.Builder timeCreated(Date timeCreated)
The date and time 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 ConfigurationSummary.Builder lifecycleState(Configuration.LifecycleState lifecycleState)
The current state of the configuration.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public ConfigurationSummary.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 ConfigurationSummary.Builder dbVersion(String dbVersion)
Version of the PostgreSQL database.- Parameters:
dbVersion- the value to set- Returns:
- this builder
-
shape
public ConfigurationSummary.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 ConfigurationSummary.Builder isFlexible(Boolean isFlexible)
Whether the configuration supports flexible shapes.- Parameters:
isFlexible- the value to set- Returns:
- this builder
-
instanceOcpuCount
public ConfigurationSummary.Builder instanceOcpuCount(Integer instanceOcpuCount)
CPU core count.It's value is set to 0 if configuration is for a flexible shape.
- Parameters:
instanceOcpuCount- the value to set- Returns:
- this builder
-
instanceMemorySizeInGBs
public ConfigurationSummary.Builder instanceMemorySizeInGBs(Integer instanceMemorySizeInGBs)
Memory size in gigabytes with 1GB increment.It's value is set to 0 if configuration is for a flexible shape.
- Parameters:
instanceMemorySizeInGBs- the value to set- Returns:
- this builder
-
compatibleShapes
public ConfigurationSummary.Builder compatibleShapes(List<String> compatibleShapes)
Indicates the collection of compatible shapes for this configuration.- Parameters:
compatibleShapes- the value to set- Returns:
- this builder
-
defaultConfigId
public ConfigurationSummary.Builder defaultConfigId(String defaultConfigId)
The Default configuration used for this configuration.- Parameters:
defaultConfigId- the value to set- Returns:
- this builder
-
freeformTags
public ConfigurationSummary.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 ConfigurationSummary.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 ConfigurationSummary.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
-
build
public ConfigurationSummary build()
-
copy
public ConfigurationSummary.Builder copy(ConfigurationSummary model)
-
-