Class FileCreateResponse
-
- All Implemented Interfaces:
public final class FileCreateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFileCreateResponse.BuilderA builder for FileCreateResponse.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the file. final Longbytes()Size of the file in bytes. final StringcontainerId()The container this file belongs to. final LongcreatedAt()Unix timestamp (in seconds) when the file was created. final JsonValue_object_()The type of this object ( container.file).final Stringpath()Path of the file in the container. final Stringsource()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 FileCreateResponse.BuildertoBuilder()final FileCreateResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FileCreateResponse.Builderbuilder()Returns a mutable builder for constructing an instance of FileCreateResponse. -
-
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 FileCreateResponse.Builder toBuilder()
-
validate
final FileCreateResponse validate()
-
builder
final static FileCreateResponse.Builder builder()
Returns a mutable builder for constructing an instance of FileCreateResponse.
The following fields are required:
.id() .bytes() .containerId() .createdAt() .path() .source()
-
-
-
-