Class Endpoint.Builder

  • Enclosing class:
    Endpoint

    public static final class Endpoint.Builder
    extends java.lang.Object
    Builder class for Endpoint.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()
      Constructor with parameters for the required properties of Endpoint.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Endpoint build()  
      Endpoint.Builder setDefaultGateway​(java.lang.String defaultGateway)
      Gateway IP format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
      Endpoint.Builder setDeviceName​(java.lang.String deviceName)
      Name of the virtual tunnel endpoint This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
      Endpoint.Builder setIp​(java.lang.String ip)
      Depending upon the EndpointIpConfig used in HostSwitch, IP could be allocated either from DHCP (default) or from Static IP Pool.
      Endpoint.Builder setIpv6​(IPv6EndPoint ipv6)  
      Endpoint.Builder setLabel​(java.lang.Long label)
      Unique label for this Endpoint format: int32 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
      Endpoint.Builder setMac​(java.lang.String mac)
      MAC address format: mac-address This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
      Endpoint.Builder setSubnetMask​(java.lang.String subnetMask)
      Subnet mask format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of Endpoint.
    • Method Detail

      • setDefaultGateway

        public Endpoint.Builder setDefaultGateway​(java.lang.String defaultGateway)
        Gateway IP format: ip 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:
        defaultGateway - New value for the property.
      • setDeviceName

        public Endpoint.Builder setDeviceName​(java.lang.String deviceName)
        Name of the virtual tunnel endpoint 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:
        deviceName - New value for the property.
      • setIp

        public Endpoint.Builder setIp​(java.lang.String ip)
        Depending upon the EndpointIpConfig used in HostSwitch, IP could be allocated either from DHCP (default) or from Static IP Pool. format: ip 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:
        ip - New value for the property.
      • setLabel

        public Endpoint.Builder setLabel​(java.lang.Long label)
        Unique label for this Endpoint format: int32 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:
        label - New value for the property.
      • setMac

        public Endpoint.Builder setMac​(java.lang.String mac)
        MAC address format: mac-address 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:
        mac - New value for the property.
      • setSubnetMask

        public Endpoint.Builder setSubnetMask​(java.lang.String subnetMask)
        Subnet mask format: ip 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:
        subnetMask - New value for the property.