Class BetaServerToolUseBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaServerToolUseBlockParam.BuilderA builder for BetaServerToolUseBlockParam.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaServerToolUseBlockParam.Builder id(String id)
-
id
final BetaServerToolUseBlockParam.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
input
final BetaServerToolUseBlockParam.Builder input(JsonValue input)
-
name
final BetaServerToolUseBlockParam.Builder name(BetaServerToolUseBlockParam.Name name)
-
name
final BetaServerToolUseBlockParam.Builder name(JsonField<BetaServerToolUseBlockParam.Name> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed Name value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaServerToolUseBlockParam.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("server_tool_use")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BetaServerToolUseBlockParam.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaServerToolUseBlockParam.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaServerToolUseBlockParam.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaServerToolUseBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaServerToolUseBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaServerToolUseBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaServerToolUseBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaServerToolUseBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaServerToolUseBlockParam build()
Returns an immutable instance of BetaServerToolUseBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .input() .name()
-
-
-
-