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

cn.signit.sdk.pojo.EnvelopeContentInfo Maven / Gradle / Ivy

There is a newer version: 2.8.5
Show newest version
package cn.signit.sdk.pojo;

import java.util.List;

import cn.signit.sdk.util.ListBuilder;

/**
 * 签署文件内容
 * 
 * @since 2.0.0
 */
public class EnvelopeContentInfo {
    /**
     * 签署文件详细信息列表.
     *
     * @since 2.0.0
     */
    private List files;

    /**
     * 获取files属性字段的值.
     *
     * @return 类型为{@code List}的files属性字段的值.
     */
    public List getFiles() {
        return files;
    }

    public void setFiles(List files) {
        this.files = files;
    }

    public EnvelopeContentInfo() {
    }

    public EnvelopeContentInfo(Builder builder) {
        this.files = builder.files;
    }

    public Builder newBuilder() {
        return new Builder(this);
    }

    public static Builder builder() {
        return new Builder();
    }

    /**
     * 签署文件内容对象建造器
     * 
     * @since 2.0.0
     */
    public static class Builder implements cn.signit.sdk.pojo.Builder {
        private List files;

        public Builder() {
        }

        public Builder(EnvelopeContentInfo contentInfo) {
            this.files = contentInfo.files;
        }

        /**
         * 
         * @param envelopeFiles
         *            签署文件详细信息列表, 每次最多添加30个,目前支持
         *            PDF、DOC、XLS、PPT、DOCX、XLSX.、PPTX、JPG、JPEG、PNG、BMP格式
         *            {@link EnvelopeFile}
         * @return 签署文件内容对象建造器{@link EnvelopeContentInfo.Builder}
         * @since 2.0.0
         */
        public Builder files(List envelopeFiles) {
            this.files = envelopeFiles;
            return this;
        }

        /**
         * 
         * @param builders
         *            签署文件详细信息构造器列表, 每次最多添加30个,目前支持
         *            PDF、DOC、XLS、PPT、DOCX、XLSX.、PPTX、JPG、JPEG、PNG、BMP格式
         *            {@link EnvelopeFile.Builder}
         * @return 签署文件内容对象建造器{@link EnvelopeContentInfo.Builder}
         * @since 2.0.0
         */
        public Builder files(EnvelopeFile.Builder... builders) {
            this.files = ListBuilder.buildList(builders);
            return this;
        }

        /**
         * 
         * @return 签署文件内容对象{@link EnvelopeContentInfo}
         * @since 2.0.0
         */
        @Override
        public EnvelopeContentInfo build() {
            return new EnvelopeContentInfo(this);
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy