Package ai.astraform.remote.domain.sdk
Record Class PolicyExpressionEvaluation
java.lang.Object
java.lang.Record
ai.astraform.remote.domain.sdk.PolicyExpressionEvaluation
public record PolicyExpressionEvaluation(String expressionId, PolicyExpressionLanguage language, PolicyExpressionResultType resultType, PolicyExpressionStage stage, Object value, String executionTarget, Map<String,Object> audit)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPolicyExpressionEvaluation(String expressionId, PolicyExpressionLanguage language, PolicyExpressionResultType resultType, PolicyExpressionStage stage, Object value, String executionTarget, Map<String, Object> audit) Creates an instance of aPolicyExpressionEvaluationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionasMap()audit()Returns the value of theauditrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionTargetrecord component.Returns the value of theexpressionIdrecord component.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.booleanpassed()Returns the value of theresultTyperecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
PolicyExpressionEvaluation
public PolicyExpressionEvaluation(String expressionId, PolicyExpressionLanguage language, PolicyExpressionResultType resultType, PolicyExpressionStage stage, Object value, String executionTarget, Map<String, Object> audit) Creates an instance of aPolicyExpressionEvaluationrecord class.- Parameters:
expressionId- the value for theexpressionIdrecord componentlanguage- the value for thelanguagerecord componentresultType- the value for theresultTyperecord componentstage- the value for thestagerecord componentvalue- the value for thevaluerecord componentexecutionTarget- the value for theexecutionTargetrecord componentaudit- the value for theauditrecord component
-
-
Method Details
-
passed
public boolean passed() -
asMap
-
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). -
expressionId
Returns the value of theexpressionIdrecord component.- Returns:
- the value of the
expressionIdrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
resultType
Returns the value of theresultTyperecord component.- Returns:
- the value of the
resultTyperecord component
-
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
executionTarget
Returns the value of theexecutionTargetrecord component.- Returns:
- the value of the
executionTargetrecord component
-
audit
Returns the value of theauditrecord component.- Returns:
- the value of the
auditrecord component
-