Class FileContentResponse.Builder
-
- All Implemented Interfaces:
public final class FileContentResponse.Builder
A builder for FileContentResponse.
-
-
Method Summary
Modifier and Type Method Description final FileContentResponse.Builder
text(String text)
The text content final FileContentResponse.Builder
text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value. final FileContentResponse.Builder
type(String type)
The content type (currently only "text"
)final FileContentResponse.Builder
type(JsonField<String> type)
Sets Builder.type to an arbitrary JSON value. final FileContentResponse.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final FileContentResponse.Builder
putAdditionalProperty(String key, JsonValue value)
final FileContentResponse.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final FileContentResponse.Builder
removeAdditionalProperty(String key)
final FileContentResponse.Builder
removeAllAdditionalProperties(Set<String> keys)
final FileContentResponse
build()
Returns an immutable instance of FileContentResponse. -
-
Method Detail
-
text
final FileContentResponse.Builder text(String text)
The text content
-
text
final FileContentResponse.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text 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 FileContentResponse.Builder type(String type)
The content type (currently only
"text"
)
-
type
final FileContentResponse.Builder type(JsonField<String> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type 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 FileContentResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileContentResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileContentResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileContentResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileContentResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileContentResponse build()
Returns an immutable instance of FileContentResponse.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-