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

com.aliyun.sdk.service.emr20210320.models.DeleteScriptRequest Maven / Gradle / Ivy

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 DeleteScriptRequest} extends {@link RequestModel}
 *
 * 

DeleteScriptRequest

*/ public class DeleteScriptRequest 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("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 DeleteScriptRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.regionId = builder.regionId; this.scriptId = builder.scriptId; this.scriptType = builder.scriptType; } public static Builder builder() { return new Builder(); } public static DeleteScriptRequest 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 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 String scriptId; private String scriptType; private Builder() { super(); } private Builder(DeleteScriptRequest request) { super(request); this.clusterId = request.clusterId; this.regionId = request.regionId; 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 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 DeleteScriptRequest build() { return new DeleteScriptRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy