public static class InstanceMetrics.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InstanceMetrics |
build() |
InstanceMetrics.Builder |
capacity(Double capacity)
The maximum allocated amount of the resource metric type (CPU, STORAGE).
|
InstanceMetrics.Builder |
copy(InstanceMetrics o) |
InstanceMetrics.Builder |
hostName(String hostName)
The hostname of the database insight resource.
|
InstanceMetrics.Builder |
instanceName(String instanceName)
The instance name of the database insight resource.
|
InstanceMetrics.Builder |
usage(Double usage)
Total amount used of the resource metric type (CPU, STORAGE).
|
InstanceMetrics.Builder |
usageChangePercent(Double usageChangePercent)
Change in resource utilization in percentage
|
InstanceMetrics.Builder |
utilizationPercent(Double utilizationPercent)
Resource utilization in percentage
|
public InstanceMetrics.Builder hostName(String hostName)
The hostname of the database insight resource.
hostName
- the value to setpublic InstanceMetrics.Builder instanceName(String instanceName)
The instance name of the database insight resource.
instanceName
- the value to setpublic InstanceMetrics.Builder usage(Double usage)
Total amount used of the resource metric type (CPU, STORAGE).
usage
- the value to setpublic InstanceMetrics.Builder capacity(Double capacity)
The maximum allocated amount of the resource metric type (CPU, STORAGE).
capacity
- the value to setpublic InstanceMetrics.Builder utilizationPercent(Double utilizationPercent)
Resource utilization in percentage
utilizationPercent
- the value to setpublic InstanceMetrics.Builder usageChangePercent(Double usageChangePercent)
Change in resource utilization in percentage
usageChangePercent
- the value to setpublic InstanceMetrics build()
public InstanceMetrics.Builder copy(InstanceMetrics o)
Copyright © 2016–2022. All rights reserved.