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

com.aliyun.cmn20200825.models.Script Maven / Gradle / Ivy

There is a newer version: 1.0.14
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.cmn20200825.models;

import com.aliyun.tea.*;

public class Script extends TeaModel {
    // 脚本代码
    @NameInMap("Content")
    public String content;

    // 创建时间
    @NameInMap("GmtCreate")
    public String gmtCreate;

    // 修改时间
    @NameInMap("GmtModify")
    public String gmtModify;

    // 模板入参
    @NameInMap("Input")
    public java.util.List input;

    // 模板出参
    @NameInMap("Output")
    public java.util.List output;

    // 规则列表
    @NameInMap("Rules")
    public java.util.List rules;

    // 脚本id
    @NameInMap("ScriptId")
    public String scriptId;

    // 模板id
    @NameInMap("TemplateId")
    public String templateId;

    // 版本id
    @NameInMap("VersionId")
    public String versionId;

    public static Script build(java.util.Map map) throws Exception {
        Script self = new Script();
        return TeaModel.build(map, self);
    }

    public Script setContent(String content) {
        this.content = content;
        return this;
    }
    public String getContent() {
        return this.content;
    }

    public Script setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
        return this;
    }
    public String getGmtCreate() {
        return this.gmtCreate;
    }

    public Script setGmtModify(String gmtModify) {
        this.gmtModify = gmtModify;
        return this;
    }
    public String getGmtModify() {
        return this.gmtModify;
    }

    public Script setInput(java.util.List input) {
        this.input = input;
        return this;
    }
    public java.util.List getInput() {
        return this.input;
    }

    public Script setOutput(java.util.List output) {
        this.output = output;
        return this;
    }
    public java.util.List getOutput() {
        return this.output;
    }

    public Script setRules(java.util.List rules) {
        this.rules = rules;
        return this;
    }
    public java.util.List getRules() {
        return this.rules;
    }

    public Script setScriptId(String scriptId) {
        this.scriptId = scriptId;
        return this;
    }
    public String getScriptId() {
        return this.scriptId;
    }

    public Script setTemplateId(String templateId) {
        this.templateId = templateId;
        return this;
    }
    public String getTemplateId() {
        return this.templateId;
    }

    public Script setVersionId(String versionId) {
        this.versionId = versionId;
        return this;
    }
    public String getVersionId() {
        return this.versionId;
    }

    public static class InspectionScriptInspectionAlarmRules extends TeaModel {
        // 告警表达式
        @NameInMap("AlarmExpression")
        public String alarmExpression;

        // 告警级别
        @NameInMap("AlarmLevel")
        public String alarmLevel;

        // 告警符号
        @NameInMap("AlarmOperator")
        public String alarmOperator;

        // 告警值
        @NameInMap("AlarmValue")
        public String alarmValue;

        public static InspectionScriptInspectionAlarmRules build(java.util.Map map) throws Exception {
            InspectionScriptInspectionAlarmRules self = new InspectionScriptInspectionAlarmRules();
            return TeaModel.build(map, self);
        }

        public InspectionScriptInspectionAlarmRules setAlarmExpression(String alarmExpression) {
            this.alarmExpression = alarmExpression;
            return this;
        }
        public String getAlarmExpression() {
            return this.alarmExpression;
        }

        public InspectionScriptInspectionAlarmRules setAlarmLevel(String alarmLevel) {
            this.alarmLevel = alarmLevel;
            return this;
        }
        public String getAlarmLevel() {
            return this.alarmLevel;
        }

        public InspectionScriptInspectionAlarmRules setAlarmOperator(String alarmOperator) {
            this.alarmOperator = alarmOperator;
            return this;
        }
        public String getAlarmOperator() {
            return this.alarmOperator;
        }

        public InspectionScriptInspectionAlarmRules setAlarmValue(String alarmValue) {
            this.alarmValue = alarmValue;
            return this;
        }
        public String getAlarmValue() {
            return this.alarmValue;
        }

    }

    public static class ScriptInput extends TeaModel {
        // 参数说明
        @NameInMap("Description")
        public String description;

        // 参数名称
        @NameInMap("Name")
        public String name;

        // 参数示例
        @NameInMap("Sample")
        public String sample;

        // 参数类型
        @NameInMap("Type")
        public String type;

        public static ScriptInput build(java.util.Map map) throws Exception {
            ScriptInput self = new ScriptInput();
            return TeaModel.build(map, self);
        }

        public ScriptInput setDescription(String description) {
            this.description = description;
            return this;
        }
        public String getDescription() {
            return this.description;
        }

        public ScriptInput setName(String name) {
            this.name = name;
            return this;
        }
        public String getName() {
            return this.name;
        }

        public ScriptInput setSample(String sample) {
            this.sample = sample;
            return this;
        }
        public String getSample() {
            return this.sample;
        }

        public ScriptInput setType(String type) {
            this.type = type;
            return this;
        }
        public String getType() {
            return this.type;
        }

    }

    public static class ScriptOutput extends TeaModel {
        // 参数说明
        @NameInMap("Description")
        public String description;

        // 参数名称
        @NameInMap("Name")
        public String name;

        // 参数示例
        @NameInMap("Sample")
        public String sample;

        // 参数类型
        @NameInMap("Type")
        public String type;

        public static ScriptOutput build(java.util.Map map) throws Exception {
            ScriptOutput self = new ScriptOutput();
            return TeaModel.build(map, self);
        }

        public ScriptOutput setDescription(String description) {
            this.description = description;
            return this;
        }
        public String getDescription() {
            return this.description;
        }

        public ScriptOutput setName(String name) {
            this.name = name;
            return this;
        }
        public String getName() {
            return this.name;
        }

        public ScriptOutput setSample(String sample) {
            this.sample = sample;
            return this;
        }
        public String getSample() {
            return this.sample;
        }

        public ScriptOutput setType(String type) {
            this.type = type;
            return this;
        }
        public String getType() {
            return this.type;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy