Class RefusalContentBlock.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class RefusalContentBlock.BuilderA builder for RefusalContentBlock.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final RefusalContentBlock.Builderrefusal(String refusal)final RefusalContentBlock.Builderrefusal(JsonField<String> refusal)Sets Builder.refusal to an arbitrary JSON value. final RefusalContentBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final RefusalContentBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final RefusalContentBlock.BuilderputAdditionalProperty(String key, JsonValue value)final RefusalContentBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final RefusalContentBlock.BuilderremoveAdditionalProperty(String key)final RefusalContentBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final RefusalContentBlockbuild()Returns an immutable instance of RefusalContentBlock. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
refusal
final RefusalContentBlock.Builder refusal(String refusal)
 
- 
                                        
refusal
final RefusalContentBlock.Builder refusal(JsonField<String> refusal)
Sets Builder.refusal to an arbitrary JSON value.
You should usually call Builder.refusal 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 RefusalContentBlock.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("refusal")This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
additionalProperties
final RefusalContentBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final RefusalContentBlock.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final RefusalContentBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final RefusalContentBlock.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final RefusalContentBlock.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final RefusalContentBlock build()
Returns an immutable instance of RefusalContentBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.refusal() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -