Package com.vmware.nsx_policy.model
Class PolicyPoolUsage.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyPoolUsage.Builder
-
- Enclosing class:
- PolicyPoolUsage
public static final class PolicyPoolUsage.Builder extends java.lang.ObjectBuilder class forPolicyPoolUsage.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofPolicyPoolUsage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyPoolUsagebuild()PolicyPoolUsage.BuildersetAllocatedIpAllocations(java.lang.Long allocatedIpAllocations)Total number of allocated IPs shown are from NSX manager.PolicyPoolUsage.BuildersetAvailableIps(java.lang.Long availableIps)Total number of available IPs in a IpAddressPool format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.PolicyPoolUsage.BuildersetRequestedIpAllocations(java.lang.Long requestedIpAllocations)Total number of requested IP allocations in a IpAddressPool format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.PolicyPoolUsage.BuildersetTotalIps(java.lang.Long totalIps)Total number of IPs in a IpAddressPool format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyPoolUsage.
-
-
Method Detail
-
setAllocatedIpAllocations
public PolicyPoolUsage.Builder setAllocatedIpAllocations(java.lang.Long allocatedIpAllocations)
Total number of allocated IPs shown are from NSX manager. NSX manager uses default release delay of 2 mins. Till this delay passes, IPs will be shown as allocated (and counted in allocated ips). In this period of time there could be mismatch in requested_ip_allocations and allocated_ip_allocations. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
allocatedIpAllocations- New value for the property.
-
setAvailableIps
public PolicyPoolUsage.Builder setAvailableIps(java.lang.Long availableIps)
Total number of available IPs in a IpAddressPool format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
availableIps- New value for the property.
-
setRequestedIpAllocations
public PolicyPoolUsage.Builder setRequestedIpAllocations(java.lang.Long requestedIpAllocations)
Total number of requested IP allocations in a IpAddressPool format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
requestedIpAllocations- New value for the property.
-
setTotalIps
public PolicyPoolUsage.Builder setTotalIps(java.lang.Long totalIps)
Total number of IPs in a IpAddressPool format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
totalIps- New value for the property.
-
build
public PolicyPoolUsage build()
-
-