Record Class DashScopeApiSpec.DashScopeImageRequest.DashScopeImageRequestInput

java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.DashScopeImageRequest.DashScopeImageRequestInput
Enclosing class:
DashScopeApiSpec.DashScopeImageRequest

public static record DashScopeApiSpec.DashScopeImageRequest.DashScopeImageRequestInput(String prompt, String negativePrompt, String refImg, String function, String baseImageUrl, String maskImageUrl, String sketchImageUrl) extends Record
  • Constructor Details

    • DashScopeImageRequestInput

      public DashScopeImageRequestInput(String prompt, String negativePrompt, String refImg, String function, String baseImageUrl, String maskImageUrl, String sketchImageUrl)
      Creates an instance of a DashScopeImageRequestInput record class.
      Parameters:
      prompt - the value for the prompt record component
      negativePrompt - the value for the negativePrompt record component
      refImg - the value for the refImg record component
      function - the value for the function record component
      baseImageUrl - the value for the baseImageUrl record component
      maskImageUrl - the value for the maskImageUrl record component
      sketchImageUrl - the value for the sketchImageUrl record component
  • Method Details

    • 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.
    • prompt

      public String prompt()
      Returns the value of the prompt record component.
      Returns:
      the value of the prompt record component
    • negativePrompt

      public String negativePrompt()
      Returns the value of the negativePrompt record component.
      Returns:
      the value of the negativePrompt record component
    • refImg

      public String refImg()
      Returns the value of the refImg record component.
      Returns:
      the value of the refImg record component
    • function

      public String function()
      Returns the value of the function record component.
      Returns:
      the value of the function record component
    • baseImageUrl

      public String baseImageUrl()
      Returns the value of the baseImageUrl record component.
      Returns:
      the value of the baseImageUrl record component
    • maskImageUrl

      public String maskImageUrl()
      Returns the value of the maskImageUrl record component.
      Returns:
      the value of the maskImageUrl record component
    • sketchImageUrl

      public String sketchImageUrl()
      Returns the value of the sketchImageUrl record component.
      Returns:
      the value of the sketchImageUrl record component