Class TextContentBlockParam.Builder
-
- All Implemented Interfaces:
public final class TextContentBlockParam.Builder
A builder for TextContentBlockParam.
-
-
Method Summary
Modifier and Type Method Description final TextContentBlockParam.Builder
text(String text)
Text content to be sent to the model final TextContentBlockParam.Builder
text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value. final TextContentBlockParam.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final TextContentBlockParam.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final TextContentBlockParam.Builder
putAdditionalProperty(String key, JsonValue value)
final TextContentBlockParam.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final TextContentBlockParam.Builder
removeAdditionalProperty(String key)
final TextContentBlockParam.Builder
removeAllAdditionalProperties(Set<String> keys)
final TextContentBlockParam
build()
Returns an immutable instance of TextContentBlockParam. -
-
Method Detail
-
text
final TextContentBlockParam.Builder text(String text)
Text content to be sent to the model
-
text
final TextContentBlockParam.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 TextContentBlockParam.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("text")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TextContentBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TextContentBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TextContentBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TextContentBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TextContentBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TextContentBlockParam build()
Returns an immutable instance of TextContentBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text()
-
-
-
-