public static class MonitoredResource.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MonitoredResource.Builder |
aliases(MonitoredResourceAliasCredential aliases) |
MonitoredResource |
build() |
MonitoredResource.Builder |
compartmentId(String compartmentId)
Compartment Identifier
OCID.
|
MonitoredResource.Builder |
copy(MonitoredResource model) |
MonitoredResource.Builder |
credentials(MonitoredResourceCredential credentials) |
MonitoredResource.Builder |
databaseConnectionDetails(ConnectionDetails databaseConnectionDetails) |
MonitoredResource.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
MonitoredResource.Builder |
displayName(String displayName)
Monitored resource display name.
|
MonitoredResource.Builder |
externalId(String externalId)
The external resource identifier
OCID.
|
MonitoredResource.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
MonitoredResource.Builder |
hostName(String hostName)
Monitored resource host name.
|
MonitoredResource.Builder |
id(String id)
Monitored resource identifier
OCID.
|
MonitoredResource.Builder |
license(LicenseType license)
License edition of the monitored resource.
|
MonitoredResource.Builder |
lifecycleState(ResourceLifecycleState lifecycleState)
Lifecycle state of the monitored resource.
|
MonitoredResource.Builder |
managementAgentId(String managementAgentId)
Management Agent Identifier
OCID.
|
MonitoredResource.Builder |
name(String name)
Monitored resource name.
|
MonitoredResource.Builder |
properties(List<MonitoredResourceProperty> properties)
List of monitored resource properties.
|
MonitoredResource.Builder |
resourceCategory(ResourceCategory resourceCategory)
Resource Category to indicate the kind of resource type.
|
MonitoredResource.Builder |
resourceTimeZone(String resourceTimeZone)
Time zone in the form of tz database canonical zone ID.
|
MonitoredResource.Builder |
sourceType(SourceType sourceType)
Source type to indicate if the resource is stack monitoring discovered, OCI native
resource, etc.
|
MonitoredResource.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
MonitoredResource.Builder |
tenantId(String tenantId)
Tenancy Identifier
OCID.
|
MonitoredResource.Builder |
timeCreated(Date timeCreated)
The date and time when the monitored resource was created, expressed in RFC
3339 timestamp format.
|
MonitoredResource.Builder |
timeUpdated(Date timeUpdated)
The date and time when the monitored resource was last updated, expressed in RFC
3339 timestamp format.
|
MonitoredResource.Builder |
type(String type)
Monitored Resource Type.
|
public MonitoredResource.Builder id(String id)
Monitored resource identifier OCID.
id
- the value to setpublic MonitoredResource.Builder name(String name)
Monitored resource name.
name
- the value to setpublic MonitoredResource.Builder displayName(String displayName)
Monitored resource display name.
displayName
- the value to setpublic MonitoredResource.Builder type(String type)
Monitored Resource Type.
type
- the value to setpublic MonitoredResource.Builder compartmentId(String compartmentId)
Compartment Identifier OCID.
compartmentId
- the value to setpublic MonitoredResource.Builder tenantId(String tenantId)
Tenancy Identifier OCID.
tenantId
- the value to setpublic MonitoredResource.Builder hostName(String hostName)
Monitored resource host name.
hostName
- the value to setpublic MonitoredResource.Builder externalId(String externalId)
The external resource identifier OCID. External resource is any OCI resource which is not a Stack Monitoring service resource. Currently supports only following resource types - Container database, non-container database, pluggable database and OCI compute instance.
externalId
- the value to setpublic MonitoredResource.Builder managementAgentId(String managementAgentId)
Management Agent Identifier OCID.
managementAgentId
- the value to setpublic MonitoredResource.Builder resourceTimeZone(String resourceTimeZone)
Time zone in the form of tz database canonical zone ID.
resourceTimeZone
- the value to setpublic MonitoredResource.Builder timeCreated(Date timeCreated)
The date and time when the monitored resource was created, expressed in RFC 3339 timestamp format.
timeCreated
- the value to setpublic MonitoredResource.Builder timeUpdated(Date timeUpdated)
The date and time when the monitored resource was last updated, expressed in RFC 3339 timestamp format.
timeUpdated
- the value to setpublic MonitoredResource.Builder lifecycleState(ResourceLifecycleState lifecycleState)
Lifecycle state of the monitored resource.
lifecycleState
- the value to setpublic MonitoredResource.Builder license(LicenseType license)
License edition of the monitored resource.
license
- the value to setpublic MonitoredResource.Builder sourceType(SourceType sourceType)
Source type to indicate if the resource is stack monitoring discovered, OCI native resource, etc.
sourceType
- the value to setpublic MonitoredResource.Builder resourceCategory(ResourceCategory resourceCategory)
Resource Category to indicate the kind of resource type.
resourceCategory
- the value to setpublic MonitoredResource.Builder properties(List<MonitoredResourceProperty> properties)
List of monitored resource properties.
properties
- the value to setpublic MonitoredResource.Builder databaseConnectionDetails(ConnectionDetails databaseConnectionDetails)
public MonitoredResource.Builder credentials(MonitoredResourceCredential credentials)
public MonitoredResource.Builder aliases(MonitoredResourceAliasCredential aliases)
public MonitoredResource.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 MonitoredResource.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 MonitoredResource.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic MonitoredResource build()
public MonitoredResource.Builder copy(MonitoredResource model)
Copyright © 2016–2024. All rights reserved.