public static class ImageModel.Builder
extends java.lang.Object
构造器和说明 |
---|
Builder(ImageConfig config) |
Builder(java.lang.String apiUrl) |
限定符和类型 | 方法和说明 |
---|---|
ImageModel.Builder |
apiKey(java.lang.String apiKey) |
ImageModel |
build() |
ImageModel.Builder |
headerSet(java.lang.String key,
java.lang.String value) |
ImageModel.Builder |
model(java.lang.String model) |
ImageModel.Builder |
provider(java.lang.String provider) |
ImageModel.Builder |
timeout(java.time.Duration timeout) |
public Builder(java.lang.String apiUrl)
public Builder(ImageConfig config)
public ImageModel.Builder apiKey(java.lang.String apiKey)
public ImageModel.Builder provider(java.lang.String provider)
public ImageModel.Builder model(java.lang.String model)
public ImageModel.Builder headerSet(java.lang.String key, java.lang.String value)
public ImageModel.Builder timeout(java.time.Duration timeout)
public ImageModel build()