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

com.aliyun.sdk.service.bpstudio20210931.models.ListTemplateRequest Maven / Gradle / Ivy

There is a newer version: 5.0.6
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.bpstudio20210931.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ListTemplateRequest} extends {@link RequestModel}
 *
 * 

ListTemplateRequest

*/ public class ListTemplateRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Keyword") private String keyword; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(required = true, maximum = 50, minimum = 1) private Integer maxResults; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("NextToken") @com.aliyun.core.annotation.Validation(required = true, maximum = 10000, minimum = 1) private Integer nextToken; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("OrderType") @com.aliyun.core.annotation.Validation(maximum = 5, minimum = 1) private Long orderType; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("TagList") @com.aliyun.core.annotation.Validation() private Integer tagList; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Type") @com.aliyun.core.annotation.Validation(required = true) private String type; private ListTemplateRequest(Builder builder) { super(builder); this.keyword = builder.keyword; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.orderType = builder.orderType; this.resourceGroupId = builder.resourceGroupId; this.tagList = builder.tagList; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static ListTemplateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return keyword */ public String getKeyword() { return this.keyword; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public Integer getNextToken() { return this.nextToken; } /** * @return orderType */ public Long getOrderType() { return this.orderType; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return tagList */ public Integer getTagList() { return this.tagList; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder { private String keyword; private Integer maxResults; private Integer nextToken; private Long orderType; private String resourceGroupId; private Integer tagList; private String type; private Builder() { super(); } private Builder(ListTemplateRequest request) { super(request); this.keyword = request.keyword; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.orderType = request.orderType; this.resourceGroupId = request.resourceGroupId; this.tagList = request.tagList; this.type = request.type; } /** * The keyword that is used to search for templates. */ public Builder keyword(String keyword) { this.putBodyParameter("Keyword", keyword); this.keyword = keyword; return this; } /** * The number of entries to return on each page. */ public Builder maxResults(Integer maxResults) { this.putBodyParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * The number of the page to return. */ public Builder nextToken(Integer nextToken) { this.putBodyParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * The criterion by which the returned templates are sorted. Valid values: *

* * * 1: The templates are sorted by the time when they are updated. * * 2: The templates are sorted by the time when they are created. * * 3: The templates are sorted by the system. * * 4: The templates are sorted by the number of times that they are used. * * If you specify an integer other than 1, 2, 3, and 4 or do not specify any value, the templates are sorted by the system. */ public Builder orderType(Long orderType) { this.putBodyParameter("OrderType", orderType); this.orderType = orderType; return this; } /** * The ID of the resource group. */ public Builder resourceGroupId(String resourceGroupId) { this.putBodyParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * The tag that you want to use to query templates. */ public Builder tagList(Integer tagList) { this.putBodyParameter("TagList", tagList); this.tagList = tagList; return this; } /** * The type of the templates to be returned. Valid values: public and private */ public Builder type(String type) { this.putBodyParameter("Type", type); this.type = type; return this; } @Override public ListTemplateRequest build() { return new ListTemplateRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy