Class ImageToImageUltraRequestGenerateParams
java.lang.Object
cloud.liblibai.openapi.client.model.ImageToImageUltraRequestGenerateParams
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-05T18:03:35.942947793+08:00[Asia/Shanghai]",
comments="Generator version: 7.10.0")
public class ImageToImageUltraRequestGenerateParams
extends Object
ImageToImageUltraRequestGenerateParams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontrolnet(UltraControlNet controlnet) booleanCreate an instance of ImageToImageUltraRequestGenerateParams given an JSON stringGet controlnet单次生图张数 minimum: 1 maximum: 4正向提示词,文本sourceImage 参考图可公网访问的完整URLgetSteps()采样步数inthashCode()voidsetControlnet(UltraControlNet controlnet) voidsetImgCount(Integer imgCount) voidvoidsetSourceImage(String sourceImage) voidsourceImage(String sourceImage) toJson()Convert an instance of ImageToImageUltraRequestGenerateParams to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_PROMPT
- See Also:
-
SERIALIZED_NAME_SOURCE_IMAGE
- See Also:
-
SERIALIZED_NAME_IMG_COUNT
- See Also:
-
SERIALIZED_NAME_STEPS
- See Also:
-
SERIALIZED_NAME_CONTROLNET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ImageToImageUltraRequestGenerateParams
public ImageToImageUltraRequestGenerateParams()
-
-
Method Details
-
prompt
-
getPrompt
-
setPrompt
-
sourceImage
-
getSourceImage
-
setSourceImage
-
imgCount
-
getImgCount
-
setImgCount
-
steps
-
getSteps
-
setSteps
-
controlnet
-
getControlnet
-
setControlnet
-
equals
-
hashCode
-
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ImageToImageUltraRequestGenerateParams
-
fromJson
Create an instance of ImageToImageUltraRequestGenerateParams given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ImageToImageUltraRequestGenerateParams
- Throws:
IOException- if the JSON string is invalid with respect to ImageToImageUltraRequestGenerateParams
-
toJson
Convert an instance of ImageToImageUltraRequestGenerateParams to an JSON string- Returns:
- JSON string
-