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

com.aliyun.sdk.service.cloud_siem20220616.models.PostAutomateResponseConfigRequest 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 PostAutomateResponseConfigRequest} extends {@link RequestModel}
 *
 * 

PostAutomateResponseConfigRequest

*/ public class PostAutomateResponseConfigRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ActionConfig") private String actionConfig; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ActionType") private String actionType; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("AutoResponseType") private String autoResponseType; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ExecutionCondition") private String executionCondition; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Id") private Long id; @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("RuleName") private String ruleName; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("SubUserId") private Long subUserId; private PostAutomateResponseConfigRequest(Builder builder) { super(builder); this.actionConfig = builder.actionConfig; this.actionType = builder.actionType; this.autoResponseType = builder.autoResponseType; this.executionCondition = builder.executionCondition; this.id = builder.id; this.regionId = builder.regionId; this.roleFor = builder.roleFor; this.roleType = builder.roleType; this.ruleName = builder.ruleName; this.subUserId = builder.subUserId; } public static Builder builder() { return new Builder(); } public static PostAutomateResponseConfigRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return actionConfig */ public String getActionConfig() { return this.actionConfig; } /** * @return actionType */ public String getActionType() { return this.actionType; } /** * @return autoResponseType */ public String getAutoResponseType() { return this.autoResponseType; } /** * @return executionCondition */ public String getExecutionCondition() { return this.executionCondition; } /** * @return id */ public Long getId() { return this.id; } /** * @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 ruleName */ public String getRuleName() { return this.ruleName; } /** * @return subUserId */ public Long getSubUserId() { return this.subUserId; } public static final class Builder extends Request.Builder { private String actionConfig; private String actionType; private String autoResponseType; private String executionCondition; private Long id; private String regionId; private Long roleFor; private Integer roleType; private String ruleName; private Long subUserId; private Builder() { super(); } private Builder(PostAutomateResponseConfigRequest request) { super(request); this.actionConfig = request.actionConfig; this.actionType = request.actionType; this.autoResponseType = request.autoResponseType; this.executionCondition = request.executionCondition; this.id = request.id; this.regionId = request.regionId; this.roleFor = request.roleFor; this.roleType = request.roleType; this.ruleName = request.ruleName; this.subUserId = request.subUserId; } /** * The action configuration of the automated response rule. The value is in the JSON format. */ public Builder actionConfig(String actionConfig) { this.putBodyParameter("ActionConfig", actionConfig); this.actionConfig = actionConfig; return this; } /** * The type of the handling action. Multiple types are separated by commas (,). Valid values: *

* * * **doPlaybook**: runs the playbook. * * **changeEventStatus**: changes the event status. * * **changeThreatLevel**: changes the threat level of the event. */ public Builder actionType(String actionType) { this.putBodyParameter("ActionType", actionType); this.actionType = actionType; return this; } /** * The type of the automated response rule. Valid values: *

* * * **event** * * **alert** */ public Builder autoResponseType(String autoResponseType) { this.putBodyParameter("AutoResponseType", autoResponseType); this.autoResponseType = autoResponseType; return this; } /** * The trigger condition of the automated response rule. The value is in the JSON format. */ public Builder executionCondition(String executionCondition) { this.putBodyParameter("ExecutionCondition", executionCondition); this.executionCondition = executionCondition; return this; } /** * The rule ID. */ public Builder id(Long id) { this.putBodyParameter("Id", id); this.id = id; return this; } /** * The data management center of the threat analysis feature. 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 rule name. */ public Builder ruleName(String ruleName) { this.putBodyParameter("RuleName", ruleName); this.ruleName = ruleName; return this; } /** * The ID of the user who created the rule. */ public Builder subUserId(Long subUserId) { this.putBodyParameter("SubUserId", subUserId); this.subUserId = subUserId; return this; } @Override public PostAutomateResponseConfigRequest build() { return new PostAutomateResponseConfigRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy