Class Peer.Builder

  • Enclosing class:
    Peer

    public static class Peer.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • peerKey

        public Peer.Builder peerKey​(String peerKey)
        peer identifier
        Parameters:
        peerKey - the value to set
        Returns:
        this builder
      • role

        public Peer.Builder role​(PeerRole.Role role)
        Peer role
        Parameters:
        role - the value to set
        Returns:
        this builder
      • alias

        public Peer.Builder alias​(String alias)
        peer alias
        Parameters:
        alias - the value to set
        Returns:
        this builder
      • host

        public Peer.Builder host​(String host)
        Host on which the Peer exists
        Parameters:
        host - the value to set
        Returns:
        this builder
      • lifecycleState

        public Peer.Builder lifecycleState​(Peer.LifecycleState lifecycleState)
        The current state of the peer.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • build

        public Peer build()