Package com.vmware.nsx_policy.model
Class CapacityThreshold.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.CapacityThreshold.Builder
-
- Enclosing class:
- CapacityThreshold
public static final class CapacityThreshold.Builder extends java.lang.ObjectBuilder class forCapacityThreshold.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofCapacityThreshold.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CapacityThresholdbuild()CapacityThreshold.BuildersetMaxThresholdPercentage(java.lang.Double maxThresholdPercentage)Set the maximum threshold percentage.CapacityThreshold.BuildersetMinThresholdPercentage(java.lang.Double minThresholdPercentage)Set the minimum threshold percentage.CapacityThreshold.BuildersetThresholdType(java.lang.String thresholdType)Indicate the object type for which threshold is to be set.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofCapacityThreshold.
-
-
Method Detail
-
setMaxThresholdPercentage
public CapacityThreshold.Builder setMaxThresholdPercentage(java.lang.Double maxThresholdPercentage)
Set the maximum threshold percentage. Specify a value between 0 and 100. Usage percentage above this value is tagged as critical.- Parameters:
maxThresholdPercentage- New value for the property.
-
setMinThresholdPercentage
public CapacityThreshold.Builder setMinThresholdPercentage(java.lang.Double minThresholdPercentage)
Set the minimum threshold percentage. Specify a value between 0 and 100. Usage percentage above this value is tagged as warning.- Parameters:
minThresholdPercentage- New value for the property.
-
setThresholdType
public CapacityThreshold.Builder setThresholdType(java.lang.String thresholdType)
Indicate the object type for which threshold is to be set.- Parameters:
thresholdType- New value for the property.
-
build
public CapacityThreshold build()
-
-