Class BetaManagedAgentsImageBlock.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsImageBlock.BuilderA builder for BetaManagedAgentsImageBlock.
-
-
Method Summary
-
-
Method Detail
-
source
final BetaManagedAgentsImageBlock.Builder source(BetaManagedAgentsImageBlock.Source source)
Union type for image source variants.
-
source
final BetaManagedAgentsImageBlock.Builder source(JsonField<BetaManagedAgentsImageBlock.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final BetaManagedAgentsImageBlock.Builder source(BetaManagedAgentsBase64ImageSource base64)
Alias for calling source with
Source.ofBase64(base64).
-
source
final BetaManagedAgentsImageBlock.Builder source(BetaManagedAgentsUrlImageSource url)
Alias for calling source with
Source.ofUrl(url).
-
source
final BetaManagedAgentsImageBlock.Builder source(BetaManagedAgentsFileImageSource file)
Alias for calling source with
Source.ofFile(file).
-
urlSource
final BetaManagedAgentsImageBlock.Builder urlSource(String url)
Alias for calling source with the following:
BetaManagedAgentsUrlImageSource.builder() .type(BetaManagedAgentsUrlImageSource.Type.URL) .url(url) .build()
-
fileSource
final BetaManagedAgentsImageBlock.Builder fileSource(String fileId)
Alias for calling source with the following:
BetaManagedAgentsFileImageSource.builder() .type(BetaManagedAgentsFileImageSource.Type.FILE) .fileId(fileId) .build()
-
type
final BetaManagedAgentsImageBlock.Builder type(BetaManagedAgentsImageBlock.Type type)
-
type
final BetaManagedAgentsImageBlock.Builder type(JsonField<BetaManagedAgentsImageBlock.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsImageBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsImageBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsImageBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsImageBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsImageBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsImageBlock build()
Returns an immutable instance of BetaManagedAgentsImageBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.source() .type()
-
-
-
-