com.aliyun.sdk.service.emr20210320.models.ListScriptsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-emr20210320 Show documentation
Show all versions of alibabacloud-emr20210320 Show documentation
Alibaba Cloud Emr (20210320) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.emr20210320.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link ListScriptsRequest} extends {@link RequestModel}
*
* ListScriptsRequest
*/
public class ListScriptsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScriptType")
@com.aliyun.core.annotation.Validation(required = true)
private String scriptType;
private ListScriptsRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.regionId = builder.regionId;
this.scriptType = builder.scriptType;
}
public static Builder builder() {
return new Builder();
}
public static ListScriptsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return scriptType
*/
public String getScriptType() {
return this.scriptType;
}
public static final class Builder extends Request.Builder {
private String clusterId;
private Integer maxResults;
private String nextToken;
private String regionId;
private String scriptType;
private Builder() {
super();
}
private Builder(ListScriptsRequest request) {
super(request);
this.clusterId = request.clusterId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.regionId = request.regionId;
this.scriptType = request.scriptType;
}
/**
* 集群ID。
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* 一次获取的最大记录数。取值范围:1~100。
*/
public Builder maxResults(Integer maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* 标记当前开始读取的位置,置空表示从头开始。
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* 区域ID。
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* 集群脚本类型。
*/
public Builder scriptType(String scriptType) {
this.putQueryParameter("ScriptType", scriptType);
this.scriptType = scriptType;
return this;
}
@Override
public ListScriptsRequest build() {
return new ListScriptsRequest(this);
}
}
}