Class BetaBashCodeExecutionToolResultBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaBashCodeExecutionToolResultBlockParam.BuilderA builder for BetaBashCodeExecutionToolResultBlockParam.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaBashCodeExecutionToolResultBlockParam.Builder content(BetaBashCodeExecutionToolResultBlockParam.Content content)
-
content
final BetaBashCodeExecutionToolResultBlockParam.Builder content(JsonField<BetaBashCodeExecutionToolResultBlockParam.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 BetaBashCodeExecutionToolResultBlockParam.Builder content(BetaBashCodeExecutionToolResultErrorParam betaBashCodeExecutionToolResultErrorParam)
Alias for calling content with
Content.ofBetaBashCodeExecutionToolResultErrorParam(betaBashCodeExecutionToolResultErrorParam).
-
content
final BetaBashCodeExecutionToolResultBlockParam.Builder content(BetaBashCodeExecutionToolResultError betaBashCodeExecutionToolResultErrorParam)
Alias for calling content with
betaBashCodeExecutionToolResultErrorParam.toParam().
-
content
final BetaBashCodeExecutionToolResultBlockParam.Builder content(BetaBashCodeExecutionResultBlockParam betaBashCodeExecutionResultBlockParam)
Alias for calling content with
Content.ofBetaBashCodeExecutionResultBlockParam(betaBashCodeExecutionResultBlockParam).
-
content
final BetaBashCodeExecutionToolResultBlockParam.Builder content(BetaBashCodeExecutionResultBlock betaBashCodeExecutionResultBlockParam)
Alias for calling content with
betaBashCodeExecutionResultBlockParam.toParam().
-
toolUseId
final BetaBashCodeExecutionToolResultBlockParam.Builder toolUseId(String toolUseId)
-
toolUseId
final BetaBashCodeExecutionToolResultBlockParam.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 BetaBashCodeExecutionToolResultBlockParam.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 BetaBashCodeExecutionToolResultBlockParam.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaBashCodeExecutionToolResultBlockParam.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaBashCodeExecutionToolResultBlockParam.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 BetaBashCodeExecutionToolResultBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaBashCodeExecutionToolResultBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaBashCodeExecutionToolResultBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaBashCodeExecutionToolResultBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaBashCodeExecutionToolResultBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaBashCodeExecutionToolResultBlockParam build()
Returns an immutable instance of BetaBashCodeExecutionToolResultBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .toolUseId()
-
-
-
-