Class ErrorEvent.Error.Builder
-
- All Implemented Interfaces:
public final class ErrorEvent.Error.Builder
A builder for Error.
-
-
Method Summary
-
-
Method Detail
-
message
final ErrorEvent.Error.Builder message(String message)
A human-readable error message.
-
message
final ErrorEvent.Error.Builder message(JsonField<String> message)
Sets Builder.message to an arbitrary JSON value.
You should usually call Builder.message 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 ErrorEvent.Error.Builder type(String type)
The type of error (e.g., "invalid_request_error", "server_error").
-
type
final ErrorEvent.Error.Builder type(JsonField<String> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
code
final ErrorEvent.Error.Builder code(String code)
Error code, if any.
-
code
final ErrorEvent.Error.Builder code(Optional<String> code)
Alias for calling Builder.code with
code.orElse(null)
.
-
code
final ErrorEvent.Error.Builder code(JsonField<String> code)
Sets Builder.code to an arbitrary JSON value.
You should usually call Builder.code with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final ErrorEvent.Error.Builder eventId(String eventId)
The event_id of the client event that caused the error, if applicable.
-
eventId
final ErrorEvent.Error.Builder eventId(Optional<String> eventId)
Alias for calling Builder.eventId with
eventId.orElse(null)
.
-
eventId
final ErrorEvent.Error.Builder eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value.
You should usually call Builder.eventId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
param
final ErrorEvent.Error.Builder param(String param)
Parameter related to the error, if any.
-
param
final ErrorEvent.Error.Builder param(Optional<String> param)
Alias for calling Builder.param with
param.orElse(null)
.
-
param
final ErrorEvent.Error.Builder param(JsonField<String> param)
Sets Builder.param to an arbitrary JSON value.
You should usually call Builder.param 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 ErrorEvent.Error.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ErrorEvent.Error.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ErrorEvent.Error.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ErrorEvent.Error.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ErrorEvent.Error.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ErrorEvent.Error build()
Returns an immutable instance of Error.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.message() .type()
-
-
-
-