Record Class OpenAiImageApi.OpenAiImageRequest
java.lang.Object
java.lang.Record
org.springframework.ai.openai.api.OpenAiImageApi.OpenAiImageRequest
- Enclosing class:
- OpenAiImageApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.model()
Returns the value of themodel
record component.n()
Returns the value of then
record component.prompt()
Returns the value of theprompt
record component.quality()
Returns the value of thequality
record component.Returns the value of theresponseFormat
record component.size()
Returns the value of thesize
record component.style()
Returns the value of thestyle
record component.final String
toString()
Returns a string representation of this record class.user()
Returns the value of theuser
record component.
-
Constructor Details
-
OpenAiImageRequest
-
OpenAiImageRequest
public OpenAiImageRequest(String prompt, String model, Integer n, String quality, String responseFormat, String size, String style, String user) Creates an instance of aOpenAiImageRequest
record class.- Parameters:
prompt
- the value for theprompt
record componentmodel
- the value for themodel
record componentn
- the value for then
record componentquality
- the value for thequality
record componentresponseFormat
- the value for theresponseFormat
record componentsize
- the value for thesize
record componentstyle
- the value for thestyle
record componentuser
- the value for theuser
record 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)
. -
prompt
Returns the value of theprompt
record component.- Returns:
- the value of the
prompt
record component
-
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
n
Returns the value of then
record component.- Returns:
- the value of the
n
record component
-
quality
Returns the value of thequality
record component.- Returns:
- the value of the
quality
record component
-
responseFormat
Returns the value of theresponseFormat
record component.- Returns:
- the value of the
responseFormat
record component
-
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
style
Returns the value of thestyle
record component.- Returns:
- the value of the
style
record component
-
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-