Package ai.astraform.remote.domain.sdk
Record Class PolicyExpressionDefinition
java.lang.Object
java.lang.Record
ai.astraform.remote.domain.sdk.PolicyExpressionDefinition
public record PolicyExpressionDefinition(String expressionId, PolicyExpressionLanguage language, PolicyExpressionResultType resultType, PolicyExpressionStage stage, String contextSchemaVersion, String expression, String executionTarget, String description)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPolicyExpressionDefinition(String expressionId, PolicyExpressionLanguage language, PolicyExpressionResultType resultType, PolicyExpressionStage stage, String contextSchemaVersion, String expression, String description) PolicyExpressionDefinition(String expressionId, PolicyExpressionLanguage language, PolicyExpressionResultType resultType, PolicyExpressionStage stage, String contextSchemaVersion, String expression, String executionTarget, String description) Creates an instance of aPolicyExpressionDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionasMap()static PolicyExpressionDefinitioncelBoolean(String expressionId, PolicyExpressionStage stage, String expression, String description) static PolicyExpressionDefinitioncelBoolean(String expressionId, PolicyExpressionStage stage, String expression, String executionTarget, String description) Returns the value of thecontextSchemaVersionrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionTargetrecord component.Returns the value of theexpressionrecord component.Returns the value of theexpressionIdrecord component.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.Returns the value of theresultTyperecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_CONTEXT_SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
PolicyExpressionDefinition
public PolicyExpressionDefinition(String expressionId, PolicyExpressionLanguage language, PolicyExpressionResultType resultType, PolicyExpressionStage stage, String contextSchemaVersion, String expression, String executionTarget, String description) Creates an instance of aPolicyExpressionDefinitionrecord class.- Parameters:
expressionId- the value for theexpressionIdrecord componentlanguage- the value for thelanguagerecord componentresultType- the value for theresultTyperecord componentstage- the value for thestagerecord componentcontextSchemaVersion- the value for thecontextSchemaVersionrecord componentexpression- the value for theexpressionrecord componentexecutionTarget- the value for theexecutionTargetrecord componentdescription- the value for thedescriptionrecord component
-
PolicyExpressionDefinition
public PolicyExpressionDefinition(String expressionId, PolicyExpressionLanguage language, PolicyExpressionResultType resultType, PolicyExpressionStage stage, String contextSchemaVersion, String expression, String description)
-
-
Method Details
-
celBoolean
public static PolicyExpressionDefinition celBoolean(String expressionId, PolicyExpressionStage stage, String expression, String executionTarget, String description) -
celBoolean
public static PolicyExpressionDefinition celBoolean(String expressionId, PolicyExpressionStage stage, String expression, String description) -
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
-
contextSchemaVersion
Returns the value of thecontextSchemaVersionrecord component.- Returns:
- the value of the
contextSchemaVersionrecord component
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
executionTarget
Returns the value of theexecutionTargetrecord component.- Returns:
- the value of the
executionTargetrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-