Class CreateMonitoredResourceDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.model.CreateMonitoredResourceDetails.Builder
-
- Enclosing class:
- CreateMonitoredResourceDetails
public static class CreateMonitoredResourceDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
public CreateMonitoredResourceDetails.Builder name(String name)
Monitored Resource Name.- Parameters:
name
- the value to set- Returns:
- this builder
-
displayName
public CreateMonitoredResourceDetails.Builder displayName(String displayName)
Monitored resource display name.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
type
public CreateMonitoredResourceDetails.Builder type(String type)
Monitored Resource Type.- Parameters:
type
- the value to set- Returns:
- this builder
-
compartmentId
public CreateMonitoredResourceDetails.Builder compartmentId(String compartmentId)
Compartment Identifier OCID.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
hostName
public CreateMonitoredResourceDetails.Builder hostName(String hostName)
Host name of the monitored resource.- Parameters:
hostName
- the value to set- Returns:
- this builder
-
externalId
public CreateMonitoredResourceDetails.Builder externalId(String externalId)
External resource is any OCI resource identifier OCID which is not a Stack Monitoring service resource.Currently supports only OCI compute instance.
- Parameters:
externalId
- the value to set- Returns:
- this builder
-
managementAgentId
public CreateMonitoredResourceDetails.Builder managementAgentId(String managementAgentId)
Management Agent Identifier OCID.- Parameters:
managementAgentId
- the value to set- Returns:
- this builder
-
resourceTimeZone
public CreateMonitoredResourceDetails.Builder resourceTimeZone(String resourceTimeZone)
Time zone in the form of tz database canonical zone ID.Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
- Parameters:
resourceTimeZone
- the value to set- Returns:
- this builder
-
license
public CreateMonitoredResourceDetails.Builder license(LicenseType license)
License edition of the monitored resource.If not provided the default license type for the compartment will be used.
- Parameters:
license
- the value to set- Returns:
- this builder
-
properties
public CreateMonitoredResourceDetails.Builder properties(List<MonitoredResourceProperty> properties)
List of monitored resource properties.- Parameters:
properties
- the value to set- Returns:
- this builder
-
databaseConnectionDetails
public CreateMonitoredResourceDetails.Builder databaseConnectionDetails(ConnectionDetails databaseConnectionDetails)
-
credentials
public CreateMonitoredResourceDetails.Builder credentials(MonitoredResourceCredential credentials)
-
aliases
public CreateMonitoredResourceDetails.Builder aliases(MonitoredResourceAliasCredential aliases)
-
additionalCredentials
public CreateMonitoredResourceDetails.Builder additionalCredentials(List<MonitoredResourceCredential> additionalCredentials)
List of MonitoredResourceCredentials.This property complements the existing “credentials” property by allowing user to specify more than one credential. If both “credential” and “additionalCredentials” are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of “credentials” and “additionalCredentials”, an error will be thrown.
- Parameters:
additionalCredentials
- the value to set- Returns:
- this builder
-
additionalAliases
public CreateMonitoredResourceDetails.Builder additionalAliases(List<MonitoredResourceAliasCredential> additionalAliases)
List of MonitoredResourceAliasCredentials.This property complements the existing “aliases” property by allowing user to specify more than one credential alias. If both “aliases” and “additionalAliases” are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of “alias” and “additionalAliases”, an error will be thrown.
- Parameters:
additionalAliases
- the value to set- Returns:
- this builder
-
freeformTags
public CreateMonitoredResourceDetails.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 CreateMonitoredResourceDetails.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
-
build
public CreateMonitoredResourceDetails build()
-
copy
public CreateMonitoredResourceDetails.Builder copy(CreateMonitoredResourceDetails model)
-
-