Package com.vmware.nsx_policy.model
Class SegmentSubnet.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.SegmentSubnet.Builder
-
- Enclosing class:
- SegmentSubnet
public static final class SegmentSubnet.Builder extends java.lang.Object
Builder class forSegmentSubnet
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofSegmentSubnet
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentSubnet
build()
SegmentSubnet.Builder
setDhcpConfig(com.vmware.vapi.bindings.Structure dhcpConfig)
SegmentSubnet.Builder
setDhcpRanges(java.util.List<java.lang.String> dhcpRanges)
DHCP address ranges are used for dynamic IP allocation.SegmentSubnet.Builder
setGatewayAddress(java.lang.String gatewayAddress)
Gateway IP address in CIDR format for both IPv4 and IPv6.SegmentSubnet.Builder
setNetwork(java.lang.String network)
Network CIDR for this subnet calculated from gateway_addresses and prefix_len.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofSegmentSubnet
.
-
-
Method Detail
-
setDhcpConfig
public SegmentSubnet.Builder setDhcpConfig(com.vmware.vapi.bindings.Structure dhcpConfig)
- Parameters:
dhcpConfig
- New value for the property. When clients pass a value of this class as a parameter, the property must contain all the properties defined inSegmentDhcpConfig
. When methods return a value of this class as a return value, the property will contain all the properties defined inSegmentDhcpConfig
.
-
setDhcpRanges
public SegmentSubnet.Builder setDhcpRanges(java.util.List<java.lang.String> dhcpRanges)
DHCP address ranges are used for dynamic IP allocation. Supports address range and CIDR formats. First valid host address from the first value is assigned to DHCP server IP address. Existing values cannot be deleted or modified, but additional DHCP ranges can be added. format: address-or-block-or-range- Parameters:
dhcpRanges
- New value for the property.
-
setGatewayAddress
public SegmentSubnet.Builder setGatewayAddress(java.lang.String gatewayAddress)
Gateway IP address in CIDR format for both IPv4 and IPv6. format: ip-cidr-block- Parameters:
gatewayAddress
- New value for the property.
-
setNetwork
public SegmentSubnet.Builder setNetwork(java.lang.String network)
Network CIDR for this subnet calculated from gateway_addresses and prefix_len. 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:
network
- New value for the property.
-
build
public SegmentSubnet build()
-
-