Record Class PromptConfigDTO

java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dto.PromptConfigDTO

public record PromptConfigDTO(String id, String name, String promptType, String systemPrompt, Boolean enabled, String description, String creator) extends Record
提示词配置请求DTO
Author:
Makoto
  • Constructor Details

    • PromptConfigDTO

      public PromptConfigDTO(String promptType, String systemPrompt)
    • PromptConfigDTO

      public PromptConfigDTO(String id, String name, String promptType, String systemPrompt, Boolean enabled, String description, String creator)
      Creates an instance of a PromptConfigDTO record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      promptType - the value for the promptType record component
      systemPrompt - the value for the systemPrompt record component
      enabled - the value for the enabled record component
      description - the value for the description record component
      creator - the value for the creator record component
  • Method Details

    • toString

      public 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
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • creator

      public String creator()
      Returns the value of the creator record component.
      Returns:
      the value of the creator record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • promptType

      public String promptType()
      Returns the value of the promptType record component.
      Returns:
      the value of the promptType record component
    • systemPrompt

      public String systemPrompt()
      Returns the value of the systemPrompt record component.
      Returns:
      the value of the systemPrompt record component
    • enabled

      public Boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • 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.