Class RTAScenario

java.lang.Object
com.sap.ai.sdk.core.model.RTAScenario

public class RTAScenario extends Object
Entity having labels
  • Constructor Details

    • RTAScenario

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

    • id

      @Nonnull public RTAScenario id(@Nonnull String id)
      Set the id of this RTAScenario instance and return the same instance.
      Parameters:
      id - ID of the scenario
      Returns:
      The same instance of this RTAScenario class
    • getId

      @Nonnull public String getId()
      ID of the scenario
      Returns:
      id The id of this RTAScenario instance.
    • setId

      public void setId(@Nonnull String id)
      Set the id of this RTAScenario instance.
      Parameters:
      id - ID of the scenario
    • name

      @Nonnull public RTAScenario name(@Nonnull String name)
      Set the name of this RTAScenario instance and return the same instance.
      Parameters:
      name - Name of the scenario
      Returns:
      The same instance of this RTAScenario class
    • getName

      @Nonnull public String getName()
      Name of the scenario
      Returns:
      name The name of this RTAScenario instance.
    • setName

      public void setName(@Nonnull String name)
      Set the name of this RTAScenario instance.
      Parameters:
      name - Name of the scenario
    • description

      @Nonnull public RTAScenario description(@Nullable String description)
      Set the description of this RTAScenario instance and return the same instance.
      Parameters:
      description - Description of the scenario
      Returns:
      The same instance of this RTAScenario class
    • getDescription

      @Nonnull public String getDescription()
      Description of the scenario
      Returns:
      description The description of this RTAScenario instance.
    • setDescription

      public void setDescription(@Nullable String description)
      Set the description of this RTAScenario instance.
      Parameters:
      description - Description of the scenario
    • labels

      @Nonnull public RTAScenario labels(@Nullable List<RTALabel> labels)
      Set the labels of this RTAScenario instance and return the same instance.
      Parameters:
      labels - Arbitrary labels as meta information
      Returns:
      The same instance of this RTAScenario class
    • addLabelsItem

      @Nonnull public RTAScenario addLabelsItem(@Nonnull RTALabel labelsItem)
      Add one labels instance to this RTAScenario.
      Parameters:
      labelsItem - The labels that should be added
      Returns:
      The same instance of type RTAScenario
    • getLabels

      @Nonnull public List<RTALabel> getLabels()
      Arbitrary labels as meta information
      Returns:
      labels The labels of this RTAScenario instance.
    • setLabels

      public void setLabels(@Nullable List<RTALabel> labels)
      Set the labels of this RTAScenario instance.
      Parameters:
      labels - Arbitrary labels as meta information
    • createdAt

      @Nonnull public RTAScenario createdAt(@Nonnull OffsetDateTime createdAt)
      Set the createdAt of this RTAScenario instance and return the same instance.
      Parameters:
      createdAt - Timestamp of resource creation
      Returns:
      The same instance of this RTAScenario class
    • getCreatedAt

      @Nonnull public OffsetDateTime getCreatedAt()
      Timestamp of resource creation
      Returns:
      createdAt The createdAt of this RTAScenario instance.
    • setCreatedAt

      public void setCreatedAt(@Nonnull OffsetDateTime createdAt)
      Set the createdAt of this RTAScenario instance.
      Parameters:
      createdAt - Timestamp of resource creation
    • modifiedAt

      @Nonnull public RTAScenario modifiedAt(@Nonnull OffsetDateTime modifiedAt)
      Set the modifiedAt of this RTAScenario instance and return the same instance.
      Parameters:
      modifiedAt - Timestamp of latest resource modification
      Returns:
      The same instance of this RTAScenario class
    • getModifiedAt

      @Nonnull public OffsetDateTime getModifiedAt()
      Timestamp of latest resource modification
      Returns:
      modifiedAt The modifiedAt of this RTAScenario instance.
    • setModifiedAt

      public void setModifiedAt(@Nonnull OffsetDateTime modifiedAt)
      Set the modifiedAt of this RTAScenario instance.
      Parameters:
      modifiedAt - Timestamp of latest resource modification
    • getCustomFieldNames

      @Nonnull public Set<String> getCustomFieldNames()
      Get the names of the unrecognizable properties of the RTAScenario.
      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 RTAScenario 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 RTAScenario 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 RTAScenario 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 RTAScenario.Builder create()
      Create a type-safe, fluent-api builder object to construct a new RTAScenario instance with all required arguments.