com.aliyun.sdk.service.emr20210320.models.UpdateScriptRequest 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 UpdateScriptRequest} extends {@link RequestModel}
*
* UpdateScriptRequest
*/
public class UpdateScriptRequest 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("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Script")
@com.aliyun.core.annotation.Validation(required = true)
private Script script;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScriptId")
@com.aliyun.core.annotation.Validation(required = true)
private String scriptId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScriptType")
@com.aliyun.core.annotation.Validation(required = true)
private String scriptType;
private UpdateScriptRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.regionId = builder.regionId;
this.script = builder.script;
this.scriptId = builder.scriptId;
this.scriptType = builder.scriptType;
}
public static Builder builder() {
return new Builder();
}
public static UpdateScriptRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return script
*/
public Script getScript() {
return this.script;
}
/**
* @return scriptId
*/
public String getScriptId() {
return this.scriptId;
}
/**
* @return scriptType
*/
public String getScriptType() {
return this.scriptType;
}
public static final class Builder extends Request.Builder {
private String clusterId;
private String regionId;
private Script script;
private String scriptId;
private String scriptType;
private Builder() {
super();
}
private Builder(UpdateScriptRequest request) {
super(request);
this.clusterId = request.clusterId;
this.regionId = request.regionId;
this.script = request.script;
this.scriptId = request.scriptId;
this.scriptType = request.scriptType;
}
/**
* The cluster ID.
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* The region ID.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* The script.
*/
public Builder script(Script script) {
String scriptShrink = shrink(script, "Script", "json");
this.putQueryParameter("Script", scriptShrink);
this.script = script;
return this;
}
/**
* The script ID.
*/
public Builder scriptId(String scriptId) {
this.putQueryParameter("ScriptId", scriptId);
this.scriptId = scriptId;
return this;
}
/**
* The type of the script. Valid values:
*
*
* * BOOTSTRAP: indicates a bootstrap action of the Elastic Compute Service (ECS) instance.
* * NORMAL: indicates a common script.
*/
public Builder scriptType(String scriptType) {
this.putQueryParameter("ScriptType", scriptType);
this.scriptType = scriptType;
return this;
}
@Override
public UpdateScriptRequest build() {
return new UpdateScriptRequest(this);
}
}
}