Class Left

java.lang.Object
com.sap.ai.sdk.grounding.model.Left

public class Left extends Object
Left
  • Constructor Details

    • Left

      protected Left()
      Default constructor for Left.
  • Method Details

    • operator

      @Nonnull public Left operator(@Nonnull Left.OperatorEnum operator)
      Set the operator of this Left instance and return the same instance.
      Parameters:
      operator - The operator of this Left
      Returns:
      The same instance of this Left class
    • getOperator

      @Nonnull public Left.OperatorEnum getOperator()
      Get operator
      Returns:
      operator The operator of this Left instance.
    • setOperator

      public void setOperator(@Nonnull Left.OperatorEnum operator)
      Set the operator of this Left instance.
      Parameters:
      operator - The operator of this Left
    • left

      @Nonnull public Left left(@Nonnull Left left)
      Set the left of this Left instance and return the same instance.
      Parameters:
      left - The left of this Left
      Returns:
      The same instance of this Left class
    • getLeft

      @Nonnull public Left getLeft()
      Get left
      Returns:
      left The left of this Left instance.
    • setLeft

      public void setLeft(@Nonnull Left left)
      Set the left of this Left instance.
      Parameters:
      left - The left of this Left
    • right

      @Nonnull public Left right(@Nonnull Right right)
      Set the right of this Left instance and return the same instance.
      Parameters:
      right - The right of this Left
      Returns:
      The same instance of this Left class
    • getRight

      @Nonnull public Right getRight()
      Get right
      Returns:
      right The right of this Left instance.
    • setRight

      public void setRight(@Nonnull Right right)
      Set the right of this Left instance.
      Parameters:
      right - The right of this Left
    • key

      @Nonnull public Left key(@Nonnull String key)
      Set the key of this Left instance and return the same instance.
      Parameters:
      key - The key of this Left
      Returns:
      The same instance of this Left class
    • getKey

      @Nonnull public String getKey()
      Get key
      Returns:
      key The key of this Left instance.
    • setKey

      public void setKey(@Nonnull String key)
      Set the key of this Left instance.
      Parameters:
      key - The key of this Left
    • value

      @Nonnull public Left value(@Nonnull List<String> value)
      Set the value of this Left instance and return the same instance.
      Parameters:
      value - The value of this Left
      Returns:
      The same instance of this Left class
    • addValueItem

      @Nonnull public Left addValueItem(@Nonnull String valueItem)
      Add one value instance to this Left.
      Parameters:
      valueItem - The value that should be added
      Returns:
      The same instance of type Left
    • getValue

      @Nonnull public List<String> getValue()
      Get value
      Returns:
      value The value of this Left instance.
    • setValue

      public void setValue(@Nonnull List<String> value)
      Set the value of this Left instance.
      Parameters:
      value - The value of this Left
    • scope

      @Nonnull public Left scope(@Nullable Left.ScopeEnum scope)
      Set the scope of this Left instance and return the same instance.
      Parameters:
      scope - The scope of this Left
      Returns:
      The same instance of this Left class
    • getScope

      @Nonnull public Left.ScopeEnum getScope()
      Get scope
      Returns:
      scope The scope of this Left instance.
    • setScope

      public void setScope(@Nullable Left.ScopeEnum scope)
      Set the scope of this Left instance.
      Parameters:
      scope - The scope of this Left
    • getCustomFieldNames

      @Nonnull public Set<String> getCustomFieldNames()
      Get the names of the unrecognizable properties of the Left.
      Returns:
      The set of properties names
    • getCustomField

      @Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException
      Deprecated.
      Use toMap() instead.
      Get the value of an unrecognizable property of this Left instance.
      Parameters:
      name - The name of the property
      Returns:
      The value of the property
      Throws:
      NoSuchElementException - If no property with the given name could be found.
    • toMap

      @Nonnull public Map<String,Object> toMap()
      Get the value of all properties of this Left instance including unrecognized properties.
      Returns:
      The map of all properties
    • setCustomField

      public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue)
      Set an unrecognizable property of this Left instance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.
      Parameters:
      customFieldName - The name of the property
      customFieldValue - The value of the property
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • create

      public static Left.Builder create()
      Create a type-safe, fluent-api builder object to construct a new Left instance with all required arguments.