Class NetworkService.Builder<B extends NetworkService.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
NetworkService

public static class NetworkService.Builder<B extends NetworkService.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public NetworkService build()
      Finish building the NetworkService object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to NetworkService.
      Overrides:
      build in class GObject.Builder<B extends NetworkService.Builder<B>>
      Returns:
      a new instance of NetworkService with the properties that were set in the Builder object.
    • setDomain

      public B setDomain(String domain)
      Network domain, for example example.com.
      Parameters:
      domain - the value for the domain property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.22
    • setProtocol

      public B setProtocol(String protocol)
      Network protocol, for example tcp.
      Parameters:
      protocol - the value for the protocol property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.22
    • setScheme

      public B setScheme(String scheme)
      Network scheme (default is to use service).
      Parameters:
      scheme - the value for the scheme property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.22
    • setService

      public B setService(String service)
      Service name, for example ldap.
      Parameters:
      service - the value for the service property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.22