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

com.aliyun.dingtalkdoc_1_0.models.InsertBlocksRequest Maven / Gradle / Ivy

There is a newer version: 2.1.30
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkdoc_1_0.models;

import com.aliyun.tea.*;

public class InsertBlocksRequest extends TeaModel {
    // 元素数组
    @NameInMap("blocks")
    public java.util.List blocks;

    // 位置信息
    @NameInMap("location")
    public InsertBlocksRequestLocation location;

    // 操作用户unionId
    @NameInMap("operatorId")
    public String operatorId;

    public static InsertBlocksRequest build(java.util.Map map) throws Exception {
        InsertBlocksRequest self = new InsertBlocksRequest();
        return TeaModel.build(map, self);
    }

    public InsertBlocksRequest setBlocks(java.util.List blocks) {
        this.blocks = blocks;
        return this;
    }
    public java.util.List getBlocks() {
        return this.blocks;
    }

    public InsertBlocksRequest setLocation(InsertBlocksRequestLocation location) {
        this.location = location;
        return this;
    }
    public InsertBlocksRequestLocation getLocation() {
        return this.location;
    }

    public InsertBlocksRequest setOperatorId(String operatorId) {
        this.operatorId = operatorId;
        return this;
    }
    public String getOperatorId() {
        return this.operatorId;
    }

    public static class InsertBlocksRequestBlocksParagraphChildrenTextTextStyle extends TeaModel {
        // 是否加粗
        @NameInMap("bold")
        public Boolean bold;

        // 数据类型
        @NameInMap("dataType")
        public String dataType;

        // 字体大小
        @NameInMap("fontSize")
        public Integer fontSize;

        // 字体大小单位
        @NameInMap("sizeUnit")
        public String sizeUnit;

        public static InsertBlocksRequestBlocksParagraphChildrenTextTextStyle build(java.util.Map map) throws Exception {
            InsertBlocksRequestBlocksParagraphChildrenTextTextStyle self = new InsertBlocksRequestBlocksParagraphChildrenTextTextStyle();
            return TeaModel.build(map, self);
        }

        public InsertBlocksRequestBlocksParagraphChildrenTextTextStyle setBold(Boolean bold) {
            this.bold = bold;
            return this;
        }
        public Boolean getBold() {
            return this.bold;
        }

        public InsertBlocksRequestBlocksParagraphChildrenTextTextStyle setDataType(String dataType) {
            this.dataType = dataType;
            return this;
        }
        public String getDataType() {
            return this.dataType;
        }

        public InsertBlocksRequestBlocksParagraphChildrenTextTextStyle setFontSize(Integer fontSize) {
            this.fontSize = fontSize;
            return this;
        }
        public Integer getFontSize() {
            return this.fontSize;
        }

        public InsertBlocksRequestBlocksParagraphChildrenTextTextStyle setSizeUnit(String sizeUnit) {
            this.sizeUnit = sizeUnit;
            return this;
        }
        public String getSizeUnit() {
            return this.sizeUnit;
        }

    }

    public static class InsertBlocksRequestBlocksParagraphChildrenText extends TeaModel {
        // 文本内容
        @NameInMap("content")
        public String content;

        // 文字样式
        @NameInMap("textStyle")
        public InsertBlocksRequestBlocksParagraphChildrenTextTextStyle textStyle;

        public static InsertBlocksRequestBlocksParagraphChildrenText build(java.util.Map map) throws Exception {
            InsertBlocksRequestBlocksParagraphChildrenText self = new InsertBlocksRequestBlocksParagraphChildrenText();
            return TeaModel.build(map, self);
        }

        public InsertBlocksRequestBlocksParagraphChildrenText setContent(String content) {
            this.content = content;
            return this;
        }
        public String getContent() {
            return this.content;
        }

        public InsertBlocksRequestBlocksParagraphChildrenText setTextStyle(InsertBlocksRequestBlocksParagraphChildrenTextTextStyle textStyle) {
            this.textStyle = textStyle;
            return this;
        }
        public InsertBlocksRequestBlocksParagraphChildrenTextTextStyle getTextStyle() {
            return this.textStyle;
        }

    }

    public static class InsertBlocksRequestBlocksParagraphChildren extends TeaModel {
        // 元素类型
        @NameInMap("elementType")
        public String elementType;

        // 文本元素
        @NameInMap("text")
        public InsertBlocksRequestBlocksParagraphChildrenText text;

        public static InsertBlocksRequestBlocksParagraphChildren build(java.util.Map map) throws Exception {
            InsertBlocksRequestBlocksParagraphChildren self = new InsertBlocksRequestBlocksParagraphChildren();
            return TeaModel.build(map, self);
        }

        public InsertBlocksRequestBlocksParagraphChildren setElementType(String elementType) {
            this.elementType = elementType;
            return this;
        }
        public String getElementType() {
            return this.elementType;
        }

        public InsertBlocksRequestBlocksParagraphChildren setText(InsertBlocksRequestBlocksParagraphChildrenText text) {
            this.text = text;
            return this;
        }
        public InsertBlocksRequestBlocksParagraphChildrenText getText() {
            return this.text;
        }

    }

    public static class InsertBlocksRequestBlocksParagraphStyle extends TeaModel {
        // 标题样式
        @NameInMap("headingLevel")
        public String headingLevel;

        public static InsertBlocksRequestBlocksParagraphStyle build(java.util.Map map) throws Exception {
            InsertBlocksRequestBlocksParagraphStyle self = new InsertBlocksRequestBlocksParagraphStyle();
            return TeaModel.build(map, self);
        }

        public InsertBlocksRequestBlocksParagraphStyle setHeadingLevel(String headingLevel) {
            this.headingLevel = headingLevel;
            return this;
        }
        public String getHeadingLevel() {
            return this.headingLevel;
        }

    }

    public static class InsertBlocksRequestBlocksParagraph extends TeaModel {
        // 子节点
        @NameInMap("children")
        public java.util.List children;

        // 段落样式
        @NameInMap("style")
        public InsertBlocksRequestBlocksParagraphStyle style;

        public static InsertBlocksRequestBlocksParagraph build(java.util.Map map) throws Exception {
            InsertBlocksRequestBlocksParagraph self = new InsertBlocksRequestBlocksParagraph();
            return TeaModel.build(map, self);
        }

        public InsertBlocksRequestBlocksParagraph setChildren(java.util.List children) {
            this.children = children;
            return this;
        }
        public java.util.List getChildren() {
            return this.children;
        }

        public InsertBlocksRequestBlocksParagraph setStyle(InsertBlocksRequestBlocksParagraphStyle style) {
            this.style = style;
            return this;
        }
        public InsertBlocksRequestBlocksParagraphStyle getStyle() {
            return this.style;
        }

    }

    public static class InsertBlocksRequestBlocks extends TeaModel {
        // 元素类型标识
        @NameInMap("blockType")
        public String blockType;

        // 段落元素
        @NameInMap("paragraph")
        public InsertBlocksRequestBlocksParagraph paragraph;

        public static InsertBlocksRequestBlocks build(java.util.Map map) throws Exception {
            InsertBlocksRequestBlocks self = new InsertBlocksRequestBlocks();
            return TeaModel.build(map, self);
        }

        public InsertBlocksRequestBlocks setBlockType(String blockType) {
            this.blockType = blockType;
            return this;
        }
        public String getBlockType() {
            return this.blockType;
        }

        public InsertBlocksRequestBlocks setParagraph(InsertBlocksRequestBlocksParagraph paragraph) {
            this.paragraph = paragraph;
            return this;
        }
        public InsertBlocksRequestBlocksParagraph getParagraph() {
            return this.paragraph;
        }

    }

    public static class InsertBlocksRequestLocation extends TeaModel {
        // 头部插入
        @NameInMap("head")
        public Boolean head;

        public static InsertBlocksRequestLocation build(java.util.Map map) throws Exception {
            InsertBlocksRequestLocation self = new InsertBlocksRequestLocation();
            return TeaModel.build(map, self);
        }

        public InsertBlocksRequestLocation setHead(Boolean head) {
            this.head = head;
            return this;
        }
        public Boolean getHead() {
            return this.head;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy