All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tw.yukina.notion.sdk.model.endpoint.page.RequestCreatePage Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package tw.yukina.notion.sdk.model.endpoint.page;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import tw.yukina.notion.sdk.model.block.Block;
import tw.yukina.notion.sdk.model.common.Icon;
import tw.yukina.notion.sdk.model.common.file.FileObject;
import tw.yukina.notion.sdk.model.common.parent.Parent;
import tw.yukina.notion.sdk.model.page.property.PageProperty;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Getter
@Setter
@ToString
@EqualsAndHashCode
public class RequestCreatePage {

    private static final String PARENT_FIELD = "parent";
    private static final String PROPERTIES_FIELD = "properties";
    private static final String CHILDREN_FIELD = "children";
    private static final String ICON_FIELD = "icon";
    private static final String COVER_FIELD = "cover";

    @JsonProperty(PARENT_FIELD)
    private Parent parent;

    @JsonProperty(PROPERTIES_FIELD)
    private Map properties;

    @JsonProperty(CHILDREN_FIELD)
    private List children = new ArrayList<>();

    @JsonProperty(ICON_FIELD)
    private Icon icon;

    @JsonProperty(COVER_FIELD)
    private FileObject fileObject;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy