Class CloudListener.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.model.CloudListener.Builder
-
- Enclosing class:
- CloudListener
public static class CloudListener.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudListener.BuilderadditionalDetails(Map<String,String> additionalDetails)The additional details of the cloud listener defined in {“key”: “value”} format.CloudListener.BuilderadrHomeDirectory(String adrHomeDirectory)The directory that stores tracing and logging incidents when Automatic Diagnostic Repository (ADR) is enabled.CloudListenerbuild()CloudListener.BuildercloudConnectorId(String cloudConnectorId)The OCID of the cloud connector.CloudListener.BuildercloudDbHomeId(String cloudDbHomeId)The OCID of the cloud DB home.CloudListener.BuildercloudDbNodeId(String cloudDbNodeId)The OCID of the cloud DB node.CloudListener.BuildercloudDbSystemId(String cloudDbSystemId)The OCID of the cloud DB system that the listener is a part of.CloudListener.BuildercompartmentId(String compartmentId)The OCID of the compartment.CloudListener.BuildercomponentName(String componentName)The name of the cloud listener.CloudListener.Buildercopy(CloudListener model)CloudListener.BuilderdbaasId(String dbaasId)The OCID in DBaas service.CloudListener.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CloudListener.BuilderdisplayName(String displayName)The user-friendly name for the cloud listener.CloudListener.Builderendpoints(List<CloudListenerEndpoint> endpoints)The list of protocol addresses the listener is configured to listen on.CloudListener.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CloudListener.BuilderhostName(String hostName)The name of the host on which the cloud listener is running.CloudListener.Builderid(String id)The OCID of the cloud listener.CloudListener.BuilderlifecycleDetails(String lifecycleDetails)Additional information about the current lifecycle state.CloudListener.BuilderlifecycleState(CloudListener.LifecycleState lifecycleState)The current lifecycle state of the cloud listener.CloudListener.BuilderlistenerAlias(String listenerAlias)The listener alias.CloudListener.BuilderlistenerOraLocation(String listenerOraLocation)The location of the listener configuration file listener.ora.CloudListener.BuilderlistenerType(CloudListener.ListenerType listenerType)The type of listener.CloudListener.BuilderlogDirectory(String logDirectory)The destination directory of the listener log file.CloudListener.BuilderoracleHome(String oracleHome)The Oracle home location of the listener.CloudListener.BuilderservicedAsms(List<CloudServicedAsm> servicedAsms)The list of ASMs that are serviced by the listener.CloudListener.BuilderservicedDatabases(List<CloudListenerServicedDatabase> servicedDatabases)The list of databases that are serviced by the listener.CloudListener.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.CloudListener.BuildertimeCreated(Date timeCreated)The date and time the cloud listener was created.CloudListener.BuildertimeUpdated(Date timeUpdated)The date and time the cloud listener was last updated.CloudListener.BuildertraceDirectory(String traceDirectory)The destination directory of the listener trace file.CloudListener.Builderversion(String version)The listener version.
-
-
-
Method Detail
-
id
public CloudListener.Builder id(String id)
The OCID of the cloud listener.- Parameters:
id- the value to set- Returns:
- this builder
-
dbaasId
public CloudListener.Builder dbaasId(String dbaasId)
The OCID in DBaas service.- Parameters:
dbaasId- the value to set- Returns:
- this builder
-
displayName
public CloudListener.Builder displayName(String displayName)
The user-friendly name for the cloud listener.The name does not have to be unique.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
componentName
public CloudListener.Builder componentName(String componentName)
The name of the cloud listener.- Parameters:
componentName- the value to set- Returns:
- this builder
-
compartmentId
public CloudListener.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
cloudDbSystemId
public CloudListener.Builder cloudDbSystemId(String cloudDbSystemId)
The OCID of the cloud DB system that the listener is a part of.- Parameters:
cloudDbSystemId- the value to set- Returns:
- this builder
-
cloudConnectorId
public CloudListener.Builder cloudConnectorId(String cloudConnectorId)
The OCID of the cloud connector.- Parameters:
cloudConnectorId- the value to set- Returns:
- this builder
-
cloudDbNodeId
public CloudListener.Builder cloudDbNodeId(String cloudDbNodeId)
The OCID of the cloud DB node.- Parameters:
cloudDbNodeId- the value to set- Returns:
- this builder
-
cloudDbHomeId
public CloudListener.Builder cloudDbHomeId(String cloudDbHomeId)
The OCID of the cloud DB home.- Parameters:
cloudDbHomeId- the value to set- Returns:
- this builder
-
listenerAlias
public CloudListener.Builder listenerAlias(String listenerAlias)
The listener alias.- Parameters:
listenerAlias- the value to set- Returns:
- this builder
-
listenerType
public CloudListener.Builder listenerType(CloudListener.ListenerType listenerType)
The type of listener.- Parameters:
listenerType- the value to set- Returns:
- this builder
-
additionalDetails
public CloudListener.Builder additionalDetails(Map<String,String> additionalDetails)
The additional details of the cloud listener defined in {“key”: “value”} format.Example: {“bar-key”: “value”}
- Parameters:
additionalDetails- the value to set- Returns:
- this builder
-
lifecycleState
public CloudListener.Builder lifecycleState(CloudListener.LifecycleState lifecycleState)
The current lifecycle state of the cloud listener.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public CloudListener.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
listenerOraLocation
public CloudListener.Builder listenerOraLocation(String listenerOraLocation)
The location of the listener configuration file listener.ora.- Parameters:
listenerOraLocation- the value to set- Returns:
- this builder
-
oracleHome
public CloudListener.Builder oracleHome(String oracleHome)
The Oracle home location of the listener.- Parameters:
oracleHome- the value to set- Returns:
- this builder
-
hostName
public CloudListener.Builder hostName(String hostName)
The name of the host on which the cloud listener is running.- Parameters:
hostName- the value to set- Returns:
- this builder
-
adrHomeDirectory
public CloudListener.Builder adrHomeDirectory(String adrHomeDirectory)
The directory that stores tracing and logging incidents when Automatic Diagnostic Repository (ADR) is enabled.- Parameters:
adrHomeDirectory- the value to set- Returns:
- this builder
-
logDirectory
public CloudListener.Builder logDirectory(String logDirectory)
The destination directory of the listener log file.- Parameters:
logDirectory- the value to set- Returns:
- this builder
-
traceDirectory
public CloudListener.Builder traceDirectory(String traceDirectory)
The destination directory of the listener trace file.- Parameters:
traceDirectory- the value to set- Returns:
- this builder
-
version
public CloudListener.Builder version(String version)
The listener version.- Parameters:
version- the value to set- Returns:
- this builder
-
endpoints
public CloudListener.Builder endpoints(List<CloudListenerEndpoint> endpoints)
The list of protocol addresses the listener is configured to listen on.- Parameters:
endpoints- the value to set- Returns:
- this builder
-
servicedDatabases
public CloudListener.Builder servicedDatabases(List<CloudListenerServicedDatabase> servicedDatabases)
The list of databases that are serviced by the listener.- Parameters:
servicedDatabases- the value to set- Returns:
- this builder
-
servicedAsms
public CloudListener.Builder servicedAsms(List<CloudServicedAsm> servicedAsms)
The list of ASMs that are serviced by the listener.- Parameters:
servicedAsms- the value to set- Returns:
- this builder
-
timeCreated
public CloudListener.Builder timeCreated(Date timeCreated)
The date and time the cloud listener was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public CloudListener.Builder timeUpdated(Date timeUpdated)
The date and time the cloud listener was last updated.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
freeformTags
public CloudListener.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 CloudListener.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. Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public CloudListener.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. System tags can be viewed by users, but can only be created by the system.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public CloudListener build()
-
copy
public CloudListener.Builder copy(CloudListener model)
-
-