Class ResponseCancelEvent.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class ResponseCancelEvent.BuilderA builder for ResponseCancelEvent.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
type
final ResponseCancelEvent.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("response.cancel")This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
eventId
final ResponseCancelEvent.Builder eventId(String eventId)
Optional client-generated ID used to identify this event.
 
- 
                                        
eventId
final ResponseCancelEvent.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.
 
- 
                                        
responseId
final ResponseCancelEvent.Builder responseId(String responseId)
A specific response ID to cancel - if not provided, will cancel an in-progress response in the default conversation.
 
- 
                                        
responseId
final ResponseCancelEvent.Builder responseId(JsonField<String> responseId)
Sets Builder.responseId to an arbitrary JSON value.
You should usually call Builder.responseId 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 ResponseCancelEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final ResponseCancelEvent.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final ResponseCancelEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final ResponseCancelEvent.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final ResponseCancelEvent.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final ResponseCancelEvent build()
Returns an immutable instance of ResponseCancelEvent.
Further updates to this Builder will not mutate the returned instance.
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -