Class TextContentBlock.Builder
-
- All Implemented Interfaces:
public final class TextContentBlock.BuilderA builder for TextContentBlock.
-
-
Method Summary
Modifier and Type Method Description final TextContentBlock.Buildertext(Text text)final TextContentBlock.Buildertext(JsonField<Text> text)Sets Builder.text to an arbitrary JSON value. final TextContentBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final TextContentBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final TextContentBlock.BuilderputAdditionalProperty(String key, JsonValue value)final TextContentBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final TextContentBlock.BuilderremoveAdditionalProperty(String key)final TextContentBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final TextContentBlockbuild()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()
-
-
-
-