com.tencentcloudapi.dlc.v20210125.models.ModifySparkAppBatchRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.dlc.v20210125.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifySparkAppBatchRequest extends AbstractModel {
/**
* The list of the IDs of the Spark job tasks to be modified in batches.
*/
@SerializedName("SparkAppId")
@Expose
private String [] SparkAppId;
/**
* The engine ID.
*/
@SerializedName("DataEngine")
@Expose
private String DataEngine;
/**
* The driver size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
*/
@SerializedName("AppDriverSize")
@Expose
private String AppDriverSize;
/**
* The executor size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
*/
@SerializedName("AppExecutorSize")
@Expose
private String AppExecutorSize;
/**
* The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
*/
@SerializedName("AppExecutorNums")
@Expose
private Long AppExecutorNums;
/**
* The maximum executor count (in dynamic configuration scenarios). The minimum value is 1 and the maximum value is less than the cluster specification. If you set `ExecutorMaxNumbers` to a value smaller than that of `ExecutorNums`, the value of `ExecutorMaxNumbers` is automatically changed to that of `ExecutorNums`.
*/
@SerializedName("AppExecutorMaxNumbers")
@Expose
private Long AppExecutorMaxNumbers;
/**
* Whether to inherit the task resource configuration from the cluster template. Valid values: `0` (default): No; `1`: Yes.
*/
@SerializedName("IsInherit")
@Expose
private Long IsInherit;
/**
* Get The list of the IDs of the Spark job tasks to be modified in batches.
* @return SparkAppId The list of the IDs of the Spark job tasks to be modified in batches.
*/
public String [] getSparkAppId() {
return this.SparkAppId;
}
/**
* Set The list of the IDs of the Spark job tasks to be modified in batches.
* @param SparkAppId The list of the IDs of the Spark job tasks to be modified in batches.
*/
public void setSparkAppId(String [] SparkAppId) {
this.SparkAppId = SparkAppId;
}
/**
* Get The engine ID.
* @return DataEngine The engine ID.
*/
public String getDataEngine() {
return this.DataEngine;
}
/**
* Set The engine ID.
* @param DataEngine The engine ID.
*/
public void setDataEngine(String DataEngine) {
this.DataEngine = DataEngine;
}
/**
* Get The driver size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
* @return AppDriverSize The driver size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
*/
public String getAppDriverSize() {
return this.AppDriverSize;
}
/**
* Set The driver size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
* @param AppDriverSize The driver size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
*/
public void setAppDriverSize(String AppDriverSize) {
this.AppDriverSize = AppDriverSize;
}
/**
* Get The executor size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
* @return AppExecutorSize The executor size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
*/
public String getAppExecutorSize() {
return this.AppExecutorSize;
}
/**
* Set The executor size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
* @param AppExecutorSize The executor size.
Valid values for the standard resource type: `small`, `medium`, `large`, and `xlarge`.
Valid values for the memory resource type: `m.small`, `m.medium`, `m.large`, and `m.xlarge`.
*/
public void setAppExecutorSize(String AppExecutorSize) {
this.AppExecutorSize = AppExecutorSize;
}
/**
* Get The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
* @return AppExecutorNums The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
*/
public Long getAppExecutorNums() {
return this.AppExecutorNums;
}
/**
* Set The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
* @param AppExecutorNums The executor count. The minimum value is 1 and the maximum value is less than the cluster specification.
*/
public void setAppExecutorNums(Long AppExecutorNums) {
this.AppExecutorNums = AppExecutorNums;
}
/**
* Get The maximum executor count (in dynamic configuration scenarios). The minimum value is 1 and the maximum value is less than the cluster specification. If you set `ExecutorMaxNumbers` to a value smaller than that of `ExecutorNums`, the value of `ExecutorMaxNumbers` is automatically changed to that of `ExecutorNums`.
* @return AppExecutorMaxNumbers The maximum executor count (in dynamic configuration scenarios). The minimum value is 1 and the maximum value is less than the cluster specification. If you set `ExecutorMaxNumbers` to a value smaller than that of `ExecutorNums`, the value of `ExecutorMaxNumbers` is automatically changed to that of `ExecutorNums`.
*/
public Long getAppExecutorMaxNumbers() {
return this.AppExecutorMaxNumbers;
}
/**
* Set The maximum executor count (in dynamic configuration scenarios). The minimum value is 1 and the maximum value is less than the cluster specification. If you set `ExecutorMaxNumbers` to a value smaller than that of `ExecutorNums`, the value of `ExecutorMaxNumbers` is automatically changed to that of `ExecutorNums`.
* @param AppExecutorMaxNumbers The maximum executor count (in dynamic configuration scenarios). The minimum value is 1 and the maximum value is less than the cluster specification. If you set `ExecutorMaxNumbers` to a value smaller than that of `ExecutorNums`, the value of `ExecutorMaxNumbers` is automatically changed to that of `ExecutorNums`.
*/
public void setAppExecutorMaxNumbers(Long AppExecutorMaxNumbers) {
this.AppExecutorMaxNumbers = AppExecutorMaxNumbers;
}
/**
* Get Whether to inherit the task resource configuration from the cluster template. Valid values: `0` (default): No; `1`: Yes.
* @return IsInherit Whether to inherit the task resource configuration from the cluster template. Valid values: `0` (default): No; `1`: Yes.
*/
public Long getIsInherit() {
return this.IsInherit;
}
/**
* Set Whether to inherit the task resource configuration from the cluster template. Valid values: `0` (default): No; `1`: Yes.
* @param IsInherit Whether to inherit the task resource configuration from the cluster template. Valid values: `0` (default): No; `1`: Yes.
*/
public void setIsInherit(Long IsInherit) {
this.IsInherit = IsInherit;
}
public ModifySparkAppBatchRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public ModifySparkAppBatchRequest(ModifySparkAppBatchRequest source) {
if (source.SparkAppId != null) {
this.SparkAppId = new String[source.SparkAppId.length];
for (int i = 0; i < source.SparkAppId.length; i++) {
this.SparkAppId[i] = new String(source.SparkAppId[i]);
}
}
if (source.DataEngine != null) {
this.DataEngine = new String(source.DataEngine);
}
if (source.AppDriverSize != null) {
this.AppDriverSize = new String(source.AppDriverSize);
}
if (source.AppExecutorSize != null) {
this.AppExecutorSize = new String(source.AppExecutorSize);
}
if (source.AppExecutorNums != null) {
this.AppExecutorNums = new Long(source.AppExecutorNums);
}
if (source.AppExecutorMaxNumbers != null) {
this.AppExecutorMaxNumbers = new Long(source.AppExecutorMaxNumbers);
}
if (source.IsInherit != null) {
this.IsInherit = new Long(source.IsInherit);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "SparkAppId.", this.SparkAppId);
this.setParamSimple(map, prefix + "DataEngine", this.DataEngine);
this.setParamSimple(map, prefix + "AppDriverSize", this.AppDriverSize);
this.setParamSimple(map, prefix + "AppExecutorSize", this.AppExecutorSize);
this.setParamSimple(map, prefix + "AppExecutorNums", this.AppExecutorNums);
this.setParamSimple(map, prefix + "AppExecutorMaxNumbers", this.AppExecutorMaxNumbers);
this.setParamSimple(map, prefix + "IsInherit", this.IsInherit);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy