Package com.vmware.nsx_policy.model
Class PolicyPolicyResourceAllocation.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyPolicyResourceAllocation.Builder
-
- Enclosing class:
- PolicyPolicyResourceAllocation
public static final class PolicyPolicyResourceAllocation.Builder extends java.lang.Object
Builder class forPolicyPolicyResourceAllocation
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPolicyPolicyResourceAllocation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyPolicyResourceAllocation
build()
PolicyPolicyResourceAllocation.Builder
setLimit(java.lang.Double limit)
The limit property specifies the maximum bandwidth allocation for a given traffic type and is expressed in percentage.PolicyPolicyResourceAllocation.Builder
setReservation(java.lang.Double reservation)
Minimum guaranteed bandwidth percentagePolicyPolicyResourceAllocation.Builder
setShares(java.lang.Long shares)
Shares format: int32PolicyPolicyResourceAllocation.Builder
setTrafficType(PolicyHostInfraTrafficType trafficType)
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyPolicyResourceAllocation
.
-
-
Method Detail
-
setLimit
public PolicyPolicyResourceAllocation.Builder setLimit(java.lang.Double limit)
The limit property specifies the maximum bandwidth allocation for a given traffic type and is expressed in percentage. The default value for this field is set to -1 which means the traffic is unbounded for the traffic type. All other negative values for this property is not supported and will be rejected by the API.- Parameters:
limit
- New value for the property.
-
setReservation
public PolicyPolicyResourceAllocation.Builder setReservation(java.lang.Double reservation)
Minimum guaranteed bandwidth percentage- Parameters:
reservation
- New value for the property.
-
setShares
public PolicyPolicyResourceAllocation.Builder setShares(java.lang.Long shares)
Shares format: int32- Parameters:
shares
- New value for the property.
-
setTrafficType
public PolicyPolicyResourceAllocation.Builder setTrafficType(PolicyHostInfraTrafficType trafficType)
- Parameters:
trafficType
- New value for the property.
-
build
public PolicyPolicyResourceAllocation build()
-
-