public class UploadSession extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
UploadSession.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
id
The unique identifier for this session.
|
protected Integer |
numPartsProcessed
The number of parts that have been uploaded and processed by the server.
|
protected Long |
partSize
The size in bytes that must be used for all parts of of the upload.
|
protected UploadSessionSessionEndpointsField |
sessionEndpoints |
protected OffsetDateTime |
sessionExpiresAt
The date and time when this session expires.
|
protected Integer |
totalParts
The total number of parts expected in this upload session, as determined by the file size and
part size.
|
protected EnumWrapper<UploadSessionTypeField> |
type
The value will always be `upload_session`.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
|
UploadSession() |
protected |
UploadSession(UploadSession.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getId() |
Integer |
getNumPartsProcessed() |
Long |
getPartSize() |
UploadSessionSessionEndpointsField |
getSessionEndpoints() |
OffsetDateTime |
getSessionExpiresAt() |
Integer |
getTotalParts() |
EnumWrapper<UploadSessionTypeField> |
getType() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected EnumWrapper<UploadSessionTypeField> type
protected OffsetDateTime sessionExpiresAt
protected Long partSize
Only the last part is allowed to be of a smaller size.
protected Integer totalParts
protected Integer numPartsProcessed
When committing a file files, inspecting this property can provide insight if all parts have been uploaded correctly.
protected UploadSessionSessionEndpointsField sessionEndpoints
public UploadSession()
protected UploadSession(UploadSession.Builder builder)
public EnumWrapper<UploadSessionTypeField> getType()
public OffsetDateTime getSessionExpiresAt()
public Long getPartSize()
public Integer getTotalParts()
public Integer getNumPartsProcessed()
public UploadSessionSessionEndpointsField getSessionEndpoints()