com.antgroup.antchain.openapi.demo.models.DemoClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-demo Show documentation
Show all versions of openapi-demo Show documentation
Ant Chain DEMO SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.demo.models;
import com.aliyun.tea.*;
public class DemoClass extends TeaModel {
// 字符串测试
@NameInMap("some_string")
@Validation(required = true)
public String someString;
// 日期测试
@NameInMap("some_date")
@Validation(required = true, pattern = "\\d{4}[-]\\d{1,2}[-]\\d{1,2}[T]\\d{2}:\\d{2}:\\d{2}([Z]|([\\.]\\d{1,9})?[\\+]\\d{2}[\\:]?\\d{2})")
public String someDate;
// Boolean测试
@NameInMap("some_boolean")
@Validation(required = true)
public Boolean someBoolean;
// 整数测试
@NameInMap("some_int")
@Validation(required = true, maximum = 2000, minimum = 1)
public Long someInt;
// 列表测试
@NameInMap("some_list")
@Validation(required = true)
public java.util.List someList;
public static DemoClass build(java.util.Map map) throws Exception {
DemoClass self = new DemoClass();
return TeaModel.build(map, self);
}
public DemoClass setSomeString(String someString) {
this.someString = someString;
return this;
}
public String getSomeString() {
return this.someString;
}
public DemoClass setSomeDate(String someDate) {
this.someDate = someDate;
return this;
}
public String getSomeDate() {
return this.someDate;
}
public DemoClass setSomeBoolean(Boolean someBoolean) {
this.someBoolean = someBoolean;
return this;
}
public Boolean getSomeBoolean() {
return this.someBoolean;
}
public DemoClass setSomeInt(Long someInt) {
this.someInt = someInt;
return this;
}
public Long getSomeInt() {
return this.someInt;
}
public DemoClass setSomeList(java.util.List someList) {
this.someList = someList;
return this;
}
public java.util.List getSomeList() {
return this.someList;
}
}