
com.tencentcloudapi.emr.v20190103.models.JobResult 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.emr.v20190103.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class JobResult extends AbstractModel{
/**
* 任务步骤名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 任务步骤失败时的处理策略,可以为以下值:
"CONTINUE",跳过当前失败步骤,继续后续步骤。
“TERMINATE_CLUSTER”,终止当前及后续步骤,并销毁集群。
“CANCEL_AND_WAIT”,取消当前步骤并阻塞等待处理。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ActionOnFailure")
@Expose
private String ActionOnFailure;
/**
* 当前步骤的状态,可以为以下值:
“JobFlowStepStatusInit”,初始化状态,等待执行。
“JobFlowStepStatusRunning”,任务步骤正在执行。
“JobFlowStepStatusFailed”,任务步骤执行失败。
“JobFlowStepStatusSucceed”,任务步骤执行成功。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("JobState")
@Expose
private String JobState;
/**
* Get 任务步骤名称。
注意:此字段可能返回 null,表示取不到有效值。
* @return Name 任务步骤名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getName() {
return this.Name;
}
/**
* Set 任务步骤名称。
注意:此字段可能返回 null,表示取不到有效值。
* @param Name 任务步骤名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get 任务步骤失败时的处理策略,可以为以下值:
"CONTINUE",跳过当前失败步骤,继续后续步骤。
“TERMINATE_CLUSTER”,终止当前及后续步骤,并销毁集群。
“CANCEL_AND_WAIT”,取消当前步骤并阻塞等待处理。
注意:此字段可能返回 null,表示取不到有效值。
* @return ActionOnFailure 任务步骤失败时的处理策略,可以为以下值:
"CONTINUE",跳过当前失败步骤,继续后续步骤。
“TERMINATE_CLUSTER”,终止当前及后续步骤,并销毁集群。
“CANCEL_AND_WAIT”,取消当前步骤并阻塞等待处理。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getActionOnFailure() {
return this.ActionOnFailure;
}
/**
* Set 任务步骤失败时的处理策略,可以为以下值:
"CONTINUE",跳过当前失败步骤,继续后续步骤。
“TERMINATE_CLUSTER”,终止当前及后续步骤,并销毁集群。
“CANCEL_AND_WAIT”,取消当前步骤并阻塞等待处理。
注意:此字段可能返回 null,表示取不到有效值。
* @param ActionOnFailure 任务步骤失败时的处理策略,可以为以下值:
"CONTINUE",跳过当前失败步骤,继续后续步骤。
“TERMINATE_CLUSTER”,终止当前及后续步骤,并销毁集群。
“CANCEL_AND_WAIT”,取消当前步骤并阻塞等待处理。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setActionOnFailure(String ActionOnFailure) {
this.ActionOnFailure = ActionOnFailure;
}
/**
* Get 当前步骤的状态,可以为以下值:
“JobFlowStepStatusInit”,初始化状态,等待执行。
“JobFlowStepStatusRunning”,任务步骤正在执行。
“JobFlowStepStatusFailed”,任务步骤执行失败。
“JobFlowStepStatusSucceed”,任务步骤执行成功。
注意:此字段可能返回 null,表示取不到有效值。
* @return JobState 当前步骤的状态,可以为以下值:
“JobFlowStepStatusInit”,初始化状态,等待执行。
“JobFlowStepStatusRunning”,任务步骤正在执行。
“JobFlowStepStatusFailed”,任务步骤执行失败。
“JobFlowStepStatusSucceed”,任务步骤执行成功。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getJobState() {
return this.JobState;
}
/**
* Set 当前步骤的状态,可以为以下值:
“JobFlowStepStatusInit”,初始化状态,等待执行。
“JobFlowStepStatusRunning”,任务步骤正在执行。
“JobFlowStepStatusFailed”,任务步骤执行失败。
“JobFlowStepStatusSucceed”,任务步骤执行成功。
注意:此字段可能返回 null,表示取不到有效值。
* @param JobState 当前步骤的状态,可以为以下值:
“JobFlowStepStatusInit”,初始化状态,等待执行。
“JobFlowStepStatusRunning”,任务步骤正在执行。
“JobFlowStepStatusFailed”,任务步骤执行失败。
“JobFlowStepStatusSucceed”,任务步骤执行成功。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setJobState(String JobState) {
this.JobState = JobState;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "ActionOnFailure", this.ActionOnFailure);
this.setParamSimple(map, prefix + "JobState", this.JobState);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy