public Builder setFlags (Set<AclEntryFlag> flags)

Sets the flags component of this builder. On return, the flags component of this builder is a copy of the given set.

Parameters:
flags    the flags component

Returns:  this builder

Exceptions:
ClassCastException     if the set contains elements that are not of type AclEntryFlag