Class ImmutableAccessControlList.Builder

java.lang.Object
org.bremersee.acl.model.ImmutableAccessControlList.Builder
Enclosing class:
ImmutableAccessControlList

@Generated(from="AccessControlList", generator="Immutables") public static final class ImmutableAccessControlList.Builder extends Object
Builds instances of type ImmutableAccessControlList. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      Fill a builder with attribute values from the provided AccessControlList instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • owner

      public final ImmutableAccessControlList.Builder owner(String owner)
      Initializes the value for the owner attribute.

      If not set, this attribute will have a default value as returned by the initializer of owner.

      Parameters:
      owner - The value for owner
      Returns:
      this builder for use in a chained invocation
    • entries

      Initializes the value for the entries attribute.

      If not set, this attribute will have a default value as returned by the initializer of entries.

      Parameters:
      entries - The value for entries
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of AccessControlList
      Throws:
      IllegalStateException - if any required attributes are missing