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