public class UploadWithPreflightCheckRequestBody extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UploadWithPreflightCheckRequestBody.Builder |
| Modifier and Type | Field and Description |
|---|---|
UploadWithPreflightCheckRequestBodyAttributesField |
attributes |
InputStream |
file
The content of the file to upload to Box.
|
String |
fileContentType |
String |
fileFileName |
| Modifier | Constructor and Description |
|---|---|
protected |
UploadWithPreflightCheckRequestBody(UploadWithPreflightCheckRequestBody.Builder builder) |
|
UploadWithPreflightCheckRequestBody(UploadWithPreflightCheckRequestBodyAttributesField attributes,
InputStream file) |
| Modifier and Type | Method and Description |
|---|---|
UploadWithPreflightCheckRequestBodyAttributesField |
getAttributes() |
InputStream |
getFile() |
String |
getFileContentType() |
String |
getFileFileName() |
public final UploadWithPreflightCheckRequestBodyAttributesField attributes
public final InputStream file
<Message warning>
The `attributes` part of the body must come **before** the `file` part. Requests that do not follow this format when uploading the file will receive a HTTP `400` error with a `metadata_after_file_contents` error code.
</Message>
public String fileFileName
public String fileContentType
public UploadWithPreflightCheckRequestBody(UploadWithPreflightCheckRequestBodyAttributesField attributes, InputStream file)
protected UploadWithPreflightCheckRequestBody(UploadWithPreflightCheckRequestBody.Builder builder)
public UploadWithPreflightCheckRequestBodyAttributesField getAttributes()
public InputStream getFile()
public String getFileFileName()
public String getFileContentType()