Class UltraControlNet

java.lang.Object
cloud.liblibai.openapi.client.model.UltraControlNet

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-05T15:10:08.947334966+08:00[Asia/Shanghai]", comments="Generator version: 7.10.0") public class UltraControlNet extends Object
构图控制
  • Field Details

  • Constructor Details

    • UltraControlNet

      public UltraControlNet()
  • Method Details

    • controlType

      public UltraControlNet controlType(@Nullable UltraControlNet.ControlTypeEnum controlType)
    • getControlType

      @Nullable public UltraControlNet.ControlTypeEnum getControlType()
      控制类型
      Returns:
      controlType
    • setControlType

      public void setControlType(@Nullable UltraControlNet.ControlTypeEnum controlType)
    • controlImage

      public UltraControlNet controlImage(@Nullable URI controlImage)
    • getControlImage

      @Nullable public URI getControlImage()
      参考图可公网访问的完整URL
      Returns:
      controlImage
    • setControlImage

      public void setControlImage(@Nullable URI controlImage)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 UltraControlNet
    • fromJson

      public static UltraControlNet fromJson(String jsonString) throws IOException
      Create an instance of UltraControlNet given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of UltraControlNet
      Throws:
      IOException - if the JSON string is invalid with respect to UltraControlNet
    • toJson

      public String toJson()
      Convert an instance of UltraControlNet to an JSON string
      Returns:
      JSON string