Class ErrorEvent.Builder
-
- All Implemented Interfaces:
public final class ErrorEvent.Builder
A builder for ErrorEvent.
-
-
Method Summary
Modifier and Type Method Description final ErrorEvent.Builder
error(ErrorEvent.Error error)
Details of the error. final ErrorEvent.Builder
error(JsonField<ErrorEvent.Error> error)
Sets Builder.error to an arbitrary JSON value. final ErrorEvent.Builder
eventId(String eventId)
The unique ID of the server event. final ErrorEvent.Builder
eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value. final ErrorEvent.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ErrorEvent.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ErrorEvent.Builder
putAdditionalProperty(String key, JsonValue value)
final ErrorEvent.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ErrorEvent.Builder
removeAdditionalProperty(String key)
final ErrorEvent.Builder
removeAllAdditionalProperties(Set<String> keys)
final ErrorEvent
build()
Returns an immutable instance of ErrorEvent. -
-
Method Detail
-
error
final ErrorEvent.Builder error(ErrorEvent.Error error)
Details of the error.
-
error
final ErrorEvent.Builder error(JsonField<ErrorEvent.Error> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error with a well-typed Error value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final ErrorEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final ErrorEvent.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.
-
type
final ErrorEvent.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("error")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ErrorEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ErrorEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ErrorEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ErrorEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ErrorEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ErrorEvent build()
Returns an immutable instance of ErrorEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.error() .eventId()
-
-
-
-