Class DefaultLink.Builder

  • Enclosing class:
    DefaultLink

    public static class DefaultLink.Builder
    extends Object
    Builder for DefaultLink objects.
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • providerId

        public DefaultLink.Builder providerId​(ProviderId providerId)
        Sets the providerId to be used by the builder.
        Parameters:
        providerId - new provider id
        Returns:
        self
      • annotations

        public DefaultLink.Builder annotations​(Annotations annotations)
        Sets the annotations to be used by the builder.
        Parameters:
        annotations - new annotations
        Returns:
        self
      • src

        public DefaultLink.Builder src​(ConnectPoint src)
        Sets the source connect point to be used by the builder.
        Parameters:
        src - source connect point
        Returns:
        self
      • dst

        public DefaultLink.Builder dst​(ConnectPoint dst)
        Sets the destination connect point to be used by the builder.
        Parameters:
        dst - new destination connect point
        Returns:
        self
      • type

        public DefaultLink.Builder type​(Link.Type type)
        Sets the link type to be used by the builder.
        Parameters:
        type - new link type
        Returns:
        self
      • state

        public DefaultLink.Builder state​(Link.State state)
        Sets the link state to be used by the builder.
        Parameters:
        state - new link state
        Returns:
        self
      • isExpected

        public DefaultLink.Builder isExpected​(boolean isExpected)
        Sets the expected flag to be used by the builder.
        Parameters:
        isExpected - new expected flag
        Returns:
        self
      • build

        public DefaultLink build()
        Builds a default link object from the accumulated parameters.
        Returns:
        default link object