public static class MonitoredInstance.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MonitoredInstance |
build() |
MonitoredInstance.Builder |
compartmentId(String compartmentId)
Compartment Identifier
OCID
|
MonitoredInstance.Builder |
copy(MonitoredInstance model) |
MonitoredInstance.Builder |
displayName(String displayName)
A user-friendly name of the monitored instance.
|
MonitoredInstance.Builder |
instanceId(String instanceId)
The OCID of
monitored instance.
|
MonitoredInstance.Builder |
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.
|
MonitoredInstance.Builder |
lifecycleState(MonitoredInstance.LifecycleState lifecycleState)
The current state of the monitored instance.
|
MonitoredInstance.Builder |
managementAgentId(String managementAgentId)
Management Agent Identifier
OCID.
|
MonitoredInstance.Builder |
monitoringState(MonitoredInstance.MonitoringState monitoringState)
Monitoring status.
|
MonitoredInstance.Builder |
timeCreated(Date timeCreated)
The time the MonitoredInstance was created.
|
MonitoredInstance.Builder |
timeUpdated(Date timeUpdated)
The time the MonitoredInstance was updated.
|
public MonitoredInstance.Builder instanceId(String instanceId)
The OCID of monitored instance.
instanceId
- the value to setpublic MonitoredInstance.Builder compartmentId(String compartmentId)
Compartment Identifier OCID
compartmentId
- the value to setpublic MonitoredInstance.Builder displayName(String displayName)
A user-friendly name of the monitored instance. It is binded to Compute Instance. DisplayName is fetched from Core Service API.
displayName
- the value to setpublic MonitoredInstance.Builder managementAgentId(String managementAgentId)
Management Agent Identifier OCID. Used to invoke manage operations on Management Agent Cloud Service.
managementAgentId
- the value to setpublic MonitoredInstance.Builder timeCreated(Date timeCreated)
The time the MonitoredInstance was created. An RFC3339 formatted datetime string
timeCreated
- the value to setpublic MonitoredInstance.Builder timeUpdated(Date timeUpdated)
The time the MonitoredInstance was updated. An RFC3339 formatted datetime string
timeUpdated
- the value to setpublic MonitoredInstance.Builder monitoringState(MonitoredInstance.MonitoringState monitoringState)
Monitoring status. Can be either enabled or disabled.
monitoringState
- the value to setpublic MonitoredInstance.Builder lifecycleState(MonitoredInstance.LifecycleState lifecycleState)
The current state of the monitored instance.
lifecycleState
- the value to setpublic MonitoredInstance.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
lifecycleDetails
- the value to setpublic MonitoredInstance build()
public MonitoredInstance.Builder copy(MonitoredInstance model)
Copyright © 2016–2024. All rights reserved.