com.aliyun.sdk.service.cloudapi20160714.models.DescribeModelsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Alibaba Cloud CloudAPI (20160714) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import com.aliyun.core.annotation.*;
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 {
@Query
@NameInMap("GroupId")
@Validation(required = true)
private String groupId;
@Query
@NameInMap("ModelId")
private String modelId;
@Query
@NameInMap("ModelName")
private String modelName;
@Query
@NameInMap("PageNumber")
private Integer pageNumber;
@Query
@NameInMap("PageSize")
private Integer pageSize;
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;
}
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;
}
public static final class Builder extends Request.Builder {
private String groupId;
private String modelId;
private String modelName;
private Integer pageNumber;
private Integer pageSize;
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;
}
/**
* The number of entries to return on each page. Maximum value: 100. Default value: 10.
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* The ID of the request.
*/
public Builder modelId(String modelId) {
this.putQueryParameter("ModelId", modelId);
this.modelId = modelId;
return this;
}
/**
* The number of the page to return. Pages start from page 1. Default value: 1.
*/
public Builder modelName(String modelName) {
this.putQueryParameter("ModelName", modelName);
this.modelName = modelName;
return this;
}
/**
* The page number of the returned page.
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* The ID of the model.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public DescribeModelsRequest build() {
return new DescribeModelsRequest(this);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy