Class FileMetadata.Builder
-
- All Implemented Interfaces:
public final class FileMetadata.BuilderA builder for FileMetadata.
-
-
Method Summary
Modifier and Type Method Description final FileMetadata.Builderid(String id)Unique object identifier. final FileMetadata.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final FileMetadata.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string representing when the file was created. final FileMetadata.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final FileMetadata.Builderfilename(String filename)Original filename of the uploaded file. final FileMetadata.Builderfilename(JsonField<String> filename)Sets Builder.filename to an arbitrary JSON value. final FileMetadata.BuildermimeType(String mimeType)MIME type of the file. final FileMetadata.BuildermimeType(JsonField<String> mimeType)Sets Builder.mimeType to an arbitrary JSON value. final FileMetadata.BuildersizeBytes(Long sizeBytes)Size of the file in bytes. final FileMetadata.BuildersizeBytes(JsonField<Long> sizeBytes)Sets Builder.sizeBytes to an arbitrary JSON value. final FileMetadata.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final FileMetadata.Builderdownloadable(Boolean downloadable)Whether the file can be downloaded. final FileMetadata.Builderdownloadable(JsonField<Boolean> downloadable)Sets Builder.downloadable to an arbitrary JSON value. final FileMetadata.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final FileMetadata.BuilderputAdditionalProperty(String key, JsonValue value)final FileMetadata.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final FileMetadata.BuilderremoveAdditionalProperty(String key)final FileMetadata.BuilderremoveAllAdditionalProperties(Set<String> keys)final FileMetadatabuild()Returns an immutable instance of FileMetadata. -
-
Method Detail
-
id
final FileMetadata.Builder id(String id)
Unique object identifier.
The format and length of IDs may change over time.
-
id
final FileMetadata.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 FileMetadata.Builder createdAt(OffsetDateTime createdAt)
RFC 3339 datetime string representing when the file was created.
-
createdAt
final FileMetadata.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
filename
final FileMetadata.Builder filename(String filename)
Original filename of the uploaded file.
-
filename
final FileMetadata.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.
-
mimeType
final FileMetadata.Builder mimeType(String mimeType)
MIME type of the file.
-
mimeType
final FileMetadata.Builder mimeType(JsonField<String> mimeType)
Sets Builder.mimeType to an arbitrary JSON value.
You should usually call Builder.mimeType with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sizeBytes
final FileMetadata.Builder sizeBytes(Long sizeBytes)
Size of the file in bytes.
-
sizeBytes
final FileMetadata.Builder sizeBytes(JsonField<Long> sizeBytes)
Sets Builder.sizeBytes to an arbitrary JSON value.
You should usually call Builder.sizeBytes with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final FileMetadata.Builder type(JsonValue type)
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("file")This method is primarily for setting the field to an undocumented or not yet supported value.
-
downloadable
final FileMetadata.Builder downloadable(Boolean downloadable)
Whether the file can be downloaded.
-
downloadable
final FileMetadata.Builder downloadable(JsonField<Boolean> downloadable)
Sets Builder.downloadable to an arbitrary JSON value.
You should usually call Builder.downloadable with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final FileMetadata.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileMetadata.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileMetadata.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileMetadata.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileMetadata.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileMetadata build()
Returns an immutable instance of FileMetadata.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .filename() .mimeType() .sizeBytes()
-
-
-
-