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

com.aliyun.sdk.service.cloud_siem20220616.models.PostRuleStatusChangeRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloud_siem20220616.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link PostRuleStatusChangeRequest} extends {@link RequestModel}
 *
 * 

PostRuleStatusChangeRequest

*/ public class PostRuleStatusChangeRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Ids") private String ids; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("InUse") private Boolean inUse; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("RoleFor") private Long roleFor; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("RoleType") private Integer roleType; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("RuleType") private String ruleType; private PostRuleStatusChangeRequest(Builder builder) { super(builder); this.ids = builder.ids; this.inUse = builder.inUse; this.regionId = builder.regionId; this.roleFor = builder.roleFor; this.roleType = builder.roleType; this.ruleType = builder.ruleType; } public static Builder builder() { return new Builder(); } public static PostRuleStatusChangeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ids */ public String getIds() { return this.ids; } /** * @return inUse */ public Boolean getInUse() { return this.inUse; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return roleFor */ public Long getRoleFor() { return this.roleFor; } /** * @return roleType */ public Integer getRoleType() { return this.roleType; } /** * @return ruleType */ public String getRuleType() { return this.ruleType; } public static final class Builder extends Request.Builder { private String ids; private Boolean inUse; private String regionId; private Long roleFor; private Integer roleType; private String ruleType; private Builder() { super(); } private Builder(PostRuleStatusChangeRequest request) { super(request); this.ids = request.ids; this.inUse = request.inUse; this.regionId = request.regionId; this.roleFor = request.roleFor; this.roleType = request.roleType; this.ruleType = request.ruleType; } /** * The rule IDs. The value is a JSON array. */ public Builder ids(String ids) { this.putBodyParameter("Ids", ids); this.ids = ids; return this; } /** * Specifies whether to enable the rule. Valid values: *

* * * true * * false */ public Builder inUse(Boolean inUse) { this.putBodyParameter("InUse", inUse); this.inUse = inUse; return this; } /** * The region in which the data management center of the threat analysis feature resides. Specify this parameter based on the regions in which your assets reside. Valid values: *

* * * cn-hangzhou: Your assets reside in regions in China. * * ap-southeast-1: Your assets reside in regions outside China. */ public Builder regionId(String regionId) { this.putBodyParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The ID of the account that you switch from the management account. */ public Builder roleFor(Long roleFor) { this.putBodyParameter("RoleFor", roleFor); this.roleFor = roleFor; return this; } /** * The type of the view. Valid values: *

* - 0: the current Alibaba Cloud account * - 1: the global account */ public Builder roleType(Integer roleType) { this.putBodyParameter("RoleType", roleType); this.roleType = roleType; return this; } /** * The type of the rule. Valid values: *

* * * predefine * * customize */ public Builder ruleType(String ruleType) { this.putBodyParameter("RuleType", ruleType); this.ruleType = ruleType; return this; } @Override public PostRuleStatusChangeRequest build() { return new PostRuleStatusChangeRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy