Class MessageContentResponse.Result.Content.Builder
-
- All Implemented Interfaces:
public final class MessageContentResponse.Result.Content.BuilderA builder for Content.
-
-
Method Summary
-
-
Method Detail
-
blocks
final MessageContentResponse.Result.Content.Builder blocks(List<MessageContentResponse.Result.Content.Block> blocks)
The blocks of the rendered message.
-
blocks
final MessageContentResponse.Result.Content.Builder blocks(JsonField<List<MessageContentResponse.Result.Content.Block>> blocks)
Sets Builder.blocks to an arbitrary JSON value.
You should usually call Builder.blocks with a well-typed
List<Block>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addBlock
final MessageContentResponse.Result.Content.Builder addBlock(MessageContentResponse.Result.Content.Block block)
-
body
final MessageContentResponse.Result.Content.Builder body(String body)
The body of the rendered message.
-
body
final MessageContentResponse.Result.Content.Builder body(JsonField<String> body)
Sets Builder.body to an arbitrary JSON value.
You should usually call Builder.body with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
html
final MessageContentResponse.Result.Content.Builder html(String html)
The html content of the rendered message.
-
html
final MessageContentResponse.Result.Content.Builder html(JsonField<String> html)
Sets Builder.html to an arbitrary JSON value.
You should usually call Builder.html with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
subject
final MessageContentResponse.Result.Content.Builder subject(String subject)
The subject of the rendered message.
-
subject
final MessageContentResponse.Result.Content.Builder subject(JsonField<String> subject)
Sets Builder.subject to an arbitrary JSON value.
You should usually call Builder.subject with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
text
final MessageContentResponse.Result.Content.Builder text(String text)
The text of the rendered message.
-
text
final MessageContentResponse.Result.Content.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.
-
title
final MessageContentResponse.Result.Content.Builder title(String title)
The title of the rendered message.
-
title
final MessageContentResponse.Result.Content.Builder title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value.
You should usually call Builder.title 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.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MessageContentResponse.Result.Content.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MessageContentResponse.Result.Content.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MessageContentResponse.Result.Content.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MessageContentResponse.Result.Content.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MessageContentResponse.Result.Content build()
Returns an immutable instance of Content.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.blocks() .body() .html() .subject() .text() .title()
-
-
-
-