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

com.aliyun.dingtalkesign_2_0.models.ProcessStartRequest Maven / Gradle / Ivy

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

import com.aliyun.tea.*;

public class ProcessStartRequest extends TeaModel {
    // 是否自动发起
    @NameInMap("autoStart")
    public String autoStart;

    // 抄送人列表
    @NameInMap("ccs")
    public java.util.List ccs;

    // 文件列表
    @NameInMap("files")
    public java.util.List files;

    // 发起方userId
    @NameInMap("initiatorUserId")
    public String initiatorUserId;

    // 参与方列表
    @NameInMap("participants")
    public java.util.List participants;

    // 回跳地址
    @NameInMap("redirectUrl")
    public String redirectUrl;

    // 来源信息(目前支持传入审批信息和跳转地址)
    @NameInMap("sourceInfo")
    public ProcessStartRequestSourceInfo sourceInfo;

    // 任务名称(默认文件名)
    @NameInMap("taskName")
    public String taskName;

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

    public ProcessStartRequest setAutoStart(String autoStart) {
        this.autoStart = autoStart;
        return this;
    }
    public String getAutoStart() {
        return this.autoStart;
    }

    public ProcessStartRequest setCcs(java.util.List ccs) {
        this.ccs = ccs;
        return this;
    }
    public java.util.List getCcs() {
        return this.ccs;
    }

    public ProcessStartRequest setFiles(java.util.List files) {
        this.files = files;
        return this;
    }
    public java.util.List getFiles() {
        return this.files;
    }

    public ProcessStartRequest setInitiatorUserId(String initiatorUserId) {
        this.initiatorUserId = initiatorUserId;
        return this;
    }
    public String getInitiatorUserId() {
        return this.initiatorUserId;
    }

    public ProcessStartRequest setParticipants(java.util.List participants) {
        this.participants = participants;
        return this;
    }
    public java.util.List getParticipants() {
        return this.participants;
    }

    public ProcessStartRequest setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
        return this;
    }
    public String getRedirectUrl() {
        return this.redirectUrl;
    }

    public ProcessStartRequest setSourceInfo(ProcessStartRequestSourceInfo sourceInfo) {
        this.sourceInfo = sourceInfo;
        return this;
    }
    public ProcessStartRequestSourceInfo getSourceInfo() {
        return this.sourceInfo;
    }

    public ProcessStartRequest setTaskName(String taskName) {
        this.taskName = taskName;
        return this;
    }
    public String getTaskName() {
        return this.taskName;
    }

    public static class ProcessStartRequestCcs extends TeaModel {
        // OUTER_USER必填
        @NameInMap("account")
        public String account;

        // OUTER_USER必填
        @NameInMap("accountName")
        public String accountName;

        // 用户类型("DING_USER":钉钉用户,"OUTER_USER":外部用户)
        @NameInMap("accountType")
        public String accountType;

        // 发给企业方必填
        @NameInMap("orgName")
        public String orgName;

        // DING_USER必填
        @NameInMap("userId")
        public String userId;

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

        public ProcessStartRequestCcs setAccount(String account) {
            this.account = account;
            return this;
        }
        public String getAccount() {
            return this.account;
        }

        public ProcessStartRequestCcs setAccountName(String accountName) {
            this.accountName = accountName;
            return this;
        }
        public String getAccountName() {
            return this.accountName;
        }

        public ProcessStartRequestCcs setAccountType(String accountType) {
            this.accountType = accountType;
            return this;
        }
        public String getAccountType() {
            return this.accountType;
        }

        public ProcessStartRequestCcs setOrgName(String orgName) {
            this.orgName = orgName;
            return this;
        }
        public String getOrgName() {
            return this.orgName;
        }

        public ProcessStartRequestCcs setUserId(String userId) {
            this.userId = userId;
            return this;
        }
        public String getUserId() {
            return this.userId;
        }

    }

    public static class ProcessStartRequestFiles extends TeaModel {
        @NameInMap("fileId")
        public String fileId;

        @NameInMap("fileName")
        public String fileName;

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

        public ProcessStartRequestFiles setFileId(String fileId) {
            this.fileId = fileId;
            return this;
        }
        public String getFileId() {
            return this.fileId;
        }

        public ProcessStartRequestFiles setFileName(String fileName) {
            this.fileName = fileName;
            return this;
        }
        public String getFileName() {
            return this.fileName;
        }

    }

    public static class ProcessStartRequestParticipants extends TeaModel {
        // OUTER_USER必填
        @NameInMap("account")
        public String account;

        // OUTER_USER必填
        @NameInMap("accountName")
        public String accountName;

        // 用户类型("DING_USER":钉钉用户,"OUTER_USER":外部用户)
        @NameInMap("accountType")
        public String accountType;

        // OUTER_USER需要盖企业章必填(如果不传,默认会赋值当前企业名称)
        @NameInMap("orgName")
        public String orgName;

        // 签署印章类型(1:企业章 2:个人章  1,2:个人和企业章)
        @NameInMap("signRequirements")
        public String signRequirements;

        // DING_USER必填
        @NameInMap("userId")
        public String userId;

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

        public ProcessStartRequestParticipants setAccount(String account) {
            this.account = account;
            return this;
        }
        public String getAccount() {
            return this.account;
        }

        public ProcessStartRequestParticipants setAccountName(String accountName) {
            this.accountName = accountName;
            return this;
        }
        public String getAccountName() {
            return this.accountName;
        }

        public ProcessStartRequestParticipants setAccountType(String accountType) {
            this.accountType = accountType;
            return this;
        }
        public String getAccountType() {
            return this.accountType;
        }

        public ProcessStartRequestParticipants setOrgName(String orgName) {
            this.orgName = orgName;
            return this;
        }
        public String getOrgName() {
            return this.orgName;
        }

        public ProcessStartRequestParticipants setSignRequirements(String signRequirements) {
            this.signRequirements = signRequirements;
            return this;
        }
        public String getSignRequirements() {
            return this.signRequirements;
        }

        public ProcessStartRequestParticipants setUserId(String userId) {
            this.userId = userId;
            return this;
        }
        public String getUserId() {
            return this.userId;
        }

    }

    public static class ProcessStartRequestSourceInfo extends TeaModel {
        // 移动端跳转地址
        @NameInMap("mobileUrl")
        public String mobileUrl;

        // pc端跳转地址
        @NameInMap("pcUrl")
        public String pcUrl;

        // 展示文案
        @NameInMap("showText")
        public String showText;

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

        public ProcessStartRequestSourceInfo setMobileUrl(String mobileUrl) {
            this.mobileUrl = mobileUrl;
            return this;
        }
        public String getMobileUrl() {
            return this.mobileUrl;
        }

        public ProcessStartRequestSourceInfo setPcUrl(String pcUrl) {
            this.pcUrl = pcUrl;
            return this;
        }
        public String getPcUrl() {
            return this.pcUrl;
        }

        public ProcessStartRequestSourceInfo setShowText(String showText) {
            this.showText = showText;
            return this;
        }
        public String getShowText() {
            return this.showText;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy