Class UploadPart.Builder
-
- All Implemented Interfaces:
public final class UploadPart.Builder
A builder for UploadPart.
-
-
Method Summary
Modifier and Type Method Description final UploadPart.Builder
id(String id)
The upload Part unique identifier, which can be referenced in API endpoints. final UploadPart.Builder
id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value. final UploadPart.Builder
createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the Part was created. final UploadPart.Builder
createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value. final UploadPart.Builder
object_(JsonValue object_)
Sets the field to an arbitrary JSON value. final UploadPart.Builder
uploadId(String uploadId)
The ID of the Upload object that this Part was added to. final UploadPart.Builder
uploadId(JsonField<String> uploadId)
Sets Builder.uploadId to an arbitrary JSON value. final UploadPart.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final UploadPart.Builder
putAdditionalProperty(String key, JsonValue value)
final UploadPart.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final UploadPart.Builder
removeAdditionalProperty(String key)
final UploadPart.Builder
removeAllAdditionalProperties(Set<String> keys)
final UploadPart
build()
Returns an immutable instance of UploadPart. -
-
Method Detail
-
id
final UploadPart.Builder id(String id)
The upload Part unique identifier, which can be referenced in API endpoints.
-
id
final UploadPart.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.
-
createdAt
final UploadPart.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the Part was created.
-
createdAt
final UploadPart.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.
-
object_
final UploadPart.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.part")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
uploadId
final UploadPart.Builder uploadId(String uploadId)
The ID of the Upload object that this Part was added to.
-
uploadId
final UploadPart.Builder uploadId(JsonField<String> uploadId)
Sets Builder.uploadId to an arbitrary JSON value.
You should usually call Builder.uploadId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final UploadPart.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UploadPart.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UploadPart.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UploadPart.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UploadPart.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UploadPart build()
Returns an immutable instance of UploadPart.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .uploadId()
-
-
-
-