Class ErrorEvent.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class ErrorEvent.BuilderA builder for ErrorEvent.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final ErrorEvent.Buildererror(ErrorEvent.Error error)Details of the error. final ErrorEvent.Buildererror(JsonField<ErrorEvent.Error> error)Sets Builder.error to an arbitrary JSON value. final ErrorEvent.BuildereventId(String eventId)The unique ID of the server event. final ErrorEvent.BuildereventId(JsonField<String> eventId)Sets Builder.eventId to an arbitrary JSON value. final ErrorEvent.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ErrorEvent.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ErrorEvent.BuilderputAdditionalProperty(String key, JsonValue value)final ErrorEvent.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ErrorEvent.BuilderremoveAdditionalProperty(String key)final ErrorEvent.BuilderremoveAllAdditionalProperties(Set<String> keys)final ErrorEventbuild()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() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -