Package io.quarkiverse.openfga.client
Record Class AuthorizationModelClient.ListUsersFilter
java.lang.Object
java.lang.Record
io.quarkiverse.openfga.client.AuthorizationModelClient.ListUsersFilter
- Record Components:
object- The object to filter by.relation- The relation to filter by.userFilters- The user type filters to apply.
- Enclosing class:
- AuthorizationModelClient
public static record AuthorizationModelClient.ListUsersFilter(Optional<RelEntity> object, Optional<String> relation, Optional<Collection<ListUsersRequest.UserTypeFilter>> userFilters)
extends Record
Filter for listing users matching a specific object, relation, and user type(s).
-
Constructor Summary
ConstructorsConstructorDescriptionListUsersFilter(Optional<RelEntity> object, Optional<String> relation, Optional<Collection<ListUsersRequest.UserTypeFilter>> userFilters) Creates an instance of aListUsersFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyRelation(String relation) byUserFilters(ListUsersRequest.UserTypeFilter... userFilter) byUserFilters(Collection<ListUsersRequest.UserTypeFilter> userFilters) byUserType(RelTyped type) byUserType(String type) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.object()Returns the value of theobjectrecord component.relation()Returns the value of therelationrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserFiltersrecord component.userFilters(ListUsersRequest.UserTypeFilter... userFilters) userFilters(Collection<ListUsersRequest.UserTypeFilter> userFilters)
-
Constructor Details
-
ListUsersFilter
public ListUsersFilter(Optional<RelEntity> object, Optional<String> relation, Optional<Collection<ListUsersRequest.UserTypeFilter>> userFilters) Creates an instance of aListUsersFilterrecord class.- Parameters:
object- the value for theobjectrecord componentrelation- the value for therelationrecord componentuserFilters- the value for theuserFiltersrecord component
-
-
Method Details
-
byObject
-
byObject
-
byRelation
-
byUserFilters
public static AuthorizationModelClient.ListUsersFilter byUserFilters(Collection<ListUsersRequest.UserTypeFilter> userFilters) -
byUserFilters
public static AuthorizationModelClient.ListUsersFilter byUserFilters(ListUsersRequest.UserTypeFilter... userFilter) -
byUserType
-
byUserType
-
object
-
object
-
relation
-
userFilters
public AuthorizationModelClient.ListUsersFilter userFilters(Collection<ListUsersRequest.UserTypeFilter> userFilters) -
userFilters
public AuthorizationModelClient.ListUsersFilter userFilters(ListUsersRequest.UserTypeFilter... userFilters) -
userType
-
userType
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
relation
Returns the value of therelationrecord component.- Returns:
- the value of the
relationrecord component
-
userFilters
Returns the value of theuserFiltersrecord component.- Returns:
- the value of the
userFiltersrecord component
-