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

com.aliyun.sdk.service.emr20210320.models.RunApplicationActionRequest 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 RunApplicationActionRequest} extends {@link RequestModel}
 *
 * 

RunApplicationActionRequest

*/ public class RunApplicationActionRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ActionName") @com.aliyun.core.annotation.Validation(required = true) private String actionName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BatchSize") private Integer batchSize; @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("ComponentInstanceSelector") @com.aliyun.core.annotation.Validation(required = true) private ComponentInstanceSelector componentInstanceSelector; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExecuteStrategy") private String executeStrategy; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Interval") private Long interval; @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("RollingExecute") private Boolean rollingExecute; private RunApplicationActionRequest(Builder builder) { super(builder); this.actionName = builder.actionName; this.batchSize = builder.batchSize; this.clusterId = builder.clusterId; this.componentInstanceSelector = builder.componentInstanceSelector; this.description = builder.description; this.executeStrategy = builder.executeStrategy; this.interval = builder.interval; this.regionId = builder.regionId; this.rollingExecute = builder.rollingExecute; } public static Builder builder() { return new Builder(); } public static RunApplicationActionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return actionName */ public String getActionName() { return this.actionName; } /** * @return batchSize */ public Integer getBatchSize() { return this.batchSize; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return componentInstanceSelector */ public ComponentInstanceSelector getComponentInstanceSelector() { return this.componentInstanceSelector; } /** * @return description */ public String getDescription() { return this.description; } /** * @return executeStrategy */ public String getExecuteStrategy() { return this.executeStrategy; } /** * @return interval */ public Long getInterval() { return this.interval; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return rollingExecute */ public Boolean getRollingExecute() { return this.rollingExecute; } public static final class Builder extends Request.Builder { private String actionName; private Integer batchSize; private String clusterId; private ComponentInstanceSelector componentInstanceSelector; private String description; private String executeStrategy; private Long interval; private String regionId; private Boolean rollingExecute; private Builder() { super(); } private Builder(RunApplicationActionRequest request) { super(request); this.actionName = request.actionName; this.batchSize = request.batchSize; this.clusterId = request.clusterId; this.componentInstanceSelector = request.componentInstanceSelector; this.description = request.description; this.executeStrategy = request.executeStrategy; this.interval = request.interval; this.regionId = request.regionId; this.rollingExecute = request.rollingExecute; } /** * The name of the action. Valid values: *

* * * start * * stop * * config * * restart * * refresh_queues * * refresh_labels */ public Builder actionName(String actionName) { this.putQueryParameter("ActionName", actionName); this.actionName = actionName; return this; } /** * The number of applications in each batch. */ public Builder batchSize(Integer batchSize) { this.putQueryParameter("BatchSize", batchSize); this.batchSize = batchSize; return this; } /** * The cluster ID. */ public Builder clusterId(String clusterId) { this.putQueryParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * The operation object. */ public Builder componentInstanceSelector(ComponentInstanceSelector componentInstanceSelector) { this.putQueryParameter("ComponentInstanceSelector", componentInstanceSelector); this.componentInstanceSelector = componentInstanceSelector; return this; } /** * The description of the execution. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * The execution policy. Valid values: *

* * * FAILED_BLOCK: The system stops the execution if the execution fails. * * FAILED_CONTINUE: The system continues the execution if the execution fails. */ public Builder executeStrategy(String executeStrategy) { this.putQueryParameter("ExecuteStrategy", executeStrategy); this.executeStrategy = executeStrategy; return this; } /** * The interval for rolling execution. Unit: seconds. */ public Builder interval(Long interval) { this.putQueryParameter("Interval", interval); this.interval = interval; return this; } /** * The region ID. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * Specifies whether to enable rolling execution. */ public Builder rollingExecute(Boolean rollingExecute) { this.putQueryParameter("RollingExecute", rollingExecute); this.rollingExecute = rollingExecute; return this; } @Override public RunApplicationActionRequest build() { return new RunApplicationActionRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy