Class BetaFileMetadata.Builder
-
- All Implemented Interfaces:
public final class BetaFileMetadata.BuilderA builder for BetaFileMetadata.
-
-
Method Summary
Modifier and Type Method Description final BetaFileMetadata.Builderid(String id)Unique object identifier. final BetaFileMetadata.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaFileMetadata.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string representing when the file was created. final BetaFileMetadata.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaFileMetadata.Builderfilename(String filename)Original filename of the uploaded file. final BetaFileMetadata.Builderfilename(JsonField<String> filename)Sets Builder.filename to an arbitrary JSON value. final BetaFileMetadata.BuildermimeType(String mimeType)MIME type of the file. final BetaFileMetadata.BuildermimeType(JsonField<String> mimeType)Sets Builder.mimeType to an arbitrary JSON value. final BetaFileMetadata.BuildersizeBytes(Long sizeBytes)Size of the file in bytes. final BetaFileMetadata.BuildersizeBytes(JsonField<Long> sizeBytes)Sets Builder.sizeBytes to an arbitrary JSON value. final BetaFileMetadata.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaFileMetadata.Builderdownloadable(Boolean downloadable)Whether the file can be downloaded. final BetaFileMetadata.Builderdownloadable(JsonField<Boolean> downloadable)Sets Builder.downloadable to an arbitrary JSON value. final BetaFileMetadata.BuilderexpiresAt(OffsetDateTime expiresAt)RFC 3339 datetime string representing when the file will expire and become unavailable for download. final BetaFileMetadata.BuilderexpiresAt(Optional<OffsetDateTime> expiresAt)Alias for calling Builder.expiresAt with expiresAt.orElse(null).final BetaFileMetadata.BuilderexpiresAt(JsonField<OffsetDateTime> expiresAt)Sets Builder.expiresAt to an arbitrary JSON value. final BetaFileMetadata.Builderscope(BetaFileScope scope)The scope of this file, indicating the context in which it was created (e.g., a session). final BetaFileMetadata.Builderscope(Optional<BetaFileScope> scope)Alias for calling Builder.scope with scope.orElse(null).final BetaFileMetadata.Builderscope(JsonField<BetaFileScope> scope)Sets Builder.scope to an arbitrary JSON value. final BetaFileMetadata.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaFileMetadata.BuilderputAdditionalProperty(String key, JsonValue value)final BetaFileMetadata.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaFileMetadata.BuilderremoveAdditionalProperty(String key)final BetaFileMetadata.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaFileMetadatabuild()Returns an immutable instance of BetaFileMetadata. -
-
Method Detail
-
id
final BetaFileMetadata.Builder id(String id)
Unique object identifier.
The format and length of IDs may change over time.
-
id
final BetaFileMetadata.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 BetaFileMetadata.Builder createdAt(OffsetDateTime createdAt)
RFC 3339 datetime string representing when the file was created.
-
createdAt
final BetaFileMetadata.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 BetaFileMetadata.Builder filename(String filename)
Original filename of the uploaded file.
-
filename
final BetaFileMetadata.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 BetaFileMetadata.Builder mimeType(String mimeType)
MIME type of the file.
-
mimeType
final BetaFileMetadata.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 BetaFileMetadata.Builder sizeBytes(Long sizeBytes)
Size of the file in bytes.
-
sizeBytes
final BetaFileMetadata.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 BetaFileMetadata.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 BetaFileMetadata.Builder downloadable(Boolean downloadable)
Whether the file can be downloaded.
-
downloadable
final BetaFileMetadata.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.
-
expiresAt
final BetaFileMetadata.Builder expiresAt(OffsetDateTime expiresAt)
RFC 3339 datetime string representing when the file will expire and become unavailable for download. Null if the file does not expire. For files uploaded with
expires_in_seconds, this is the upload time plus that value.
-
expiresAt
final BetaFileMetadata.Builder expiresAt(Optional<OffsetDateTime> expiresAt)
Alias for calling Builder.expiresAt with
expiresAt.orElse(null).
-
expiresAt
final BetaFileMetadata.Builder expiresAt(JsonField<OffsetDateTime> expiresAt)
Sets Builder.expiresAt to an arbitrary JSON value.
You should usually call Builder.expiresAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scope
final BetaFileMetadata.Builder scope(BetaFileScope scope)
The scope of this file, indicating the context in which it was created (e.g., a session).
-
scope
final BetaFileMetadata.Builder scope(Optional<BetaFileScope> scope)
Alias for calling Builder.scope with
scope.orElse(null).
-
scope
final BetaFileMetadata.Builder scope(JsonField<BetaFileScope> scope)
Sets Builder.scope to an arbitrary JSON value.
You should usually call Builder.scope with a well-typed BetaFileScope value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaFileMetadata.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaFileMetadata.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaFileMetadata.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaFileMetadata.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaFileMetadata.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaFileMetadata build()
Returns an immutable instance of BetaFileMetadata.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .filename() .mimeType() .sizeBytes()
-
-
-
-