Package com.courier.models.messages
Class MessageContentResponse.Result.Content.Block.Builder
-
- All Implemented Interfaces:
public final class MessageContentResponse.Result.Content.Block.BuilderA builder for Block.
-
-
Method Summary
-
-
Method Detail
-
text
final MessageContentResponse.Result.Content.Block.Builder text(String text)
The block text of the rendered message block.
-
text
final MessageContentResponse.Result.Content.Block.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 MessageContentResponse.Result.Content.Block.Builder type(String type)
The block type of the rendered message block.
-
type
final MessageContentResponse.Result.Content.Block.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 MessageContentResponse.Result.Content.Block.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MessageContentResponse.Result.Content.Block.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MessageContentResponse.Result.Content.Block.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MessageContentResponse.Result.Content.Block.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MessageContentResponse.Result.Content.Block.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MessageContentResponse.Result.Content.Block build()
Returns an immutable instance of Block.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text() .type()
-
-
-
-