com.volcengine.model.tls.request.ApplyRuleToHostGroupsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
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