Class Item.Builder<B extends Item.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Retrievable.Builder<B>, BuilderInterface
Enclosing class:
Item

public static class Item.Builder<B extends Item.Builder<B>> extends DBusProxy.Builder<B> implements Retrievable.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 Item build()
      Finish building the Item object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to Item.
      Overrides:
      build in class DBusProxy.Builder<B extends Item.Builder<B>>
      Returns:
      a new instance of Item with the properties that were set in the Builder object.
    • setFlags

      public B setFlags(Set<ItemFlags> flags)
      A set of flags describing which parts of the secret item have been initialized.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setService

      public B setService(Service service)
      The Service object that this item is associated with and uses to interact with the actual D-Bus Secret Service.
      Parameters:
      service - the value for the service property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setFlags

      public B setFlags(ItemFlags... flags)
      A set of flags describing which parts of the secret item have been initialized.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining