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

com.volcengine.model.tls.request.ApplyRuleToHostGroupsRequest Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.model.tls.request;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

import static com.volcengine.model.tls.Const.HOST_GROUP_IDS;
import static com.volcengine.model.tls.Const.RULE_ID;

@Data
@NoArgsConstructor
public class ApplyRuleToHostGroupsRequest {
    @JSONField(name = RULE_ID)
    String ruleId;
    @JSONField(name = HOST_GROUP_IDS)
    List hostGroupIds;


    /**
     * @param ruleId       采集配置id
     * @param hostGroupIds 机器组id列表
     */
    public ApplyRuleToHostGroupsRequest(String ruleId, List hostGroupIds) {
        this.ruleId = ruleId;
        this.hostGroupIds = hostGroupIds;
    }

    /**
     * @return 采集配置id
     */
    public String getRuleId() {
        return ruleId;
    }

    /**
     * @param ruleId 采集配置id
     */
    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    /**
     * @return 机器组id列表
     */
    public List getHostGroupIds() {
        return hostGroupIds;
    }

    /**
     * @param hostGroupIds 机器组id列表
     */
    public void setHostGroupIds(List hostGroupIds) {
        this.hostGroupIds = hostGroupIds;
    }

    /**
     * @return 检验必填参数,true合法false不合法
     */
    public boolean CheckValidation() {
        if (this.ruleId == null || this.hostGroupIds == null) {
            return false;
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy