Record Class StabilityAiApi.GenerateImageResponse
java.lang.Object
java.lang.Record
org.springframework.ai.stabilityai.api.StabilityAiApi.GenerateImageResponse
- Enclosing class:
- StabilityAiApi
public static record StabilityAiApi.GenerateImageResponse(String result, List<StabilityAiApi.GenerateImageResponse.Artifacts> artifacts)
extends Record
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
-
Constructor Summary
ConstructorDescriptionGenerateImageResponse
(String result, List<StabilityAiApi.GenerateImageResponse.Artifacts> artifacts) Creates an instance of aGenerateImageResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifacts
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.result()
Returns the value of theresult
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GenerateImageResponse
public GenerateImageResponse(String result, List<StabilityAiApi.GenerateImageResponse.Artifacts> artifacts) Creates an instance of aGenerateImageResponse
record class.- Parameters:
result
- the value for theresult
record componentartifacts
- the value for theartifacts
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)
. -
result
Returns the value of theresult
record component.- Returns:
- the value of the
result
record component
-
artifacts
Returns the value of theartifacts
record component.- Returns:
- the value of the
artifacts
record component
-