Package com.vmware.nsx_policy.model
Class PlatformCpuStats.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PlatformCpuStats.Builder
-
- Enclosing class:
- PlatformCpuStats
public static final class PlatformCpuStats.Builder extends java.lang.Object
Builder class forPlatformCpuStats
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPlatformCpuStats
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlatformCpuStats
build()
PlatformCpuStats.Builder
setHist0Pct(java.lang.Long hist0Pct)
Number of (V)CPUs with utilization between 0% and 50%.PlatformCpuStats.Builder
setHist50Pct(java.lang.Long hist50Pct)
Number of (V)CPUs with utilization between 50% and 75%.PlatformCpuStats.Builder
setHist75Pct(java.lang.Long hist75Pct)
Number of (V)CPUs with utilization between 75% and 85%.PlatformCpuStats.Builder
setHist85Pct(java.lang.Long hist85Pct)
Number of (V)CPUs with utilization between 85% and 90%.PlatformCpuStats.Builder
setHist90Pct(java.lang.Long hist90Pct)
Number of (V)CPUs with utilization between 90% and 95%.PlatformCpuStats.Builder
setHist95Pct(java.lang.Long hist95Pct)
Number of (V)CPUs with utilization > 95%.PlatformCpuStats.Builder
setTotalCpu(java.lang.Double totalCpu)
Sum of utilization of all (V)CPUs on the host.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPlatformCpuStats
.
-
-
Method Detail
-
setHist0Pct
public PlatformCpuStats.Builder setHist0Pct(java.lang.Long hist0Pct)
Number of (V)CPUs with utilization between 0% and 50%. format: int32- Parameters:
hist0Pct
- New value for the property.
-
setHist50Pct
public PlatformCpuStats.Builder setHist50Pct(java.lang.Long hist50Pct)
Number of (V)CPUs with utilization between 50% and 75%. format: int32- Parameters:
hist50Pct
- New value for the property.
-
setHist75Pct
public PlatformCpuStats.Builder setHist75Pct(java.lang.Long hist75Pct)
Number of (V)CPUs with utilization between 75% and 85%. format: int32- Parameters:
hist75Pct
- New value for the property.
-
setHist85Pct
public PlatformCpuStats.Builder setHist85Pct(java.lang.Long hist85Pct)
Number of (V)CPUs with utilization between 85% and 90%. format: int32- Parameters:
hist85Pct
- New value for the property.
-
setHist90Pct
public PlatformCpuStats.Builder setHist90Pct(java.lang.Long hist90Pct)
Number of (V)CPUs with utilization between 90% and 95%. format: int32- Parameters:
hist90Pct
- New value for the property.
-
setHist95Pct
public PlatformCpuStats.Builder setHist95Pct(java.lang.Long hist95Pct)
Number of (V)CPUs with utilization > 95%. format: int32- Parameters:
hist95Pct
- New value for the property.
-
setTotalCpu
public PlatformCpuStats.Builder setTotalCpu(java.lang.Double totalCpu)
Sum of utilization of all (V)CPUs on the host.- Parameters:
totalCpu
- New value for the property.
-
build
public PlatformCpuStats build()
-
-