Class MessageCreateParams.Attachment
- 
                    
                    
- All Implemented Interfaces:
 
public final class MessageCreateParams.Attachment 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageCreateParams.Attachment.BuilderA builder for Attachment.
public final classMessageCreateParams.Attachment.Tool 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final Optional<String>fileId()The ID of the file to attach to the message. final Optional<List<MessageCreateParams.Attachment.Tool>>tools()The tools to add this file to. final JsonField<String>_fileId()Returns the raw JSON value of fileId. final JsonField<List<MessageCreateParams.Attachment.Tool>>_tools()Returns the raw JSON value of tools. final Map<String, JsonValue>_additionalProperties()final MessageCreateParams.Attachment.BuildertoBuilder()final MessageCreateParams.Attachmentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageCreateParams.Attachment.Builderbuilder()Returns a mutable builder for constructing an instance of Attachment. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
tools
final Optional<List<MessageCreateParams.Attachment.Tool>> tools()
The tools to add this file to.
 
- 
                                        
_fileId
final JsonField<String> _fileId()
Returns the raw JSON value of fileId.
Unlike fileId, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_tools
final JsonField<List<MessageCreateParams.Attachment.Tool>> _tools()
Returns the raw JSON value of tools.
Unlike tools, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
 
- 
                                        
toBuilder
final MessageCreateParams.Attachment.Builder toBuilder()
 
- 
                                        
validate
final MessageCreateParams.Attachment validate()
 
- 
                                        
builder
final static MessageCreateParams.Attachment.Builder builder()
Returns a mutable builder for constructing an instance of Attachment.
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -