Package io.quarkiverse.openfga.client
Record Class AuthorizationModelClient.ListOptions
java.lang.Object
java.lang.Record
io.quarkiverse.openfga.client.AuthorizationModelClient.ListOptions
- Enclosing class:
- AuthorizationModelClient
public static record AuthorizationModelClient.ListOptions(Optional<Collection<? extends RelTupleKeyed>> contextualTuples, Optional<Map<String,Object>> context, Optional<ConsistencyPreference> consistency)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionListOptions(Optional<Collection<? extends RelTupleKeyed>> contextualTuples, Optional<Map<String, Object>> context, Optional<ConsistencyPreference> consistency) Creates an instance of aListOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsistencyrecord component.consistency(ConsistencyPreference consistency) context()Returns the value of thecontextrecord component.Optional<Collection<? extends RelTupleKeyed>>Returns the value of thecontextualTuplesrecord component.contextualTuples(RelTupleKeyed... contextualTuples) contextualTuples(Collection<? extends RelTupleKeyed> contextualTuples) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(Collection<? extends RelTupleKeyed> contextualTuples, Map<String, Object> context, ConsistencyPreference consistency) final StringtoString()Returns a string representation of this record class.withConsistency(ConsistencyPreference consistency) withContext(Map<String, Object> context) withContextualTuples(RelTupleKeyed... contextualTuples) withContextualTuples(Collection<? extends RelTupleKeyed> contextualTuples)
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
ListOptions
public ListOptions() -
ListOptions
public ListOptions(Optional<Collection<? extends RelTupleKeyed>> contextualTuples, Optional<Map<String, Object>> context, Optional<ConsistencyPreference> consistency) Creates an instance of aListOptionsrecord class.- Parameters:
contextualTuples- the value for thecontextualTuplesrecord componentcontext- the value for thecontextrecord componentconsistency- the value for theconsistencyrecord component
-
-
Method Details
-
of
public static AuthorizationModelClient.ListOptions of(@Nullable Collection<? extends RelTupleKeyed> contextualTuples, @Nullable Map<String, Object> context, @Nullable ConsistencyPreference consistency) -
withContextualTuples
public static AuthorizationModelClient.ListOptions withContextualTuples(@Nullable Collection<? extends RelTupleKeyed> contextualTuples) -
withContextualTuples
public static AuthorizationModelClient.ListOptions withContextualTuples(RelTupleKeyed... contextualTuples) -
withContext
public static AuthorizationModelClient.ListOptions withContext(@Nullable Map<String, Object> context) -
withConsistency
public static AuthorizationModelClient.ListOptions withConsistency(@Nullable ConsistencyPreference consistency) -
contextualTuples
public AuthorizationModelClient.ListOptions contextualTuples(@Nullable Collection<? extends RelTupleKeyed> contextualTuples) -
contextualTuples
-
context
-
consistency
public AuthorizationModelClient.ListOptions consistency(@Nullable ConsistencyPreference consistency) -
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). -
contextualTuples
Returns the value of thecontextualTuplesrecord component.- Returns:
- the value of the
contextualTuplesrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
consistency
Returns the value of theconsistencyrecord component.- Returns:
- the value of the
consistencyrecord component
-