Text content and optional link. Present when type is "text".
This model accepts additional fields of type Object.
Text
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
Content |
String |
Optional | The actual text content. | String getContent() | setContent(String content) |
Link |
Link |
Optional | Optional link within the text. | Link getLink() | setLink(Link link) |
AdditionalProperties |
Map<String, Object> |
Optional | - | Object getAdditionalProperty(String key) | additionalProperty(String key, Object value) |
import com.notion.api.ApiHelper;
import com.notion.api.models.Link;
import com.notion.api.models.Text;
import java.io.IOException;
Text text = new Text.Builder()
.content("content4")
.link(new Link.Builder()
.url("url4")
.additionalProperty("exampleAdditionalProperty", ApiHelper.deserialize("{\"key1\":\"val1\",\"key2\":\"val2\"}"))
.build())
.additionalProperty("exampleAdditionalProperty", ApiHelper.deserialize("{\"key1\":\"val1\",\"key2\":\"val2\"}"))
.build();