Package io.quarkiverse.openfga.client
Record Class AuthorizationModelClient.CheckOptions
java.lang.Object
java.lang.Record
io.quarkiverse.openfga.client.AuthorizationModelClient.CheckOptions
- Enclosing class:
- AuthorizationModelClient
public static record AuthorizationModelClient.CheckOptions(Optional<Collection<? extends RelTupleKeyed>> contextualTuples, Optional<Map<String,Object>> context, Optional<ConsistencyPreference> consistency)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCheckOptions(Optional<Collection<? extends RelTupleKeyed>> contextualTuples, Optional<Map<String, Object>> context, Optional<ConsistencyPreference> consistency) Creates an instance of aCheckOptionsrecord 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.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
-
CheckOptions
public CheckOptions() -
CheckOptions
public CheckOptions(Optional<Collection<? extends RelTupleKeyed>> contextualTuples, Optional<Map<String, Object>> context, Optional<ConsistencyPreference> consistency) Creates an instance of aCheckOptionsrecord class.- Parameters:
contextualTuples- the value for thecontextualTuplesrecord componentcontext- the value for thecontextrecord componentconsistency- the value for theconsistencyrecord component
-
-
Method Details
-
withContextualTuples
public static AuthorizationModelClient.CheckOptions withContextualTuples(@Nullable Collection<? extends RelTupleKeyed> contextualTuples) -
withContextualTuples
public static AuthorizationModelClient.CheckOptions withContextualTuples(RelTupleKeyed... contextualTuples) -
withContext
public static AuthorizationModelClient.CheckOptions withContext(@Nullable Map<String, Object> context) -
withConsistency
public static AuthorizationModelClient.CheckOptions withConsistency(@Nullable ConsistencyPreference consistency) -
contextualTuples
public AuthorizationModelClient.CheckOptions contextualTuples(@Nullable Collection<? extends RelTupleKeyed> contextualTuples) -
contextualTuples
-
context
-
consistency
public AuthorizationModelClient.CheckOptions 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
-