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

com.tencentcloudapi.monitor.v20180724.models.TaskStepInfo Maven / Gradle / Ivy

There is a newer version: 3.0.1076
Show newest version
/*
 * 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.monitor.v20180724.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 TaskStepInfo extends AbstractModel {

    /**
    * Step name
    */
    @SerializedName("Step")
    @Expose
    private String Step;

    /**
    * Lifecycle
`pending`
`running`
`success`
`failed`
    */
    @SerializedName("LifeState")
    @Expose
    private String LifeState;

    /**
    * Step start time
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("StartAt")
    @Expose
    private String StartAt;

    /**
    * Step end time
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("EndAt")
    @Expose
    private String EndAt;

    /**
    * If `LifeState` is `failed`, this field displays the error message.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("FailedMsg")
    @Expose
    private String FailedMsg;

    /**
     * Get Step name 
     * @return Step Step name
     */
    public String getStep() {
        return this.Step;
    }

    /**
     * Set Step name
     * @param Step Step name
     */
    public void setStep(String Step) {
        this.Step = Step;
    }

    /**
     * Get Lifecycle
`pending`
`running`
`success`
`failed` 
     * @return LifeState Lifecycle
`pending`
`running`
`success`
`failed`
     */
    public String getLifeState() {
        return this.LifeState;
    }

    /**
     * Set Lifecycle
`pending`
`running`
`success`
`failed`
     * @param LifeState Lifecycle
`pending`
`running`
`success`
`failed`
     */
    public void setLifeState(String LifeState) {
        this.LifeState = LifeState;
    }

    /**
     * Get Step start time
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return StartAt Step start time
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getStartAt() {
        return this.StartAt;
    }

    /**
     * Set Step start time
Note: This field may return null, indicating that no valid values can be obtained.
     * @param StartAt Step start time
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setStartAt(String StartAt) {
        this.StartAt = StartAt;
    }

    /**
     * Get Step end time
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return EndAt Step end time
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getEndAt() {
        return this.EndAt;
    }

    /**
     * Set Step end time
Note: This field may return null, indicating that no valid values can be obtained.
     * @param EndAt Step end time
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setEndAt(String EndAt) {
        this.EndAt = EndAt;
    }

    /**
     * Get If `LifeState` is `failed`, this field displays the error message.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return FailedMsg If `LifeState` is `failed`, this field displays the error message.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getFailedMsg() {
        return this.FailedMsg;
    }

    /**
     * Set If `LifeState` is `failed`, this field displays the error message.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param FailedMsg If `LifeState` is `failed`, this field displays the error message.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setFailedMsg(String FailedMsg) {
        this.FailedMsg = FailedMsg;
    }

    public TaskStepInfo() {
    }

    /**
     * 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 TaskStepInfo(TaskStepInfo source) {
        if (source.Step != null) {
            this.Step = new String(source.Step);
        }
        if (source.LifeState != null) {
            this.LifeState = new String(source.LifeState);
        }
        if (source.StartAt != null) {
            this.StartAt = new String(source.StartAt);
        }
        if (source.EndAt != null) {
            this.EndAt = new String(source.EndAt);
        }
        if (source.FailedMsg != null) {
            this.FailedMsg = new String(source.FailedMsg);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Step", this.Step);
        this.setParamSimple(map, prefix + "LifeState", this.LifeState);
        this.setParamSimple(map, prefix + "StartAt", this.StartAt);
        this.setParamSimple(map, prefix + "EndAt", this.EndAt);
        this.setParamSimple(map, prefix + "FailedMsg", this.FailedMsg);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy