Class UploadCreateParams.Body
- 
                    
                    - All Implemented Interfaces:
 
 public final class UploadCreateParams.Body
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classUploadCreateParams.Body.BuilderA builder for Body. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Longbytes()The number of bytes in the file you are uploading. final Stringfilename()The name of the file to upload. final StringmimeType()The MIME type of the file. final FilePurposepurpose()The intended purpose of the uploaded file. final Optional<UploadCreateParams.ExpiresAfter>expiresAfter()The expiration policy for a file. final JsonField<Long>_bytes()Returns the raw JSON value of bytes. final JsonField<String>_filename()Returns the raw JSON value of filename. final JsonField<String>_mimeType()Returns the raw JSON value of mimeType. final JsonField<FilePurpose>_purpose()Returns the raw JSON value of purpose. final JsonField<UploadCreateParams.ExpiresAfter>_expiresAfter()Returns the raw JSON value of expiresAfter. final Map<String, JsonValue>_additionalProperties()final UploadCreateParams.Body.BuildertoBuilder()final UploadCreateParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UploadCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        mimeTypefinal String mimeType() The MIME type of the file. This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision. 
 - 
                                        purposefinal FilePurpose purpose() The intended purpose of the uploaded file. See the documentation on File purposes. 
 - 
                                        expiresAfterfinal Optional<UploadCreateParams.ExpiresAfter> expiresAfter() The expiration policy for a file. By default, files with purpose=batchexpire after 30 days and all other files are persisted until they are manually deleted.
 - 
                                        _bytesfinal JsonField<Long> _bytes() Returns the raw JSON value of bytes. Unlike bytes, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _filenamefinal JsonField<String> _filename() Returns the raw JSON value of filename. Unlike filename, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _mimeTypefinal JsonField<String> _mimeType() Returns the raw JSON value of mimeType. Unlike mimeType, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _purposefinal JsonField<FilePurpose> _purpose() Returns the raw JSON value of purpose. Unlike purpose, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _expiresAfterfinal JsonField<UploadCreateParams.ExpiresAfter> _expiresAfter() Returns the raw JSON value of expiresAfter. Unlike expiresAfter, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal UploadCreateParams.Body.Builder toBuilder() 
 - 
                                        validatefinal UploadCreateParams.Body validate() 
 - 
                                        builderfinal static UploadCreateParams.Body.Builder builder() Returns a mutable builder for constructing an instance of Body. The following fields are required: .bytes() .filename() .mimeType() .purpose()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-