Class BetaCodeExecutionResultBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaCodeExecutionResultBlockParam.BuilderA builder for BetaCodeExecutionResultBlockParam.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaCodeExecutionResultBlockParam.Builder content(List<BetaCodeExecutionOutputBlockParam> content)
-
content
final BetaCodeExecutionResultBlockParam.Builder content(JsonField<List<BetaCodeExecutionOutputBlockParam>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<BetaCodeExecutionOutputBlockParam>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final BetaCodeExecutionResultBlockParam.Builder addContent(BetaCodeExecutionOutputBlockParam content)
Adds a single BetaCodeExecutionOutputBlockParam to Builder.content.
-
addContent
final BetaCodeExecutionResultBlockParam.Builder addContent(BetaCodeExecutionOutputBlock content)
Alias for calling addContent with
content.toParam().
-
returnCode
final BetaCodeExecutionResultBlockParam.Builder returnCode(Long returnCode)
-
returnCode
final BetaCodeExecutionResultBlockParam.Builder returnCode(JsonField<Long> returnCode)
Sets Builder.returnCode to an arbitrary JSON value.
You should usually call Builder.returnCode with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stderr
final BetaCodeExecutionResultBlockParam.Builder stderr(String stderr)
-
stderr
final BetaCodeExecutionResultBlockParam.Builder stderr(JsonField<String> stderr)
Sets Builder.stderr to an arbitrary JSON value.
You should usually call Builder.stderr with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stdout
final BetaCodeExecutionResultBlockParam.Builder stdout(String stdout)
-
stdout
final BetaCodeExecutionResultBlockParam.Builder stdout(JsonField<String> stdout)
Sets Builder.stdout to an arbitrary JSON value.
You should usually call Builder.stdout 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 BetaCodeExecutionResultBlockParam.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("code_execution_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaCodeExecutionResultBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaCodeExecutionResultBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaCodeExecutionResultBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaCodeExecutionResultBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaCodeExecutionResultBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaCodeExecutionResultBlockParam build()
Returns an immutable instance of BetaCodeExecutionResultBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .returnCode() .stderr() .stdout()
-
-
-
-