Class FileMetadata
-
- All Implemented Interfaces:
public final class FileMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFileMetadata.BuilderA builder for FileMetadata.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique object identifier. final OffsetDateTimecreatedAt()RFC 3339 datetime string representing when the file was created. final Stringfilename()Original filename of the uploaded file. final StringmimeType()MIME type of the file. final LongsizeBytes()Size of the file in bytes. final JsonValue_type()Object type. final Optional<Boolean>downloadable()Whether the file can be downloaded. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_filename()Returns the raw JSON value of filename. final JsonField<String>_mimeType()Returns the raw JSON value of mimeType. final JsonField<Long>_sizeBytes()Returns the raw JSON value of sizeBytes. final JsonField<Boolean>_downloadable()Returns the raw JSON value of downloadable. final Map<String, JsonValue>_additionalProperties()final FileMetadata.BuildertoBuilder()final FileMetadatavalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FileMetadata.Builderbuilder()Returns a mutable builder for constructing an instance of FileMetadata. -
-
Method Detail
-
createdAt
final OffsetDateTime createdAt()
RFC 3339 datetime string representing when the file was created.
-
_type
final JsonValue _type()
Object type.
For files, this is always
"file".Expected to always return the following:
JsonValue.from("file")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
downloadable
final Optional<Boolean> downloadable()
Whether the file can be downloaded.
-
_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<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_filename
final JsonField<String> _filename()
Returns the raw JSON value of filename.
Unlike filename, this method doesn't throw if the JSON field has an unexpected type.
-
_mimeType
final JsonField<String> _mimeType()
Returns the raw JSON value of mimeType.
Unlike mimeType, this method doesn't throw if the JSON field has an unexpected type.
-
_sizeBytes
final JsonField<Long> _sizeBytes()
Returns the raw JSON value of sizeBytes.
Unlike sizeBytes, this method doesn't throw if the JSON field has an unexpected type.
-
_downloadable
final JsonField<Boolean> _downloadable()
Returns the raw JSON value of downloadable.
Unlike downloadable, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FileMetadata.Builder toBuilder()
-
validate
final FileMetadata validate()
-
builder
final static FileMetadata.Builder builder()
Returns a mutable builder for constructing an instance of FileMetadata.
The following fields are required:
.id() .createdAt() .filename() .mimeType() .sizeBytes()
-
-
-
-