Class SegmentSubnet.Builder

  • Enclosing class:
    SegmentSubnet

    public static final class SegmentSubnet.Builder
    extends java.lang.Object
    Builder class for SegmentSubnet.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of SegmentSubnet.
    • 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 in SegmentDhcpConfig. When methods return a value of this class as a return value, the property will contain all the properties defined in SegmentDhcpConfig.
      • 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.