Class Network.Builder

  • Enclosing class:
    Network

    public static class Network.Builder
    extends Object
    Implements the Builder pattern for this class
    • Field Detail

      • networkUuid

        protected String networkUuid
      • portUuid

        protected String portUuid
      • fixedIp

        protected String fixedIp
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • networkUuid

        public Network.Builder networkUuid​(String networkUuid)
        Parameters:
        networkUuid - The UUID for the Nova network or Neutron subnet to be attached.
        Returns:
        The builder object.
        See Also:
        Network.getNetworkUuid()
      • fixedIp

        public Network.Builder fixedIp​(String fixedIp)
        Parameters:
        fixedIp - The fixed IP address for this Network (if any). Service automatically assigns IP address if this is not provided. Fixed IP is compatible with both Nova Network and Neutron.
        Returns:
        The builder object.
        See Also:
        Network.getFixedIp()
      • build

        public Network build()
        Returns:
        A new Network object.
      • fromNetwork

        public Network.Builder fromNetwork​(Network in)
        Parameters:
        in - The target Network
        Returns:
        A Builder from the provided Network