-
- All Implemented Interfaces:
-
notion.api.v1.model.blocks.Block,notion.api.v1.model.common.WithObjectType
public class ToggleBlock implements Block
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classToggleBlock.Element
-
Field Summary
Fields Modifier and Type Field Description private final ObjectTypeobjectTypeprivate final BlockTypetypeprivate Stringidprivate StringcreatedTimeprivate StringlastEditedTimeprivate BooleanhasChildrenprivate final ToggleBlock.Elementtoggle
-
Constructor Summary
Constructors Constructor Description ToggleBlock(ToggleBlock.Element toggle, String id, Boolean hasChildren, String createdTime, String lastEditedTime)ToggleBlock(ObjectType objectType, BlockType type, String id, String createdTime, String lastEditedTime, Boolean hasChildren, ToggleBlock.Element toggle)
-
Method Summary
Modifier and Type Method Description ObjectTypegetObjectType()BlockTypegetType()StringgetId()UnitsetId(String id)StringgetCreatedTime()UnitsetCreatedTime(String createdTime)StringgetLastEditedTime()UnitsetLastEditedTime(String lastEditedTime)BooleangetHasChildren()UnitsetHasChildren(Boolean hasChildren)final ToggleBlock.ElementgetToggle()-
Methods inherited from class notion.api.v1.model.blocks.ToggleBlock
asBulletedListItem, asChildPage, asHeadingOne, asHeadingThree, asHeadingTwo, asNumberedListItem, asParagraph, asToDo, asToggle, asUnsupported -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ToggleBlock
ToggleBlock(ToggleBlock.Element toggle, String id, Boolean hasChildren, String createdTime, String lastEditedTime)
-
ToggleBlock
ToggleBlock(ObjectType objectType, BlockType type, String id, String createdTime, String lastEditedTime, Boolean hasChildren, ToggleBlock.Element toggle)
-
-
Method Detail
-
getObjectType
ObjectType getObjectType()
-
getCreatedTime
String getCreatedTime()
-
setCreatedTime
Unit setCreatedTime(String createdTime)
-
getLastEditedTime
String getLastEditedTime()
-
setLastEditedTime
Unit setLastEditedTime(String lastEditedTime)
-
getHasChildren
Boolean getHasChildren()
-
setHasChildren
Unit setHasChildren(Boolean hasChildren)
-
getToggle
final ToggleBlock.Element getToggle()
-
-
-
-