Record Class StabilityAiApi.GenerateImageRequest
java.lang.Object
java.lang.Record
org.springframework.ai.stabilityai.api.StabilityAiApi.GenerateImageRequest
- Enclosing class:
- StabilityAiApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionGenerateImageRequest(List<StabilityAiApi.GenerateImageRequest.TextPrompts> textPrompts, Integer height, Integer width, Float cfgScale, String clipGuidancePreset, String sampler, Integer samples, Long seed, Integer steps, String stylePreset) Creates an instance of aGenerateImageRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()cfgScale()Returns the value of thecfgScalerecord component.Returns the value of theclipGuidancePresetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.sampler()Returns the value of thesamplerrecord component.samples()Returns the value of thesamplesrecord component.seed()Returns the value of theseedrecord component.steps()Returns the value of thestepsrecord component.Returns the value of thestylePresetrecord component.Returns the value of thetextPromptsrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
GenerateImageRequest
public GenerateImageRequest(List<StabilityAiApi.GenerateImageRequest.TextPrompts> textPrompts, Integer height, Integer width, Float cfgScale, String clipGuidancePreset, String sampler, Integer samples, Long seed, Integer steps, String stylePreset) Creates an instance of aGenerateImageRequestrecord class.- Parameters:
textPrompts- the value for thetextPromptsrecord componentheight- the value for theheightrecord componentwidth- the value for thewidthrecord componentcfgScale- the value for thecfgScalerecord componentclipGuidancePreset- the value for theclipGuidancePresetrecord componentsampler- the value for thesamplerrecord componentsamples- the value for thesamplesrecord componentseed- the value for theseedrecord componentsteps- the value for thestepsrecord componentstylePreset- the value for thestylePresetrecord component
-
-
Method Details
-
builder
-
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). -
textPrompts
Returns the value of thetextPromptsrecord component.- Returns:
- the value of the
textPromptsrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
cfgScale
Returns the value of thecfgScalerecord component.- Returns:
- the value of the
cfgScalerecord component
-
clipGuidancePreset
Returns the value of theclipGuidancePresetrecord component.- Returns:
- the value of the
clipGuidancePresetrecord component
-
sampler
Returns the value of thesamplerrecord component.- Returns:
- the value of the
samplerrecord component
-
samples
Returns the value of thesamplesrecord component.- Returns:
- the value of the
samplesrecord component
-
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-
stylePreset
Returns the value of thestylePresetrecord component.- Returns:
- the value of the
stylePresetrecord component
-