public static class CreateMonitoredResourceDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
public CreateMonitoredResourceDetails.Builder name(String name)
Monitored Resource Name.
name
- the value to setpublic CreateMonitoredResourceDetails.Builder displayName(String displayName)
Monitored resource display name.
displayName
- the value to setpublic CreateMonitoredResourceDetails.Builder type(String type)
Monitored Resource Type.
type
- the value to setpublic CreateMonitoredResourceDetails.Builder compartmentId(String compartmentId)
Compartment Identifier OCID.
compartmentId
- the value to setpublic CreateMonitoredResourceDetails.Builder hostName(String hostName)
Host name of the monitored resource.
hostName
- the value to setpublic 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.
externalId
- the value to setpublic CreateMonitoredResourceDetails.Builder managementAgentId(String managementAgentId)
Management Agent Identifier OCID.
managementAgentId
- the value to setpublic 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
resourceTimeZone
- the value to setpublic CreateMonitoredResourceDetails.Builder license(LicenseType license)
License edition of the monitored resource. If not provided the default license type for the compartment will be used.
license
- the value to setpublic CreateMonitoredResourceDetails.Builder properties(List<MonitoredResourceProperty> properties)
List of monitored resource properties.
properties
- the value to setpublic CreateMonitoredResourceDetails.Builder databaseConnectionDetails(ConnectionDetails databaseConnectionDetails)
public CreateMonitoredResourceDetails.Builder credentials(MonitoredResourceCredential credentials)
public CreateMonitoredResourceDetails.Builder aliases(MonitoredResourceAliasCredential aliases)
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.
additionalCredentials
- the value to setpublic 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.
additionalAliases
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic CreateMonitoredResourceDetails build()
public CreateMonitoredResourceDetails.Builder copy(CreateMonitoredResourceDetails model)
Copyright © 2016–2024. All rights reserved.