Class FileRetrieveResponse
-
- All Implemented Interfaces:
public final class FileRetrieveResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
FileRetrieveResponse.Builder
A builder for FileRetrieveResponse.
-
Method Summary
Modifier and Type Method Description final String
id()
Unique identifier for the file. final Long
bytes()
Size of the file in bytes. final String
containerId()
The container this file belongs to. final Long
createdAt()
Unix timestamp (in seconds) when the file was created. final JsonValue
_object_()
The type of this object ( container.file
).final String
path()
Path of the file in the container. final String
source()
Source of the file (e.g. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<Long>
_bytes()
Returns the raw JSON value of bytes. final JsonField<String>
_containerId()
Returns the raw JSON value of containerId. final JsonField<Long>
_createdAt()
Returns the raw JSON value of createdAt. final JsonField<String>
_path()
Returns the raw JSON value of path. final JsonField<String>
_source()
Returns the raw JSON value of source. final Map<String, JsonValue>
_additionalProperties()
final FileRetrieveResponse.Builder
toBuilder()
final FileRetrieveResponse
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static FileRetrieveResponse.Builder
builder()
Returns a mutable builder for constructing an instance of FileRetrieveResponse. -
-
Method Detail
-
containerId
final String containerId()
The container this file belongs to.
-
_object_
final JsonValue _object_()
The type of this object (
container.file
).Expected to always return the following:
JsonValue.from("container.file")
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.
-
_bytes
final JsonField<Long> _bytes()
Returns the raw JSON value of bytes.
Unlike bytes, this method doesn't throw if the JSON field has an unexpected type.
-
_containerId
final JsonField<String> _containerId()
Returns the raw JSON value of containerId.
Unlike containerId, 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.
-
_path
final JsonField<String> _path()
Returns the raw JSON value of path.
Unlike path, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<String> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FileRetrieveResponse.Builder toBuilder()
-
validate
final FileRetrieveResponse validate()
-
builder
final static FileRetrieveResponse.Builder builder()
Returns a mutable builder for constructing an instance of FileRetrieveResponse.
The following fields are required:
.id() .bytes() .containerId() .createdAt() .path() .source()
-
-
-
-