Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.17 KB

parent-1.md

File metadata and controls

37 lines (26 loc) · 1.17 KB

Parent 1

The parent page or block the comment belongs to.

This model accepts additional fields of type Object.

Structure

Parent1

Fields

Name Type Tags Description Getter Setter
Type Type11 Optional - Type11 getType() setType(Type11 type)
PageId UUID Optional - UUID getPageId() setPageId(UUID pageId)
BlockId UUID Optional - UUID getBlockId() setBlockId(UUID blockId)
AdditionalProperties Map<String, Object> Optional - Object getAdditionalProperty(String key) additionalProperty(String key, Object value)

Example

import com.notion.api.ApiHelper;
import com.notion.api.models.Parent1;
import com.notion.api.models.Type11;
import java.io.IOException;
import java.util.UUID;

Parent1 parent1 = new Parent1.Builder()
    .type(Type11.PAGE_ID)
    .pageId(UUID.fromString("0000127c-0000-0000-0000-000000000000"))
    .blockId(UUID.fromString("00001a54-0000-0000-0000-000000000000"))
.additionalProperty("exampleAdditionalProperty", ApiHelper.deserialize("{\"key1\":\"val1\",\"key2\":\"val2\"}"))
    .build();