public static class MonitoredResourceType.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MonitoredResourceType |
build() |
MonitoredResourceType.Builder |
compartmentId(String compartmentId)
The OCID of the
tenancy containing the resource type.
|
MonitoredResourceType.Builder |
copy(MonitoredResourceType model) |
MonitoredResourceType.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
MonitoredResourceType.Builder |
description(String description)
A friendly description.
|
MonitoredResourceType.Builder |
displayName(String displayName)
Monitored resource type display name.
|
MonitoredResourceType.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
MonitoredResourceType.Builder |
id(String id)
Monitored resource type identifier
OCID.
|
MonitoredResourceType.Builder |
lifecycleState(ResourceTypeLifecycleState lifecycleState)
Lifecycle state of the monitored resource type.
|
MonitoredResourceType.Builder |
metadata(ResourceTypeMetadataDetails metadata) |
MonitoredResourceType.Builder |
metricNamespace(String metricNamespace)
Metric namespace for resource type.
|
MonitoredResourceType.Builder |
name(String name)
A unique monitored resource type name.
|
MonitoredResourceType.Builder |
resourceCategory(ResourceCategory resourceCategory)
Resource Category to indicate the kind of resource type.
|
MonitoredResourceType.Builder |
sourceType(SourceType sourceType)
Source type to indicate if the resource is stack monitoring discovered, OCI native
resource, etc.
|
MonitoredResourceType.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
MonitoredResourceType.Builder |
timeCreated(Date timeCreated)
The date and time when the monitored resource type was created, expressed in RFC
3339 timestamp format.
|
MonitoredResourceType.Builder |
timeUpdated(Date timeUpdated)
The date and time when the monitored resource was updated, expressed in RFC
3339 timestamp format.
|
public MonitoredResourceType.Builder id(String id)
Monitored resource type identifier OCID.
id
- the value to setpublic MonitoredResourceType.Builder name(String name)
A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.
name
- the value to setpublic MonitoredResourceType.Builder displayName(String displayName)
Monitored resource type display name.
displayName
- the value to setpublic MonitoredResourceType.Builder description(String description)
A friendly description.
description
- the value to setpublic MonitoredResourceType.Builder metricNamespace(String metricNamespace)
Metric namespace for resource type.
metricNamespace
- the value to setpublic MonitoredResourceType.Builder compartmentId(String compartmentId)
The OCID of the tenancy containing the resource type.
compartmentId
- the value to setpublic MonitoredResourceType.Builder lifecycleState(ResourceTypeLifecycleState lifecycleState)
Lifecycle state of the monitored resource type.
lifecycleState
- the value to setpublic MonitoredResourceType.Builder sourceType(SourceType sourceType)
Source type to indicate if the resource is stack monitoring discovered, OCI native resource, etc.
sourceType
- the value to setpublic MonitoredResourceType.Builder resourceCategory(ResourceCategory resourceCategory)
Resource Category to indicate the kind of resource type.
resourceCategory
- the value to setpublic MonitoredResourceType.Builder timeCreated(Date timeCreated)
The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format.
timeCreated
- the value to setpublic MonitoredResourceType.Builder timeUpdated(Date timeUpdated)
The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format.
timeUpdated
- the value to setpublic MonitoredResourceType.Builder metadata(ResourceTypeMetadataDetails metadata)
public MonitoredResourceType.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 MonitoredResourceType.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 MonitoredResourceType.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 MonitoredResourceType build()
public MonitoredResourceType.Builder copy(MonitoredResourceType model)
Copyright © 2016–2024. All rights reserved.