Record Class DashScopeApiSpec.DashScopeImageGenerationRequest.DashScopeImageGenerationRequestParameter
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.DashScopeImageGenerationRequest.DashScopeImageGenerationRequestParameter
- Enclosing class:
- DashScopeApiSpec.DashScopeImageGenerationRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenableInterleaverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxImagesrecord component.n()Returns the value of thenrecord component.Returns the value of thenegativePromptrecord component.Returns the value of thepromptExtendrecord component.seed()Returns the value of theseedrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewatermarkrecord component.
-
Constructor Details
-
DashScopeImageGenerationRequestParameter
public DashScopeImageGenerationRequestParameter(String negativePrompt, String size, Boolean enableInterleave, Integer n, Integer maxImages, Integer seed, Boolean promptExtend, Boolean watermark) Creates an instance of aDashScopeImageGenerationRequestParameterrecord class.- Parameters:
negativePrompt- the value for thenegativePromptrecord componentsize- the value for thesizerecord componentenableInterleave- the value for theenableInterleaverecord componentn- the value for thenrecord componentmaxImages- the value for themaxImagesrecord componentseed- the value for theseedrecord componentpromptExtend- the value for thepromptExtendrecord componentwatermark- the value for thewatermarkrecord 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). -
negativePrompt
Returns the value of thenegativePromptrecord component.- Returns:
- the value of the
negativePromptrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
enableInterleave
Returns the value of theenableInterleaverecord component.- Returns:
- the value of the
enableInterleaverecord component
-
n
Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
maxImages
Returns the value of themaxImagesrecord component.- Returns:
- the value of the
maxImagesrecord component
-
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord 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
-