Class Upload.Builder
- 
                    
                    - All Implemented Interfaces:
 
 public final class Upload.BuilderA builder for Upload. 
- 
                
                    
                    - 
                                
                            
                                Method SummaryModifier and Type Method Description final Upload.Builderid(String id)The Upload unique identifier, which can be referenced in API endpoints. final Upload.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final Upload.Builderbytes(Long bytes)The intended number of bytes to be uploaded. final Upload.Builderbytes(JsonField<Long> bytes)Sets Builder.bytes to an arbitrary JSON value. final Upload.BuildercreatedAt(Long createdAt)The Unix timestamp (in seconds) for when the Upload was created. final Upload.BuildercreatedAt(JsonField<Long> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final Upload.BuilderexpiresAt(Long expiresAt)The Unix timestamp (in seconds) for when the Upload will expire. final Upload.BuilderexpiresAt(JsonField<Long> expiresAt)Sets Builder.expiresAt to an arbitrary JSON value. final Upload.Builderfilename(String filename)The name of the file to be uploaded. final Upload.Builderfilename(JsonField<String> filename)Sets Builder.filename to an arbitrary JSON value. final Upload.Builderobject_(JsonValue object_)Sets the field to an arbitrary JSON value. final Upload.Builderpurpose(String purpose)The intended purpose of the file. final Upload.Builderpurpose(JsonField<String> purpose)Sets Builder.purpose to an arbitrary JSON value. final Upload.Builderstatus(Upload.Status status)The status of the Upload. final Upload.Builderstatus(JsonField<Upload.Status> status)Sets Builder.status to an arbitrary JSON value. final Upload.Builderfile(FileObject file)The Fileobject represents a document that has been uploaded to OpenAI.final Upload.Builderfile(Optional<FileObject> file)Alias for calling Builder.file with file.orElse(null).final Upload.Builderfile(JsonField<FileObject> file)Sets Builder.file to an arbitrary JSON value. final Upload.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Upload.BuilderputAdditionalProperty(String key, JsonValue value)final Upload.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Upload.BuilderremoveAdditionalProperty(String key)final Upload.BuilderremoveAllAdditionalProperties(Set<String> keys)final Uploadbuild()Returns an immutable instance of Upload. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        idfinal Upload.Builder id(String id) The Upload unique identifier, which can be referenced in API endpoints. 
 - 
                                        idfinal Upload.Builder id(JsonField<String> id) Sets Builder.id to an arbitrary JSON value. You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        bytesfinal Upload.Builder bytes(Long bytes) The intended number of bytes to be uploaded. 
 - 
                                        bytesfinal Upload.Builder bytes(JsonField<Long> bytes) Sets Builder.bytes to an arbitrary JSON value. You should usually call Builder.bytes with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        createdAtfinal Upload.Builder createdAt(Long createdAt) The Unix timestamp (in seconds) for when the Upload was created. 
 - 
                                        createdAtfinal Upload.Builder createdAt(JsonField<Long> createdAt) Sets Builder.createdAt to an arbitrary JSON value. You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        expiresAtfinal Upload.Builder expiresAt(Long expiresAt) The Unix timestamp (in seconds) for when the Upload will expire. 
 - 
                                        expiresAtfinal Upload.Builder expiresAt(JsonField<Long> expiresAt) Sets Builder.expiresAt to an arbitrary JSON value. You should usually call Builder.expiresAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        filenamefinal Upload.Builder filename(String filename) The name of the file to be uploaded. 
 - 
                                        filenamefinal Upload.Builder filename(JsonField<String> filename) Sets Builder.filename to an arbitrary JSON value. You should usually call Builder.filename with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        object_final Upload.Builder object_(JsonValue object_) 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("upload")This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        purposefinal Upload.Builder purpose(String purpose) The intended purpose of the file. Please refer here for acceptable values. 
 - 
                                        purposefinal Upload.Builder purpose(JsonField<String> purpose) Sets Builder.purpose to an arbitrary JSON value. You should usually call Builder.purpose with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        statusfinal Upload.Builder status(Upload.Status status) The status of the Upload. 
 - 
                                        statusfinal Upload.Builder status(JsonField<Upload.Status> status) Sets Builder.status to an arbitrary JSON value. You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        filefinal Upload.Builder file(FileObject file) The Fileobject represents a document that has been uploaded to OpenAI.
 - 
                                        filefinal Upload.Builder file(Optional<FileObject> file) Alias for calling Builder.file with file.orElse(null).
 - 
                                        filefinal Upload.Builder file(JsonField<FileObject> file) Sets Builder.file to an arbitrary JSON value. You should usually call Builder.file with a well-typed FileObject value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        additionalPropertiesfinal Upload.Builder additionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        putAdditionalPropertyfinal Upload.Builder putAdditionalProperty(String key, JsonValue value) 
 - 
                                        putAllAdditionalPropertiesfinal Upload.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        removeAdditionalPropertyfinal Upload.Builder removeAdditionalProperty(String key) 
 - 
                                        removeAllAdditionalPropertiesfinal Upload.Builder removeAllAdditionalProperties(Set<String> keys) 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-