Record Class StabilityAiApi.GenerateImageRequest

java.lang.Object
java.lang.Record
org.springframework.ai.stabilityai.api.StabilityAiApi.GenerateImageRequest
Enclosing class:
StabilityAiApi

public static record StabilityAiApi.GenerateImageRequest(List<StabilityAiApi.GenerateImageRequest.TextPrompts> textPrompts, Integer height, Integer width, Float cfgScale, String clipGuidancePreset, String sampler, Integer samples, Long seed, Integer steps, String stylePreset) extends Record
  • 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 a GenerateImageRequest record class.
      Parameters:
      textPrompts - the value for the textPrompts record component
      height - the value for the height record component
      width - the value for the width record component
      cfgScale - the value for the cfgScale record component
      clipGuidancePreset - the value for the clipGuidancePreset record component
      sampler - the value for the sampler record component
      samples - the value for the samples record component
      seed - the value for the seed record component
      steps - the value for the steps record component
      stylePreset - the value for the stylePreset record component
  • Method Details

    • builder

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • textPrompts

      Returns the value of the textPrompts record component.
      Returns:
      the value of the textPrompts record component
    • height

      public Integer height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • width

      public Integer width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • cfgScale

      public Float cfgScale()
      Returns the value of the cfgScale record component.
      Returns:
      the value of the cfgScale record component
    • clipGuidancePreset

      public String clipGuidancePreset()
      Returns the value of the clipGuidancePreset record component.
      Returns:
      the value of the clipGuidancePreset record component
    • sampler

      public String sampler()
      Returns the value of the sampler record component.
      Returns:
      the value of the sampler record component
    • samples

      public Integer samples()
      Returns the value of the samples record component.
      Returns:
      the value of the samples record component
    • seed

      public Long seed()
      Returns the value of the seed record component.
      Returns:
      the value of the seed record component
    • steps

      public Integer steps()
      Returns the value of the steps record component.
      Returns:
      the value of the steps record component
    • stylePreset

      public String stylePreset()
      Returns the value of the stylePreset record component.
      Returns:
      the value of the stylePreset record component