Package ai.astraform.remote.domain.sdk
Record Class PolicyExpressionContext
java.lang.Object
java.lang.Record
ai.astraform.remote.domain.sdk.PolicyExpressionContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPolicyExpressionContext(String schemaVersion, String domainId, String packId, PolicyExpressionStage stage, String branchType, Map<String, Object> metadata, Map<String, Object> parameters, Map<String, Object> inputs, Map<String, Object> metrics, Map<String, Object> signals) Creates an instance of aPolicyExpressionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebranchTyperecord component.static PolicyExpressionContextcreate(String domainId, String packId, PolicyExpressionStage stage, String branchType, Map<String, Object> metadata, Map<String, Object> parameters, Map<String, Object> inputs, Map<String, Object> metrics, Map<String, Object> signals) domainId()Returns the value of thedomainIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.metadata()Returns the value of themetadatarecord component.metrics()Returns the value of themetricsrecord component.packId()Returns the value of thepackIdrecord component.Returns the value of theparametersrecord component.resolvePath(String path) Returns the value of theschemaVersionrecord component.signals()Returns the value of thesignalsrecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
PolicyExpressionContext
public PolicyExpressionContext(String schemaVersion, String domainId, String packId, PolicyExpressionStage stage, String branchType, Map<String, Object> metadata, Map<String, Object> parameters, Map<String, Object> inputs, Map<String, Object> metrics, Map<String, Object> signals) Creates an instance of aPolicyExpressionContextrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentdomainId- the value for thedomainIdrecord componentpackId- the value for thepackIdrecord componentstage- the value for thestagerecord componentbranchType- the value for thebranchTyperecord componentmetadata- the value for themetadatarecord componentparameters- the value for theparametersrecord componentinputs- the value for theinputsrecord componentmetrics- the value for themetricsrecord componentsignals- the value for thesignalsrecord component
-
-
Method Details
-
create
-
resolvePath
-
asRootMap
-
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). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
domainId
Returns the value of thedomainIdrecord component.- Returns:
- the value of the
domainIdrecord component
-
packId
Returns the value of thepackIdrecord component.- Returns:
- the value of the
packIdrecord component
-
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
branchType
Returns the value of thebranchTyperecord component.- Returns:
- the value of the
branchTyperecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
signals
Returns the value of thesignalsrecord component.- Returns:
- the value of the
signalsrecord component
-