Record Class DashScopeApiSpec.DashScopeImageRequest.DashScopeImageRequestParameter
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.DashScopeImageRequest.DashScopeImageRequestParameter
- Enclosing class:
- DashScopeApiSpec.DashScopeImageRequest
public static record DashScopeApiSpec.DashScopeImageRequest.DashScopeImageRequestParameter(String style, String size, Integer n, Integer seed, Float refStrength, String refMode, Boolean promptExtend, Boolean watermark, Integer sketchWeight, Boolean sketchExtraction, Integer[][] sketchColor, Integer[][] maskColor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDashScopeImageRequestParameter(String style, String size, Integer n, Integer seed, Float refStrength, String refMode, Boolean promptExtend, Boolean watermark, Integer sketchWeight, Boolean sketchExtraction, Integer[][] sketchColor, Integer[][] maskColor) Creates an instance of aDashScopeImageRequestParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Integer[][]Returns the value of themaskColorrecord component.n()Returns the value of thenrecord component.Returns the value of thepromptExtendrecord component.refMode()Returns the value of therefModerecord component.Returns the value of therefStrengthrecord component.seed()Returns the value of theseedrecord component.size()Returns the value of thesizerecord component.Integer[][]Returns the value of thesketchColorrecord component.Returns the value of thesketchExtractionrecord component.Returns the value of thesketchWeightrecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewatermarkrecord component.
-
Constructor Details
-
DashScopeImageRequestParameter
public DashScopeImageRequestParameter(String style, String size, Integer n, Integer seed, Float refStrength, String refMode, Boolean promptExtend, Boolean watermark, Integer sketchWeight, Boolean sketchExtraction, Integer[][] sketchColor, Integer[][] maskColor) Creates an instance of aDashScopeImageRequestParameterrecord class.- Parameters:
style- the value for thestylerecord componentsize- the value for thesizerecord componentn- the value for thenrecord componentseed- the value for theseedrecord componentrefStrength- the value for therefStrengthrecord componentrefMode- the value for therefModerecord componentpromptExtend- the value for thepromptExtendrecord componentwatermark- the value for thewatermarkrecord componentsketchWeight- the value for thesketchWeightrecord componentsketchExtraction- the value for thesketchExtractionrecord componentsketchColor- the value for thesketchColorrecord componentmaskColor- the value for themaskColorrecord 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). -
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
n
Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
refStrength
Returns the value of therefStrengthrecord component.- Returns:
- the value of the
refStrengthrecord component
-
refMode
Returns the value of therefModerecord component.- Returns:
- the value of the
refModerecord component
-
promptExtend
Returns the value of thepromptExtendrecord component.- Returns:
- the value of the
promptExtendrecord component
-
watermark
Returns the value of thewatermarkrecord component.- Returns:
- the value of the
watermarkrecord component
-
sketchWeight
Returns the value of thesketchWeightrecord component.- Returns:
- the value of the
sketchWeightrecord component
-
sketchExtraction
Returns the value of thesketchExtractionrecord component.- Returns:
- the value of the
sketchExtractionrecord component
-
sketchColor
Returns the value of thesketchColorrecord component.- Returns:
- the value of the
sketchColorrecord component
-
maskColor
Returns the value of themaskColorrecord component.- Returns:
- the value of the
maskColorrecord component
-