![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.batch.v20170312.models.EventConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.batch.v20170312.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 EventConfig extends AbstractModel {
/**
* Event type. Value range:
`JOB_RUNNING`: The job is running, applicable to `SubmitJob`. `JOB_SUCCEED`: The job succeeded, applicable to `SubmitJob`. `JOB_FAILED`: The job failed, applicable to `SubmitJob`. `JOB_FAILED_INTERRUPTED`: The job failed and the instance is retained, applicable to `SubmitJob`. `TASK_RUNNING`: The task is running, applicable to `SubmitJob`. `TASK_SUCCEED`: The task succeeded, applicable to `SubmitJob`. `TASK_FAILED`: The task failed, applicable to `SubmitJob`. `TASK_FAILED_INTERRUPTED`: The task failed and the instance is retained, applicable to `SubmitJob`. `TASK_INSTANCE_RUNNING`: The task instance is running, applicable to `SubmitJob`. `TASK_INSTANCE_SUCCEED`: The task instance succeeded, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED`: The task instance failed, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED_INTERRUPTED`: The task instance failed and the instance is retained, applicable to `SubmitJob`. `COMPUTE_ENV_CREATED`: the compute environment has been created, applicable to "CreateComputeEnv". `COMPUTE_ENV_DELETED`: The compute environment has been deleted, applicable to `CreateComputeEnv`. `COMPUTE_NODE_CREATED`: The compute node has been created, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_CREATION_FAILED`: The compute node creation failed, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_RUNNING`: The compute node is running, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_ABNORMAL`: The compute node is exceptional, applicable to "CreateComputeEnv" and "SubmitJob". `COMPUTE_NODE_DELETING`: The compute node has been deleted, applicable to `CreateComputeEnv` and `SubmitJob`.
*/
@SerializedName("EventName")
@Expose
private String EventName;
/**
* Custom key-value pair
*/
@SerializedName("EventVars")
@Expose
private EventVar [] EventVars;
/**
* Get Event type. Value range:
`JOB_RUNNING`: The job is running, applicable to `SubmitJob`. `JOB_SUCCEED`: The job succeeded, applicable to `SubmitJob`. `JOB_FAILED`: The job failed, applicable to `SubmitJob`. `JOB_FAILED_INTERRUPTED`: The job failed and the instance is retained, applicable to `SubmitJob`. `TASK_RUNNING`: The task is running, applicable to `SubmitJob`. `TASK_SUCCEED`: The task succeeded, applicable to `SubmitJob`. `TASK_FAILED`: The task failed, applicable to `SubmitJob`. `TASK_FAILED_INTERRUPTED`: The task failed and the instance is retained, applicable to `SubmitJob`. `TASK_INSTANCE_RUNNING`: The task instance is running, applicable to `SubmitJob`. `TASK_INSTANCE_SUCCEED`: The task instance succeeded, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED`: The task instance failed, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED_INTERRUPTED`: The task instance failed and the instance is retained, applicable to `SubmitJob`. `COMPUTE_ENV_CREATED`: the compute environment has been created, applicable to "CreateComputeEnv". `COMPUTE_ENV_DELETED`: The compute environment has been deleted, applicable to `CreateComputeEnv`. `COMPUTE_NODE_CREATED`: The compute node has been created, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_CREATION_FAILED`: The compute node creation failed, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_RUNNING`: The compute node is running, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_ABNORMAL`: The compute node is exceptional, applicable to "CreateComputeEnv" and "SubmitJob". `COMPUTE_NODE_DELETING`: The compute node has been deleted, applicable to `CreateComputeEnv` and `SubmitJob`.
* @return EventName Event type. Value range:
`JOB_RUNNING`: The job is running, applicable to `SubmitJob`. `JOB_SUCCEED`: The job succeeded, applicable to `SubmitJob`. `JOB_FAILED`: The job failed, applicable to `SubmitJob`. `JOB_FAILED_INTERRUPTED`: The job failed and the instance is retained, applicable to `SubmitJob`. `TASK_RUNNING`: The task is running, applicable to `SubmitJob`. `TASK_SUCCEED`: The task succeeded, applicable to `SubmitJob`. `TASK_FAILED`: The task failed, applicable to `SubmitJob`. `TASK_FAILED_INTERRUPTED`: The task failed and the instance is retained, applicable to `SubmitJob`. `TASK_INSTANCE_RUNNING`: The task instance is running, applicable to `SubmitJob`. `TASK_INSTANCE_SUCCEED`: The task instance succeeded, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED`: The task instance failed, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED_INTERRUPTED`: The task instance failed and the instance is retained, applicable to `SubmitJob`. `COMPUTE_ENV_CREATED`: the compute environment has been created, applicable to "CreateComputeEnv". `COMPUTE_ENV_DELETED`: The compute environment has been deleted, applicable to `CreateComputeEnv`. `COMPUTE_NODE_CREATED`: The compute node has been created, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_CREATION_FAILED`: The compute node creation failed, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_RUNNING`: The compute node is running, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_ABNORMAL`: The compute node is exceptional, applicable to "CreateComputeEnv" and "SubmitJob". `COMPUTE_NODE_DELETING`: The compute node has been deleted, applicable to `CreateComputeEnv` and `SubmitJob`.
*/
public String getEventName() {
return this.EventName;
}
/**
* Set Event type. Value range:
`JOB_RUNNING`: The job is running, applicable to `SubmitJob`. `JOB_SUCCEED`: The job succeeded, applicable to `SubmitJob`. `JOB_FAILED`: The job failed, applicable to `SubmitJob`. `JOB_FAILED_INTERRUPTED`: The job failed and the instance is retained, applicable to `SubmitJob`. `TASK_RUNNING`: The task is running, applicable to `SubmitJob`. `TASK_SUCCEED`: The task succeeded, applicable to `SubmitJob`. `TASK_FAILED`: The task failed, applicable to `SubmitJob`. `TASK_FAILED_INTERRUPTED`: The task failed and the instance is retained, applicable to `SubmitJob`. `TASK_INSTANCE_RUNNING`: The task instance is running, applicable to `SubmitJob`. `TASK_INSTANCE_SUCCEED`: The task instance succeeded, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED`: The task instance failed, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED_INTERRUPTED`: The task instance failed and the instance is retained, applicable to `SubmitJob`. `COMPUTE_ENV_CREATED`: the compute environment has been created, applicable to "CreateComputeEnv". `COMPUTE_ENV_DELETED`: The compute environment has been deleted, applicable to `CreateComputeEnv`. `COMPUTE_NODE_CREATED`: The compute node has been created, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_CREATION_FAILED`: The compute node creation failed, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_RUNNING`: The compute node is running, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_ABNORMAL`: The compute node is exceptional, applicable to "CreateComputeEnv" and "SubmitJob". `COMPUTE_NODE_DELETING`: The compute node has been deleted, applicable to `CreateComputeEnv` and `SubmitJob`.
* @param EventName Event type. Value range:
`JOB_RUNNING`: The job is running, applicable to `SubmitJob`. `JOB_SUCCEED`: The job succeeded, applicable to `SubmitJob`. `JOB_FAILED`: The job failed, applicable to `SubmitJob`. `JOB_FAILED_INTERRUPTED`: The job failed and the instance is retained, applicable to `SubmitJob`. `TASK_RUNNING`: The task is running, applicable to `SubmitJob`. `TASK_SUCCEED`: The task succeeded, applicable to `SubmitJob`. `TASK_FAILED`: The task failed, applicable to `SubmitJob`. `TASK_FAILED_INTERRUPTED`: The task failed and the instance is retained, applicable to `SubmitJob`. `TASK_INSTANCE_RUNNING`: The task instance is running, applicable to `SubmitJob`. `TASK_INSTANCE_SUCCEED`: The task instance succeeded, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED`: The task instance failed, applicable to `SubmitJob`. `TASK_INSTANCE_FAILED_INTERRUPTED`: The task instance failed and the instance is retained, applicable to `SubmitJob`. `COMPUTE_ENV_CREATED`: the compute environment has been created, applicable to "CreateComputeEnv". `COMPUTE_ENV_DELETED`: The compute environment has been deleted, applicable to `CreateComputeEnv`. `COMPUTE_NODE_CREATED`: The compute node has been created, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_CREATION_FAILED`: The compute node creation failed, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_RUNNING`: The compute node is running, applicable to `CreateComputeEnv` and `SubmitJob`. `COMPUTE_NODE_ABNORMAL`: The compute node is exceptional, applicable to "CreateComputeEnv" and "SubmitJob". `COMPUTE_NODE_DELETING`: The compute node has been deleted, applicable to `CreateComputeEnv` and `SubmitJob`.
*/
public void setEventName(String EventName) {
this.EventName = EventName;
}
/**
* Get Custom key-value pair
* @return EventVars Custom key-value pair
*/
public EventVar [] getEventVars() {
return this.EventVars;
}
/**
* Set Custom key-value pair
* @param EventVars Custom key-value pair
*/
public void setEventVars(EventVar [] EventVars) {
this.EventVars = EventVars;
}
public EventConfig() {
}
/**
* 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 EventConfig(EventConfig source) {
if (source.EventName != null) {
this.EventName = new String(source.EventName);
}
if (source.EventVars != null) {
this.EventVars = new EventVar[source.EventVars.length];
for (int i = 0; i < source.EventVars.length; i++) {
this.EventVars[i] = new EventVar(source.EventVars[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "EventName", this.EventName);
this.setParamArrayObj(map, prefix + "EventVars.", this.EventVars);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy