Record Class StabilityAiApi.GenerateImageRequest
java.lang.Object
java.lang.Record
org.springframework.ai.stabilityai.api.StabilityAiApi.GenerateImageRequest
- Enclosing class:
- StabilityAiApi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
-
Constructor Summary
ConstructorDescriptionGenerateImageRequest
(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 aGenerateImageRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
cfgScale()
Returns the value of thecfgScale
record component.Returns the value of theclipGuidancePreset
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.height()
Returns the value of theheight
record component.sampler()
Returns the value of thesampler
record component.samples()
Returns the value of thesamples
record component.seed()
Returns the value of theseed
record component.steps()
Returns the value of thesteps
record component.Returns the value of thestylePreset
record component.Returns the value of thetextPrompts
record component.final String
toString()
Returns a string representation of this record class.width()
Returns the value of thewidth
record 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 aGenerateImageRequest
record class.- Parameters:
textPrompts
- the value for thetextPrompts
record componentheight
- the value for theheight
record componentwidth
- the value for thewidth
record componentcfgScale
- the value for thecfgScale
record componentclipGuidancePreset
- the value for theclipGuidancePreset
record componentsampler
- the value for thesampler
record componentsamples
- the value for thesamples
record componentseed
- the value for theseed
record componentsteps
- the value for thesteps
record componentstylePreset
- the value for thestylePreset
record 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 thetextPrompts
record component.- Returns:
- the value of the
textPrompts
record component
-
height
Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
width
Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
cfgScale
Returns the value of thecfgScale
record component.- Returns:
- the value of the
cfgScale
record component
-
clipGuidancePreset
Returns the value of theclipGuidancePreset
record component.- Returns:
- the value of the
clipGuidancePreset
record component
-
sampler
Returns the value of thesampler
record component.- Returns:
- the value of the
sampler
record component
-
samples
Returns the value of thesamples
record component.- Returns:
- the value of the
samples
record component
-
seed
Returns the value of theseed
record component.- Returns:
- the value of the
seed
record component
-
steps
Returns the value of thesteps
record component.- Returns:
- the value of the
steps
record component
-
stylePreset
Returns the value of thestylePreset
record component.- Returns:
- the value of the
stylePreset
record component
-