Class Collection.Builder<B extends Collection.Builder<B>>

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

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

      public B setCreated(long created)
      The date and time (in seconds since the UNIX epoch) that this collection was created.
      Parameters:
      created - the value for the created property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setFlags

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

      public B setLabel(String label)

      The human readable label for the collection.

      Setting this property will result in the label of the collection being set asynchronously. To properly track the changing of the label use the Collection.setLabel(String, Cancellable, AsyncReadyCallback) function.

      Parameters:
      label - the value for the label property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setModified

      public B setModified(long modified)
      The date and time (in seconds since the UNIX epoch) that this collection was last modified.
      Parameters:
      modified - the value for the modified property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setService

      public B setService(Service service)
      The Service object that this collection 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(CollectionFlags... flags)
      A set of flags describing which parts of the secret collection have been initialized.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining