Record Class DashScopeApiSpec.DashScopeImageRequest.DashScopeImageRequestInput
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.DashScopeImageRequest.DashScopeImageRequestInput
- Enclosing class:
- DashScopeApiSpec.DashScopeImageRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseImageUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themaskImageUrlrecord component.Returns the value of thenegativePromptrecord component.prompt()Returns the value of thepromptrecord component.refImg()Returns the value of therefImgrecord component.Returns the value of thesketchImageUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DashScopeImageRequestInput
public DashScopeImageRequestInput(String prompt, String negativePrompt, String refImg, String function, String baseImageUrl, String maskImageUrl, String sketchImageUrl) Creates an instance of aDashScopeImageRequestInputrecord class.- Parameters:
prompt- the value for thepromptrecord componentnegativePrompt- the value for thenegativePromptrecord componentrefImg- the value for therefImgrecord componentfunction- the value for thefunctionrecord componentbaseImageUrl- the value for thebaseImageUrlrecord componentmaskImageUrl- the value for themaskImageUrlrecord componentsketchImageUrl- the value for thesketchImageUrlrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
prompt
Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-
negativePrompt
Returns the value of thenegativePromptrecord component.- Returns:
- the value of the
negativePromptrecord component
-
refImg
Returns the value of therefImgrecord component.- Returns:
- the value of the
refImgrecord component
-
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-
baseImageUrl
Returns the value of thebaseImageUrlrecord component.- Returns:
- the value of the
baseImageUrlrecord component
-
maskImageUrl
Returns the value of themaskImageUrlrecord component.- Returns:
- the value of the
maskImageUrlrecord component
-
sketchImageUrl
Returns the value of thesketchImageUrlrecord component.- Returns:
- the value of the
sketchImageUrlrecord component
-