Class FilePart.Builder
-
- All Implemented Interfaces:
public final class FilePart.BuilderA builder for FilePart.
-
-
Method Summary
Modifier and Type Method Description final FilePart.Builderid(String id)Unique identifier for the uploaded file. final FilePart.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final FilePart.BuildermimeType(String mimeType)MIME type reported for the uploaded file. final FilePart.BuildermimeType(Optional<String> mimeType)Alias for calling Builder.mimeType with mimeType.orElse(null).final FilePart.BuildermimeType(JsonField<String> mimeType)Sets Builder.mimeType to an arbitrary JSON value. final FilePart.Buildername(String name)Original filename supplied by the uploader. final FilePart.Buildername(Optional<String> name)Alias for calling Builder.name with name.orElse(null).final FilePart.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final FilePart.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final FilePart.BuilderuploadUrl(String uploadUrl)Signed URL for downloading the uploaded file. final FilePart.BuilderuploadUrl(Optional<String> uploadUrl)Alias for calling Builder.uploadUrl with uploadUrl.orElse(null).final FilePart.BuilderuploadUrl(JsonField<String> uploadUrl)Sets Builder.uploadUrl to an arbitrary JSON value. final FilePart.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final FilePart.BuilderputAdditionalProperty(String key, JsonValue value)final FilePart.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final FilePart.BuilderremoveAdditionalProperty(String key)final FilePart.BuilderremoveAllAdditionalProperties(Set<String> keys)final FilePartbuild()Returns an immutable instance of FilePart. -
-
Method Detail
-
id
final FilePart.Builder id(String id)
Unique identifier for the uploaded file.
-
id
final FilePart.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.
-
mimeType
final FilePart.Builder mimeType(String mimeType)
MIME type reported for the uploaded file. Defaults to null when unknown.
-
mimeType
final FilePart.Builder mimeType(Optional<String> mimeType)
Alias for calling Builder.mimeType with
mimeType.orElse(null).
-
mimeType
final FilePart.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.
-
name
final FilePart.Builder name(String name)
Original filename supplied by the uploader. Defaults to null when unnamed.
-
name
final FilePart.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final FilePart.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final FilePart.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.
-
uploadUrl
final FilePart.Builder uploadUrl(String uploadUrl)
Signed URL for downloading the uploaded file. Defaults to null when no download link is available.
-
uploadUrl
final FilePart.Builder uploadUrl(Optional<String> uploadUrl)
Alias for calling Builder.uploadUrl with
uploadUrl.orElse(null).
-
uploadUrl
final FilePart.Builder uploadUrl(JsonField<String> uploadUrl)
Sets Builder.uploadUrl to an arbitrary JSON value.
You should usually call Builder.uploadUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final FilePart.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FilePart.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FilePart.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FilePart.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FilePart.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-