Package dev.openfga.sdk.api.model
Class ListUsersRequest
- java.lang.Object
-
- dev.openfga.sdk.api.model.ListUsersRequest
-
public class ListUsersRequest extends java.lang.Object
ListUsersRequest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JSON_PROPERTY_AUTHORIZATION_MODEL_ID
static java.lang.String
JSON_PROPERTY_CONSISTENCY
static java.lang.String
JSON_PROPERTY_CONTEXT
static java.lang.String
JSON_PROPERTY_CONTEXTUAL_TUPLES
static java.lang.String
JSON_PROPERTY_OBJECT
static java.lang.String
JSON_PROPERTY_RELATION
static java.lang.String
JSON_PROPERTY_USER_FILTERS
-
Constructor Summary
Constructors Constructor Description ListUsersRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListUsersRequest
_object(FgaObject _object)
ListUsersRequest
addContextualTuplesItem(TupleKey contextualTuplesItem)
ListUsersRequest
addUserFiltersItem(UserTypeFilter userFiltersItem)
ListUsersRequest
authorizationModelId(java.lang.String authorizationModelId)
ListUsersRequest
consistency(ConsistencyPreference consistency)
ListUsersRequest
context(java.lang.Object context)
ListUsersRequest
contextualTuples(java.util.List<TupleKey> contextualTuples)
boolean
equals(java.lang.Object o)
Return true if this ListUsers_request object is equal to o.java.lang.String
getAuthorizationModelId()
Get authorizationModelIdConsistencyPreference
getConsistency()
Get consistencyjava.lang.Object
getContext()
Additional request context that will be used to evaluate any ABAC conditions encountered in the query evaluation.java.util.List<TupleKey>
getContextualTuples()
Get contextualTuplesFgaObject
getObject()
Get _objectjava.lang.String
getRelation()
Get relationjava.util.List<UserTypeFilter>
getUserFilters()
The type of results returned.int
hashCode()
ListUsersRequest
relation(java.lang.String relation)
void
setAuthorizationModelId(java.lang.String authorizationModelId)
void
setConsistency(ConsistencyPreference consistency)
void
setContext(java.lang.Object context)
void
setContextualTuples(java.util.List<TupleKey> contextualTuples)
void
setObject(FgaObject _object)
void
setRelation(java.lang.String relation)
void
setUserFilters(java.util.List<UserTypeFilter> userFilters)
java.lang.String
toString()
java.lang.String
toUrlQueryString()
Convert the instance into URL query string.java.lang.String
toUrlQueryString(java.lang.String prefix)
Convert the instance into URL query string.ListUsersRequest
userFilters(java.util.List<UserTypeFilter> userFilters)
-
-
-
Field Detail
-
JSON_PROPERTY_AUTHORIZATION_MODEL_ID
public static final java.lang.String JSON_PROPERTY_AUTHORIZATION_MODEL_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OBJECT
public static final java.lang.String JSON_PROPERTY_OBJECT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RELATION
public static final java.lang.String JSON_PROPERTY_RELATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER_FILTERS
public static final java.lang.String JSON_PROPERTY_USER_FILTERS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTEXTUAL_TUPLES
public static final java.lang.String JSON_PROPERTY_CONTEXTUAL_TUPLES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTEXT
public static final java.lang.String JSON_PROPERTY_CONTEXT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONSISTENCY
public static final java.lang.String JSON_PROPERTY_CONSISTENCY
- See Also:
- Constant Field Values
-
-
Method Detail
-
authorizationModelId
public ListUsersRequest authorizationModelId(java.lang.String authorizationModelId)
-
getAuthorizationModelId
@Nullable public java.lang.String getAuthorizationModelId()
Get authorizationModelId- Returns:
- authorizationModelId
-
setAuthorizationModelId
public void setAuthorizationModelId(java.lang.String authorizationModelId)
-
_object
public ListUsersRequest _object(FgaObject _object)
-
getObject
@Nonnull public FgaObject getObject()
Get _object- Returns:
- _object
-
setObject
public void setObject(FgaObject _object)
-
relation
public ListUsersRequest relation(java.lang.String relation)
-
getRelation
@Nonnull public java.lang.String getRelation()
Get relation- Returns:
- relation
-
setRelation
public void setRelation(java.lang.String relation)
-
userFilters
public ListUsersRequest userFilters(java.util.List<UserTypeFilter> userFilters)
-
addUserFiltersItem
public ListUsersRequest addUserFiltersItem(UserTypeFilter userFiltersItem)
-
getUserFilters
@Nonnull public java.util.List<UserTypeFilter> getUserFilters()
The type of results returned. Only accepts exactly one value.- Returns:
- userFilters
-
setUserFilters
public void setUserFilters(java.util.List<UserTypeFilter> userFilters)
-
contextualTuples
public ListUsersRequest contextualTuples(java.util.List<TupleKey> contextualTuples)
-
addContextualTuplesItem
public ListUsersRequest addContextualTuplesItem(TupleKey contextualTuplesItem)
-
getContextualTuples
@Nullable public java.util.List<TupleKey> getContextualTuples()
Get contextualTuples- Returns:
- contextualTuples
-
setContextualTuples
public void setContextualTuples(java.util.List<TupleKey> contextualTuples)
-
context
public ListUsersRequest context(java.lang.Object context)
-
getContext
@Nullable public java.lang.Object getContext()
Additional request context that will be used to evaluate any ABAC conditions encountered in the query evaluation.- Returns:
- context
-
setContext
public void setContext(java.lang.Object context)
-
consistency
public ListUsersRequest consistency(ConsistencyPreference consistency)
-
getConsistency
@Nullable public ConsistencyPreference getConsistency()
Get consistency- Returns:
- consistency
-
setConsistency
public void setConsistency(ConsistencyPreference consistency)
-
equals
public boolean equals(java.lang.Object o)
Return true if this ListUsers_request object is equal to o.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toUrlQueryString
public java.lang.String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
public java.lang.String toUrlQueryString(java.lang.String prefix)
Convert the instance into URL query string.- Parameters:
prefix
- prefix of the query string- Returns:
- URL query string
-
-