Class ImagePart.Builder
-
- All Implemented Interfaces:
public final class ImagePart.Builder
A builder for ImagePart.
-
-
Method Summary
Modifier and Type Method Description final ImagePart.Builder
id(String id)
Unique identifier for the uploaded image. final ImagePart.Builder
id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value. final ImagePart.Builder
mimeType(String mimeType)
MIME type of the uploaded image. final ImagePart.Builder
mimeType(JsonField<String> mimeType)
Sets Builder.mimeType to an arbitrary JSON value. final ImagePart.Builder
name(String name)
Original filename for the uploaded image. final ImagePart.Builder
name(Optional<String> name)
Alias for calling Builder.name with name.orElse(null)
.final ImagePart.Builder
name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value. final ImagePart.Builder
previewUrl(String previewUrl)
Preview URL that can be rendered inline for the image. final ImagePart.Builder
previewUrl(JsonField<String> previewUrl)
Sets Builder.previewUrl to an arbitrary JSON value. final ImagePart.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ImagePart.Builder
uploadUrl(String uploadUrl)
Signed URL for downloading the uploaded image. final ImagePart.Builder
uploadUrl(Optional<String> uploadUrl)
Alias for calling Builder.uploadUrl with uploadUrl.orElse(null)
.final ImagePart.Builder
uploadUrl(JsonField<String> uploadUrl)
Sets Builder.uploadUrl to an arbitrary JSON value. final ImagePart.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ImagePart.Builder
putAdditionalProperty(String key, JsonValue value)
final ImagePart.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ImagePart.Builder
removeAdditionalProperty(String key)
final ImagePart.Builder
removeAllAdditionalProperties(Set<String> keys)
final ImagePart
build()
Returns an immutable instance of ImagePart. -
-
Method Detail
-
id
final ImagePart.Builder id(String id)
Unique identifier for the uploaded image.
-
id
final ImagePart.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 ImagePart.Builder mimeType(String mimeType)
MIME type of the uploaded image.
-
mimeType
final ImagePart.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 ImagePart.Builder name(String name)
Original filename for the uploaded image. Defaults to null when unnamed.
-
name
final ImagePart.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null)
.
-
name
final ImagePart.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.
-
previewUrl
final ImagePart.Builder previewUrl(String previewUrl)
Preview URL that can be rendered inline for the image.
-
previewUrl
final ImagePart.Builder previewUrl(JsonField<String> previewUrl)
Sets Builder.previewUrl to an arbitrary JSON value.
You should usually call Builder.previewUrl 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 ImagePart.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("image")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
uploadUrl
final ImagePart.Builder uploadUrl(String uploadUrl)
Signed URL for downloading the uploaded image. Defaults to null when no download link is available.
-
uploadUrl
final ImagePart.Builder uploadUrl(Optional<String> uploadUrl)
Alias for calling Builder.uploadUrl with
uploadUrl.orElse(null)
.
-
uploadUrl
final ImagePart.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 ImagePart.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImagePart.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImagePart.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImagePart.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImagePart.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-