Class Configuration.Builder
- java.lang.Object
- 
- com.oracle.bmc.psql.model.Configuration.Builder
 
- 
- Enclosing class:
- Configuration
 
 public static class Configuration.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Configurationbuild()Configuration.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the configuration.Configuration.BuildercompatibleShapes(List<String> compatibleShapes)Indicates the collection of compatible shapes for this configuration.Configuration.BuilderconfigType(Configuration.ConfigType configType)The type of configuration.Configuration.BuilderconfigurationDetails(ConfigurationDetails configurationDetails)Configuration.Buildercopy(Configuration model)Configuration.BuilderdbVersion(String dbVersion)Version of the PostgreSQL database.Configuration.BuilderdefaultConfigId(String defaultConfigId)The Default configuration used for this configuration.Configuration.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Configuration.Builderdescription(String description)A description for the configuration.Configuration.BuilderdisplayName(String displayName)A user-friendly display name for the configuration.Configuration.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Configuration.Builderid(String id)A unique identifier for the configuration.Configuration.BuilderinstanceMemorySizeInGBs(Integer instanceMemorySizeInGBs)Memory size in gigabytes with 1GB increment.Configuration.BuilderinstanceOcpuCount(Integer instanceOcpuCount)CPU core count.Configuration.BuilderisFlexible(Boolean isFlexible)Whether the configuration supports flexible shapes.Configuration.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.Configuration.BuilderlifecycleState(Configuration.LifecycleState lifecycleState)The current state of the configuration.Configuration.Buildershape(String shape)The name of the shape for the configuration.Configuration.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.Configuration.BuildertimeCreated(Date timeCreated)The date and time that the configuration was created, expressed in RFC 3339 timestamp format.
 
- 
- 
- 
Method Detail- 
idpublic Configuration.Builder id(String id) A unique identifier for the configuration.Immutable on creation. - Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Configuration.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
 
 - 
descriptionpublic Configuration.Builder description(String description) A description for the configuration.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic Configuration.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the configuration.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic Configuration.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
 
 - 
lifecycleStatepublic Configuration.Builder lifecycleState(Configuration.LifecycleState lifecycleState) The current state of the configuration.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic Configuration.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
 
 - 
dbVersionpublic Configuration.Builder dbVersion(String dbVersion) Version of the PostgreSQL database.- Parameters:
- dbVersion- the value to set
- Returns:
- this builder
 
 - 
configTypepublic Configuration.Builder configType(Configuration.ConfigType configType) The type of configuration.Either user-created or a default configuration. - Parameters:
- configType- the value to set
- Returns:
- this builder
 
 - 
shapepublic Configuration.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
 
 - 
isFlexiblepublic Configuration.Builder isFlexible(Boolean isFlexible) Whether the configuration supports flexible shapes.- Parameters:
- isFlexible- the value to set
- Returns:
- this builder
 
 - 
instanceOcpuCountpublic Configuration.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
 
 - 
instanceMemorySizeInGBspublic Configuration.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
 
 - 
compatibleShapespublic Configuration.Builder compatibleShapes(List<String> compatibleShapes) Indicates the collection of compatible shapes for this configuration.- Parameters:
- compatibleShapes- the value to set
- Returns:
- this builder
 
 - 
defaultConfigIdpublic Configuration.Builder defaultConfigId(String defaultConfigId) The Default configuration used for this configuration.- Parameters:
- defaultConfigId- the value to set
- Returns:
- this builder
 
 - 
configurationDetailspublic Configuration.Builder configurationDetails(ConfigurationDetails configurationDetails) 
 - 
freeformTagspublic Configuration.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
 
 - 
definedTagspublic Configuration.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
 
 - 
systemTagspublic Configuration.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
 
 - 
buildpublic Configuration build() 
 - 
copypublic Configuration.Builder copy(Configuration model) 
 
- 
 
-