com.aliyun.dingtalkattendance_1_0.models.CreateApproveRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dingtalk Show documentation
Show all versions of dingtalk Show documentation
Alibaba Cloud dingtalk SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkattendance_1_0.models;
import com.aliyun.tea.*;
public class CreateApproveRequest extends TeaModel {
/**
* example:
* 341lkfjdkf
*/
@NameInMap("approveId")
public String approveId;
/**
* example:
* 4243235dfd
*/
@NameInMap("opUserid")
public String opUserid;
@NameInMap("punchParam")
public CreateApproveRequestPunchParam punchParam;
/**
* example:
* 年假
*/
@NameInMap("subType")
public String subType;
/**
* example:
* 请假
*/
@NameInMap("tagName")
public String tagName;
/**
* This parameter is required.
*
* example:
* fdfi3435
*/
@NameInMap("userid")
public String userid;
public static CreateApproveRequest build(java.util.Map map) throws Exception {
CreateApproveRequest self = new CreateApproveRequest();
return TeaModel.build(map, self);
}
public CreateApproveRequest setApproveId(String approveId) {
this.approveId = approveId;
return this;
}
public String getApproveId() {
return this.approveId;
}
public CreateApproveRequest setOpUserid(String opUserid) {
this.opUserid = opUserid;
return this;
}
public String getOpUserid() {
return this.opUserid;
}
public CreateApproveRequest setPunchParam(CreateApproveRequestPunchParam punchParam) {
this.punchParam = punchParam;
return this;
}
public CreateApproveRequestPunchParam getPunchParam() {
return this.punchParam;
}
public CreateApproveRequest setSubType(String subType) {
this.subType = subType;
return this;
}
public String getSubType() {
return this.subType;
}
public CreateApproveRequest setTagName(String tagName) {
this.tagName = tagName;
return this;
}
public String getTagName() {
return this.tagName;
}
public CreateApproveRequest setUserid(String userid) {
this.userid = userid;
return this;
}
public String getUserid() {
return this.userid;
}
public static class CreateApproveRequestPunchParam extends TeaModel {
/**
* example:
* 120.023425_30.291465
*/
@NameInMap("positionId")
public String positionId;
/**
* example:
* 余杭区五常街道
*/
@NameInMap("positionName")
public String positionName;
/**
* example:
* gps
*/
@NameInMap("positionType")
public String positionType;
/**
* example:
* 1614222064000
*/
@NameInMap("punchTime")
public Long punchTime;
public static CreateApproveRequestPunchParam build(java.util.Map map) throws Exception {
CreateApproveRequestPunchParam self = new CreateApproveRequestPunchParam();
return TeaModel.build(map, self);
}
public CreateApproveRequestPunchParam setPositionId(String positionId) {
this.positionId = positionId;
return this;
}
public String getPositionId() {
return this.positionId;
}
public CreateApproveRequestPunchParam setPositionName(String positionName) {
this.positionName = positionName;
return this;
}
public String getPositionName() {
return this.positionName;
}
public CreateApproveRequestPunchParam setPositionType(String positionType) {
this.positionType = positionType;
return this;
}
public String getPositionType() {
return this.positionType;
}
public CreateApproveRequestPunchParam setPunchTime(Long punchTime) {
this.punchTime = punchTime;
return this;
}
public Long getPunchTime() {
return this.punchTime;
}
}
}