Class FileCreateParams.Body.Builder
- 
                    
                    - All Implemented Interfaces:
 
 public final class FileCreateParams.Body.BuilderA builder for Body. 
- 
                
                    
                    - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        filefinal FileCreateParams.Body.Builder file(InputStream file) The File object (not file name) to be uploaded. 
 - 
                                        filefinal FileCreateParams.Body.Builder file(MultipartField<InputStream> file) Sets Builder.file to an arbitrary multipart value. You should usually call Builder.file with a well-typed InputStream value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        filefinal FileCreateParams.Body.Builder file(ByteArray file) The File object (not file name) to be uploaded. 
 - 
                                        filefinal FileCreateParams.Body.Builder file(Path path) The File object (not file name) to be uploaded. 
 - 
                                        purposefinal FileCreateParams.Body.Builder purpose(FilePurpose purpose) The intended purpose of the uploaded file. One of: - assistants: Used in the Assistants API -batch: Used in the Batch API -fine-tune: Used for fine-tuning -vision: Images used for vision fine-tuning -user_data: Flexible file type for any purpose -evals: Used for eval data sets
 - 
                                        purposefinal FileCreateParams.Body.Builder purpose(MultipartField<FilePurpose> purpose) Sets Builder.purpose to an arbitrary multipart value. You should usually call Builder.purpose with a well-typed FilePurpose value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        expiresAfterfinal FileCreateParams.Body.Builder expiresAfter(FileCreateParams.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.
 - 
                                        expiresAfterfinal FileCreateParams.Body.Builder expiresAfter(MultipartField<FileCreateParams.ExpiresAfter> expiresAfter) Sets Builder.expiresAfter to an arbitrary multipart value. You should usually call Builder.expiresAfter with a well-typed ExpiresAfter value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        additionalPropertiesfinal FileCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        putAdditionalPropertyfinal FileCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value) 
 - 
                                        putAllAdditionalPropertiesfinal FileCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        removeAdditionalPropertyfinal FileCreateParams.Body.Builder removeAdditionalProperty(String key) 
 - 
                                        removeAllAdditionalPropertiesfinal FileCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys) 
 - 
                                        buildfinal FileCreateParams.Body build() Returns an immutable instance of Body. Further updates to this Builder will not mutate the returned instance. The following fields are required: .file() .purpose()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-