Record Class PolicyExpressionContext

java.lang.Object
java.lang.Record
ai.astraform.remote.domain.sdk.PolicyExpressionContext

public record 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) extends Record
  • Field Details

  • 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 a PolicyExpressionContext record class.
      Parameters:
      schemaVersion - the value for the schemaVersion record component
      domainId - the value for the domainId record component
      packId - the value for the packId record component
      stage - the value for the stage record component
      branchType - the value for the branchType record component
      metadata - the value for the metadata record component
      parameters - the value for the parameters record component
      inputs - the value for the inputs record component
      metrics - the value for the metrics record component
      signals - the value for the signals record component
  • Method Details

    • create

      public static PolicyExpressionContext create(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)
    • resolvePath

      public Optional<Object> resolvePath(String path)
    • asRootMap

      public Map<String,Object> asRootMap()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • schemaVersion

      public String schemaVersion()
      Returns the value of the schemaVersion record component.
      Returns:
      the value of the schemaVersion record component
    • domainId

      public String domainId()
      Returns the value of the domainId record component.
      Returns:
      the value of the domainId record component
    • packId

      public String packId()
      Returns the value of the packId record component.
      Returns:
      the value of the packId record component
    • stage

      public PolicyExpressionStage stage()
      Returns the value of the stage record component.
      Returns:
      the value of the stage record component
    • branchType

      public String branchType()
      Returns the value of the branchType record component.
      Returns:
      the value of the branchType record component
    • metadata

      public Map<String,Object> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component
    • parameters

      public Map<String,Object> parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • inputs

      public Map<String,Object> inputs()
      Returns the value of the inputs record component.
      Returns:
      the value of the inputs record component
    • metrics

      public Map<String,Object> metrics()
      Returns the value of the metrics record component.
      Returns:
      the value of the metrics record component
    • signals

      public Map<String,Object> signals()
      Returns the value of the signals record component.
      Returns:
      the value of the signals record component