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

com.antgroup.antchain.openapi.demo.models.DemoClass Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
// 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy