Class BckndService

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

public class BckndService extends Object
BckndService
  • Constructor Details

    • BckndService

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

    • name

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

      @Nonnull public String getName()
      service name
      Returns:
      name The name of this BckndService instance.
    • setName

      public void setName(@Nullable String name)
      Set the name of this BckndService instance.
      Parameters:
      name - service name
    • description

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

      @Nonnull public String getDescription()
      service description
      Returns:
      description The description of this BckndService instance.
    • setDescription

      public void setDescription(@Nullable String description)
      Set the description of this BckndService instance.
      Parameters:
      description - service description
    • url

      @Nonnull public BckndService url(@Nullable String url)
      Set the url of this BckndService instance and return the same instance.
      Parameters:
      url - service broker url
      Returns:
      The same instance of this BckndService class
    • getUrl

      @Nonnull public String getUrl()
      service broker url
      Returns:
      url The url of this BckndService instance.
    • setUrl

      public void setUrl(@Nullable String url)
      Set the url of this BckndService instance.
      Parameters:
      url - service broker url
    • status

      @Nonnull public BckndService status(@Nullable BckndService.StatusEnum status)
      Set the status of this BckndService instance and return the same instance.
      Parameters:
      status - aggregated status of the service
      Returns:
      The same instance of this BckndService class
    • getStatus

      @Nonnull public BckndService.StatusEnum getStatus()
      aggregated status of the service
      Returns:
      status The status of this BckndService instance.
    • setStatus

      public void setStatus(@Nullable BckndService.StatusEnum status)
      Set the status of this BckndService instance.
      Parameters:
      status - aggregated status of the service
    • statusMessage

      @Nonnull public BckndService statusMessage(@Nullable String statusMessage)
      Set the statusMessage of this BckndService instance and return the same instance.
      Parameters:
      statusMessage - status message
      Returns:
      The same instance of this BckndService class
    • getStatusMessage

      @Nonnull public String getStatusMessage()
      status message
      Returns:
      statusMessage The statusMessage of this BckndService instance.
    • setStatusMessage

      public void setStatusMessage(@Nullable String statusMessage)
      Set the statusMessage of this BckndService instance.
      Parameters:
      statusMessage - status message
    • getCustomFieldNames

      @Nonnull public Set<String> getCustomFieldNames()
      Get the names of the unrecognizable properties of the BckndService.
      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 BckndService 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 BckndService 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 BckndService 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 BckndService create()
      Create a new BckndService instance. No arguments are required.