Class BashCodeExecutionToolResultBlockParam.Builder
-
- All Implemented Interfaces:
public final class BashCodeExecutionToolResultBlockParam.BuilderA builder for BashCodeExecutionToolResultBlockParam.
-
-
Method Summary
-
-
Method Detail
-
content
final BashCodeExecutionToolResultBlockParam.Builder content(BashCodeExecutionToolResultBlockParam.Content content)
-
content
final BashCodeExecutionToolResultBlockParam.Builder content(JsonField<BashCodeExecutionToolResultBlockParam.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BashCodeExecutionToolResultBlockParam.Builder content(BashCodeExecutionToolResultErrorParam bashCodeExecutionToolResultErrorParam)
Alias for calling content with
Content.ofBashCodeExecutionToolResultErrorParam(bashCodeExecutionToolResultErrorParam).
-
content
final BashCodeExecutionToolResultBlockParam.Builder content(BashCodeExecutionToolResultError bashCodeExecutionToolResultErrorParam)
Alias for calling content with
bashCodeExecutionToolResultErrorParam.toParam().
-
content
final BashCodeExecutionToolResultBlockParam.Builder content(BashCodeExecutionResultBlockParam bashCodeExecutionResultBlockParam)
Alias for calling content with
Content.ofBashCodeExecutionResultBlockParam(bashCodeExecutionResultBlockParam).
-
content
final BashCodeExecutionToolResultBlockParam.Builder content(BashCodeExecutionResultBlock bashCodeExecutionResultBlockParam)
Alias for calling content with
bashCodeExecutionResultBlockParam.toParam().
-
toolUseId
final BashCodeExecutionToolResultBlockParam.Builder toolUseId(String toolUseId)
-
toolUseId
final BashCodeExecutionToolResultBlockParam.Builder toolUseId(JsonField<String> toolUseId)
Sets Builder.toolUseId to an arbitrary JSON value.
You should usually call Builder.toolUseId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BashCodeExecutionToolResultBlockParam.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("bash_code_execution_tool_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BashCodeExecutionToolResultBlockParam.Builder cacheControl(CacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BashCodeExecutionToolResultBlockParam.Builder cacheControl(Optional<CacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BashCodeExecutionToolResultBlockParam.Builder cacheControl(JsonField<CacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed CacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BashCodeExecutionToolResultBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BashCodeExecutionToolResultBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BashCodeExecutionToolResultBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BashCodeExecutionToolResultBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BashCodeExecutionToolResultBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BashCodeExecutionToolResultBlockParam build()
Returns an immutable instance of BashCodeExecutionToolResultBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .toolUseId()
-
-
-
-