com.aliyun.dingtalkbadge_1_0.models.CreateBadgeCodeUserInstanceRequest 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.dingtalkbadge_1_0.models;
import com.aliyun.tea.*;
public class CreateBadgeCodeUserInstanceRequest extends TeaModel {
// 有效时间列表,对于连续时间段,只需传入一个对象即可,注意过期时间必须晚于最晚结束时间
@NameInMap("availableTimes")
public java.util.List availableTimes;
// 码标识,由钉钉颁发
@NameInMap("codeIdentity")
public String codeIdentity;
// 码值
@NameInMap("codeValue")
public String codeValue;
// 码值类型,钉钉静态码值:DING_STATIC,访客码或会展码传入
@NameInMap("codeValueType")
public String codeValueType;
// 企业ID
@NameInMap("corpId")
public String corpId;
// 扩展参数
@NameInMap("extInfo")
public java.util.Map extInfo;
// 临时码,传入过期时间
@NameInMap("gmtExpired")
public String gmtExpired;
// 业务幂等ID
@NameInMap("requestId")
public String requestId;
// 状态,传入关闭状态需要用户手动开启后才会渲染二维
@NameInMap("status")
public String status;
// 用户和企业的关系类型,区分内部员工,外部联系人,无关系普通用户
@NameInMap("userCorpRelationType")
public String userCorpRelationType;
// 用户身份标识,取值和用户企业关系类型相关,如果企业无关,传入手机号
@NameInMap("userIdentity")
public String userIdentity;
public static CreateBadgeCodeUserInstanceRequest build(java.util.Map map) throws Exception {
CreateBadgeCodeUserInstanceRequest self = new CreateBadgeCodeUserInstanceRequest();
return TeaModel.build(map, self);
}
public CreateBadgeCodeUserInstanceRequest setAvailableTimes(java.util.List availableTimes) {
this.availableTimes = availableTimes;
return this;
}
public java.util.List getAvailableTimes() {
return this.availableTimes;
}
public CreateBadgeCodeUserInstanceRequest setCodeIdentity(String codeIdentity) {
this.codeIdentity = codeIdentity;
return this;
}
public String getCodeIdentity() {
return this.codeIdentity;
}
public CreateBadgeCodeUserInstanceRequest setCodeValue(String codeValue) {
this.codeValue = codeValue;
return this;
}
public String getCodeValue() {
return this.codeValue;
}
public CreateBadgeCodeUserInstanceRequest setCodeValueType(String codeValueType) {
this.codeValueType = codeValueType;
return this;
}
public String getCodeValueType() {
return this.codeValueType;
}
public CreateBadgeCodeUserInstanceRequest setCorpId(String corpId) {
this.corpId = corpId;
return this;
}
public String getCorpId() {
return this.corpId;
}
public CreateBadgeCodeUserInstanceRequest setExtInfo(java.util.Map extInfo) {
this.extInfo = extInfo;
return this;
}
public java.util.Map getExtInfo() {
return this.extInfo;
}
public CreateBadgeCodeUserInstanceRequest setGmtExpired(String gmtExpired) {
this.gmtExpired = gmtExpired;
return this;
}
public String getGmtExpired() {
return this.gmtExpired;
}
public CreateBadgeCodeUserInstanceRequest setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public CreateBadgeCodeUserInstanceRequest setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
public CreateBadgeCodeUserInstanceRequest setUserCorpRelationType(String userCorpRelationType) {
this.userCorpRelationType = userCorpRelationType;
return this;
}
public String getUserCorpRelationType() {
return this.userCorpRelationType;
}
public CreateBadgeCodeUserInstanceRequest setUserIdentity(String userIdentity) {
this.userIdentity = userIdentity;
return this;
}
public String getUserIdentity() {
return this.userIdentity;
}
public static class CreateBadgeCodeUserInstanceRequestAvailableTimes extends TeaModel {
// 结束时间
@NameInMap("gmtEnd")
public String gmtEnd;
// 开始时间
@NameInMap("gmtStart")
public String gmtStart;
public static CreateBadgeCodeUserInstanceRequestAvailableTimes build(java.util.Map map) throws Exception {
CreateBadgeCodeUserInstanceRequestAvailableTimes self = new CreateBadgeCodeUserInstanceRequestAvailableTimes();
return TeaModel.build(map, self);
}
public CreateBadgeCodeUserInstanceRequestAvailableTimes setGmtEnd(String gmtEnd) {
this.gmtEnd = gmtEnd;
return this;
}
public String getGmtEnd() {
return this.gmtEnd;
}
public CreateBadgeCodeUserInstanceRequestAvailableTimes setGmtStart(String gmtStart) {
this.gmtStart = gmtStart;
return this;
}
public String getGmtStart() {
return this.gmtStart;
}
}
}