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

com.tencentcloudapi.hasim.v20210716.models.CreateRuleRequest Maven / Gradle / Ivy

There is a newer version: 3.1.894
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.hasim.v20210716.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class CreateRuleRequest extends AbstractModel{

    /**
    * 自动化规则名称
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * 规则类型:用量类(101 当月|102有效期内)、位置类(201行政区|202移动距离)、网络质量类(301网络盲点)
    */
    @SerializedName("Type")
    @Expose
    private Long Type;

    /**
    * 是否激活
    */
    @SerializedName("IsActive")
    @Expose
    private Boolean IsActive;

    /**
    * 触发动作:1 邮件 2 API请求 3 微信 4 停卡 5 地图标识为盲点
    */
    @SerializedName("Notice")
    @Expose
    private Long Notice;

    /**
    * 邮箱
    */
    @SerializedName("Email")
    @Expose
    private String Email;

    /**
    * 推送的API地址
    */
    @SerializedName("Url")
    @Expose
    private String Url;

    /**
    * 用量阈值
    */
    @SerializedName("DataThreshold")
    @Expose
    private Long DataThreshold;

    /**
    * 行政区类型:1. 省份 2. 城市 3. 区
    */
    @SerializedName("District")
    @Expose
    private Long District;

    /**
    * 心跳移动距离阈值
    */
    @SerializedName("Distance")
    @Expose
    private Long Distance;

    /**
    * 信号强度阈值
    */
    @SerializedName("SignalStrength")
    @Expose
    private Long SignalStrength;

    /**
    * 盲点时间阈值,天
    */
    @SerializedName("LostDay")
    @Expose
    private Long LostDay;

    /**
    * 标签ID集合
    */
    @SerializedName("TagIDs")
    @Expose
    private Long [] TagIDs;

    /**
    * 资费计划
    */
    @SerializedName("SalePlan")
    @Expose
    private String SalePlan;

    /**
     * Get 自动化规则名称 
     * @return Name 自动化规则名称
     */
    public String getName() {
        return this.Name;
    }

    /**
     * Set 自动化规则名称
     * @param Name 自动化规则名称
     */
    public void setName(String Name) {
        this.Name = Name;
    }

    /**
     * Get 规则类型:用量类(101 当月|102有效期内)、位置类(201行政区|202移动距离)、网络质量类(301网络盲点) 
     * @return Type 规则类型:用量类(101 当月|102有效期内)、位置类(201行政区|202移动距离)、网络质量类(301网络盲点)
     */
    public Long getType() {
        return this.Type;
    }

    /**
     * Set 规则类型:用量类(101 当月|102有效期内)、位置类(201行政区|202移动距离)、网络质量类(301网络盲点)
     * @param Type 规则类型:用量类(101 当月|102有效期内)、位置类(201行政区|202移动距离)、网络质量类(301网络盲点)
     */
    public void setType(Long Type) {
        this.Type = Type;
    }

    /**
     * Get 是否激活 
     * @return IsActive 是否激活
     */
    public Boolean getIsActive() {
        return this.IsActive;
    }

    /**
     * Set 是否激活
     * @param IsActive 是否激活
     */
    public void setIsActive(Boolean IsActive) {
        this.IsActive = IsActive;
    }

    /**
     * Get 触发动作:1 邮件 2 API请求 3 微信 4 停卡 5 地图标识为盲点 
     * @return Notice 触发动作:1 邮件 2 API请求 3 微信 4 停卡 5 地图标识为盲点
     */
    public Long getNotice() {
        return this.Notice;
    }

    /**
     * Set 触发动作:1 邮件 2 API请求 3 微信 4 停卡 5 地图标识为盲点
     * @param Notice 触发动作:1 邮件 2 API请求 3 微信 4 停卡 5 地图标识为盲点
     */
    public void setNotice(Long Notice) {
        this.Notice = Notice;
    }

    /**
     * Get 邮箱 
     * @return Email 邮箱
     */
    public String getEmail() {
        return this.Email;
    }

    /**
     * Set 邮箱
     * @param Email 邮箱
     */
    public void setEmail(String Email) {
        this.Email = Email;
    }

    /**
     * Get 推送的API地址 
     * @return Url 推送的API地址
     */
    public String getUrl() {
        return this.Url;
    }

    /**
     * Set 推送的API地址
     * @param Url 推送的API地址
     */
    public void setUrl(String Url) {
        this.Url = Url;
    }

    /**
     * Get 用量阈值 
     * @return DataThreshold 用量阈值
     */
    public Long getDataThreshold() {
        return this.DataThreshold;
    }

    /**
     * Set 用量阈值
     * @param DataThreshold 用量阈值
     */
    public void setDataThreshold(Long DataThreshold) {
        this.DataThreshold = DataThreshold;
    }

    /**
     * Get 行政区类型:1. 省份 2. 城市 3. 区 
     * @return District 行政区类型:1. 省份 2. 城市 3. 区
     */
    public Long getDistrict() {
        return this.District;
    }

    /**
     * Set 行政区类型:1. 省份 2. 城市 3. 区
     * @param District 行政区类型:1. 省份 2. 城市 3. 区
     */
    public void setDistrict(Long District) {
        this.District = District;
    }

    /**
     * Get 心跳移动距离阈值 
     * @return Distance 心跳移动距离阈值
     */
    public Long getDistance() {
        return this.Distance;
    }

    /**
     * Set 心跳移动距离阈值
     * @param Distance 心跳移动距离阈值
     */
    public void setDistance(Long Distance) {
        this.Distance = Distance;
    }

    /**
     * Get 信号强度阈值 
     * @return SignalStrength 信号强度阈值
     */
    public Long getSignalStrength() {
        return this.SignalStrength;
    }

    /**
     * Set 信号强度阈值
     * @param SignalStrength 信号强度阈值
     */
    public void setSignalStrength(Long SignalStrength) {
        this.SignalStrength = SignalStrength;
    }

    /**
     * Get 盲点时间阈值,天 
     * @return LostDay 盲点时间阈值,天
     */
    public Long getLostDay() {
        return this.LostDay;
    }

    /**
     * Set 盲点时间阈值,天
     * @param LostDay 盲点时间阈值,天
     */
    public void setLostDay(Long LostDay) {
        this.LostDay = LostDay;
    }

    /**
     * Get 标签ID集合 
     * @return TagIDs 标签ID集合
     */
    public Long [] getTagIDs() {
        return this.TagIDs;
    }

    /**
     * Set 标签ID集合
     * @param TagIDs 标签ID集合
     */
    public void setTagIDs(Long [] TagIDs) {
        this.TagIDs = TagIDs;
    }

    /**
     * Get 资费计划 
     * @return SalePlan 资费计划
     */
    public String getSalePlan() {
        return this.SalePlan;
    }

    /**
     * Set 资费计划
     * @param SalePlan 资费计划
     */
    public void setSalePlan(String SalePlan) {
        this.SalePlan = SalePlan;
    }

    public CreateRuleRequest() {
    }

    /**
     * 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 CreateRuleRequest(CreateRuleRequest source) {
        if (source.Name != null) {
            this.Name = new String(source.Name);
        }
        if (source.Type != null) {
            this.Type = new Long(source.Type);
        }
        if (source.IsActive != null) {
            this.IsActive = new Boolean(source.IsActive);
        }
        if (source.Notice != null) {
            this.Notice = new Long(source.Notice);
        }
        if (source.Email != null) {
            this.Email = new String(source.Email);
        }
        if (source.Url != null) {
            this.Url = new String(source.Url);
        }
        if (source.DataThreshold != null) {
            this.DataThreshold = new Long(source.DataThreshold);
        }
        if (source.District != null) {
            this.District = new Long(source.District);
        }
        if (source.Distance != null) {
            this.Distance = new Long(source.Distance);
        }
        if (source.SignalStrength != null) {
            this.SignalStrength = new Long(source.SignalStrength);
        }
        if (source.LostDay != null) {
            this.LostDay = new Long(source.LostDay);
        }
        if (source.TagIDs != null) {
            this.TagIDs = new Long[source.TagIDs.length];
            for (int i = 0; i < source.TagIDs.length; i++) {
                this.TagIDs[i] = new Long(source.TagIDs[i]);
            }
        }
        if (source.SalePlan != null) {
            this.SalePlan = new String(source.SalePlan);
        }
    }


    /**
     * 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 + "Type", this.Type);
        this.setParamSimple(map, prefix + "IsActive", this.IsActive);
        this.setParamSimple(map, prefix + "Notice", this.Notice);
        this.setParamSimple(map, prefix + "Email", this.Email);
        this.setParamSimple(map, prefix + "Url", this.Url);
        this.setParamSimple(map, prefix + "DataThreshold", this.DataThreshold);
        this.setParamSimple(map, prefix + "District", this.District);
        this.setParamSimple(map, prefix + "Distance", this.Distance);
        this.setParamSimple(map, prefix + "SignalStrength", this.SignalStrength);
        this.setParamSimple(map, prefix + "LostDay", this.LostDay);
        this.setParamArraySimple(map, prefix + "TagIDs.", this.TagIDs);
        this.setParamSimple(map, prefix + "SalePlan", this.SalePlan);

    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy