Record Class QianFanImageApi.QianFanImageRequest
java.lang.Object
java.lang.Record
org.springframework.ai.qianfan.api.QianFanImageApi.QianFanImageRequest
- Enclosing class:
- QianFanImageApi
-
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.Returns the value of thenegativePrompt
record component.prompt()
Returns the value of theprompt
record component.seed()
Returns the value of theseed
record component.size()
Returns the value of thesize
record component.steps()
Returns the value of thesteps
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
-
QianFanImageRequest
-
QianFanImageRequest
public QianFanImageRequest(String model, String prompt, String negativePrompt, String size, Integer n, Integer steps, Integer seed, String style, String user) Creates an instance of aQianFanImageRequest
record class.- Parameters:
model
- the value for themodel
record componentprompt
- the value for theprompt
record componentnegativePrompt
- the value for thenegativePrompt
record componentsize
- the value for thesize
record componentn
- the value for then
record componentsteps
- the value for thesteps
record componentseed
- the value for theseed
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)
. -
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
prompt
Returns the value of theprompt
record component.- Returns:
- the value of the
prompt
record component
-
negativePrompt
Returns the value of thenegativePrompt
record component.- Returns:
- the value of the
negativePrompt
record component
-
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
n
Returns the value of then
record component.- Returns:
- the value of the
n
record component
-
steps
Returns the value of thesteps
record component.- Returns:
- the value of the
steps
record component
-
seed
Returns the value of theseed
record component.- Returns:
- the value of the
seed
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
-