Package org.bremersee.acl.model
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 Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableAccessControlList.entries(Collection<AccessControlEntry> entries) Initializes the value for theentriesattribute.from(AccessControlList instance) Fill a builder with attribute values from the providedAccessControlListinstance.Initializes the value for theownerattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedAccessControlListinstance. 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:
thisbuilder for use in a chained invocation
-
owner
Initializes the value for theownerattribute.If not set, this attribute will have a default value as returned by the initializer of
owner.- Parameters:
owner- The value for owner- Returns:
thisbuilder for use in a chained invocation
-
entries
Initializes the value for theentriesattribute.If not set, this attribute will have a default value as returned by the initializer of
entries.- Parameters:
entries- The value for entries- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAccessControlList.- Returns:
- An immutable instance of AccessControlList
- Throws:
IllegalStateException- if any required attributes are missing
-