Class BetaTextEditorCodeExecutionToolResultErrorParam.Builder
-
- All Implemented Interfaces:
public final class BetaTextEditorCodeExecutionToolResultErrorParam.BuilderA builder for BetaTextEditorCodeExecutionToolResultErrorParam.
-
-
Method Summary
-
-
Method Detail
-
errorCode
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder errorCode(BetaTextEditorCodeExecutionToolResultErrorParam.ErrorCode errorCode)
-
errorCode
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder errorCode(JsonField<BetaTextEditorCodeExecutionToolResultErrorParam.ErrorCode> errorCode)
Sets Builder.errorCode to an arbitrary JSON value.
You should usually call Builder.errorCode with a well-typed ErrorCode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaTextEditorCodeExecutionToolResultErrorParam.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("text_editor_code_execution_tool_result_error")This method is primarily for setting the field to an undocumented or not yet supported value.
-
errorMessage
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder errorMessage(String errorMessage)
-
errorMessage
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder errorMessage(Optional<String> errorMessage)
Alias for calling Builder.errorMessage with
errorMessage.orElse(null).
-
errorMessage
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder errorMessage(JsonField<String> errorMessage)
Sets Builder.errorMessage to an arbitrary JSON value.
You should usually call Builder.errorMessage with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTextEditorCodeExecutionToolResultErrorParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaTextEditorCodeExecutionToolResultErrorParam build()
Returns an immutable instance of BetaTextEditorCodeExecutionToolResultErrorParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.errorCode()
-
-
-
-