Class UploadPart
-
- All Implemented Interfaces:
public final class UploadPart
The upload Part represents a chunk of bytes we can add to an Upload object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
UploadPart.Builder
A builder for UploadPart.
-
Method Summary
Modifier and Type Method Description final String
id()
The upload Part unique identifier, which can be referenced in API endpoints. final Long
createdAt()
The Unix timestamp (in seconds) for when the Part was created. final JsonValue
_object_()
The object type, which is always upload.part
.final String
uploadId()
The ID of the Upload object that this Part was added to. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<Long>
_createdAt()
Returns the raw JSON value of createdAt. final JsonField<String>
_uploadId()
Returns the raw JSON value of uploadId. final Map<String, JsonValue>
_additionalProperties()
final UploadPart.Builder
toBuilder()
final UploadPart
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static UploadPart.Builder
builder()
Returns a mutable builder for constructing an instance of UploadPart. -
-
Method Detail
-
_object_
final JsonValue _object_()
The object type, which is always
upload.part
.Expected to always return the following:
JsonValue.from("upload.part")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_uploadId
final JsonField<String> _uploadId()
Returns the raw JSON value of uploadId.
Unlike uploadId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UploadPart.Builder toBuilder()
-
validate
final UploadPart validate()
-
builder
final static UploadPart.Builder builder()
Returns a mutable builder for constructing an instance of UploadPart.
The following fields are required:
.id() .createdAt() .uploadId()
-
-
-
-