public static final class SegmentSubnet.Builder
extends java.lang.Object
SegmentSubnet
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
SegmentSubnet . |
Modifier and Type | Method and 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.
|
public Builder()
SegmentSubnet
.public SegmentSubnet.Builder setDhcpConfig(com.vmware.vapi.bindings.Structure dhcpConfig)
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 in SegmentDhcpConfig
. When methods return a value of
this class as a return value, the property will contain all the properties
defined in SegmentDhcpConfig
.public SegmentSubnet.Builder setDhcpRanges(java.util.List<java.lang.String> dhcpRanges)
dhcpRanges
- New value for the property.public SegmentSubnet.Builder setGatewayAddress(java.lang.String gatewayAddress)
gatewayAddress
- New value for the property.public SegmentSubnet.Builder setNetwork(java.lang.String network)
network
- New value for the property.public SegmentSubnet build()