Class TlsPassword.Builder<B extends TlsPassword.Builder<B>>

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

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

    • Builder

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

    • build

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

      public B setDescription(String description)
      Description of what the password is for.
      Parameters:
      description - the value for the description property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.30
    • setFlags

      public B setFlags(Set<TlsPasswordFlags> flags)
      Flags about the password.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.30
    • setWarning

      public B setWarning(String warning)
      Warning about the password.
      Parameters:
      warning - the value for the warning property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.30
    • setFlags

      public B setFlags(TlsPasswordFlags... flags)
      Flags about the password.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.30