com.aliyun.sdk.service.cloudapi20160714.models.DescribeModelsRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeModelsRequest} extends {@link RequestModel}
*
* DescribeModelsRequest
*/
public class DescribeModelsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String groupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ModelId")
private String modelId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ModelName")
private String modelName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List < Tag> tag;
private DescribeModelsRequest(Builder builder) {
super(builder);
this.groupId = builder.groupId;
this.modelId = builder.modelId;
this.modelName = builder.modelName;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeModelsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return groupId
*/
public String getGroupId() {
return this.groupId;
}
/**
* @return modelId
*/
public String getModelId() {
return this.modelId;
}
/**
* @return modelName
*/
public String getModelName() {
return this.modelName;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return tag
*/
public java.util.List < Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder {
private String groupId;
private String modelId;
private String modelName;
private Integer pageNumber;
private Integer pageSize;
private java.util.List < Tag> tag;
private Builder() {
super();
}
private Builder(DescribeModelsRequest request) {
super(request);
this.groupId = request.groupId;
this.modelId = request.modelId;
this.modelName = request.modelName;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.tag = request.tag;
}
/**
* The ID of the API group.
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* The ID of the model.
*/
public Builder modelId(String modelId) {
this.putQueryParameter("ModelId", modelId);
this.modelId = modelId;
return this;
}
/**
* The name of the model.
*/
public Builder modelName(String modelName) {
this.putQueryParameter("ModelName", modelName);
this.modelName = modelName;
return this;
}
/**
* The number of the page to return. Pages start from page 1. Default value: 1.
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries to return on each page. Maximum value: 100. Default value: 10.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* Tag.
*/
public Builder tag(java.util.List < Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeModelsRequest build() {
return new DescribeModelsRequest(this);
}
}
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
/**
* Key.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* Value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy