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

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

DescribeAlertsRequest

*/ public class DescribeAlertsRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("AlertTitle") private String alertTitle; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("AlertUuid") private String alertUuid; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("CurrentPage") @com.aliyun.core.annotation.Validation(required = true, minimum = 1) private Integer currentPage; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("EndTime") private Long endTime; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("IsDefend") private String isDefend; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Level") private java.util.List < String > level; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(required = true, maximum = 100, minimum = 1) private Integer pageSize; @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("Source") private String source; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("StartTime") private Long startTime; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("SubUserId") private String subUserId; private DescribeAlertsRequest(Builder builder) { super(builder); this.alertTitle = builder.alertTitle; this.alertUuid = builder.alertUuid; this.currentPage = builder.currentPage; this.endTime = builder.endTime; this.isDefend = builder.isDefend; this.level = builder.level; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.roleFor = builder.roleFor; this.roleType = builder.roleType; this.source = builder.source; this.startTime = builder.startTime; this.subUserId = builder.subUserId; } public static Builder builder() { return new Builder(); } public static DescribeAlertsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return alertTitle */ public String getAlertTitle() { return this.alertTitle; } /** * @return alertUuid */ public String getAlertUuid() { return this.alertUuid; } /** * @return currentPage */ public Integer getCurrentPage() { return this.currentPage; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return isDefend */ public String getIsDefend() { return this.isDefend; } /** * @return level */ public java.util.List < String > getLevel() { return this.level; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @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 source */ public String getSource() { return this.source; } /** * @return startTime */ public Long getStartTime() { return this.startTime; } /** * @return subUserId */ public String getSubUserId() { return this.subUserId; } public static final class Builder extends Request.Builder { private String alertTitle; private String alertUuid; private Integer currentPage; private Long endTime; private String isDefend; private java.util.List < String > level; private Integer pageSize; private String regionId; private Long roleFor; private Integer roleType; private String source; private Long startTime; private String subUserId; private Builder() { super(); } private Builder(DescribeAlertsRequest request) { super(request); this.alertTitle = request.alertTitle; this.alertUuid = request.alertUuid; this.currentPage = request.currentPage; this.endTime = request.endTime; this.isDefend = request.isDefend; this.level = request.level; this.pageSize = request.pageSize; this.regionId = request.regionId; this.roleFor = request.roleFor; this.roleType = request.roleType; this.source = request.source; this.startTime = request.startTime; this.subUserId = request.subUserId; } /** * The title of the alert. */ public Builder alertTitle(String alertTitle) { this.putBodyParameter("AlertTitle", alertTitle); this.alertTitle = alertTitle; return this; } /** * The UUID of the alert. */ public Builder alertUuid(String alertUuid) { this.putBodyParameter("AlertUuid", alertUuid); this.alertUuid = alertUuid; return this; } /** * The page number. Pages start from page 1. */ public Builder currentPage(Integer currentPage) { this.putBodyParameter("CurrentPage", currentPage); this.currentPage = currentPage; return this; } /** * The end of the time range to query. Unit: milliseconds. */ public Builder endTime(Long endTime) { this.putBodyParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * Specifies whether an attack is defended. Valid values: *

* * * 0: detected. * * 1: blocked. */ public Builder isDefend(String isDefend) { this.putBodyParameter("IsDefend", isDefend); this.isDefend = isDefend; return this; } /** * The risk level. The value is a JSON array. Valid values: *

* * * serious: high * * suspicious: medium * * remind: low */ public Builder level(java.util.List < String > level) { this.putBodyParameter("Level", level); this.level = level; return this; } /** * The number of entries per page. Maximum value: 100. */ public Builder pageSize(Integer pageSize) { this.putBodyParameter("PageSize", pageSize); this.pageSize = pageSize; 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 source of the alert. */ public Builder source(String source) { this.putBodyParameter("Source", source); this.source = source; return this; } /** * The beginning of the time range to query. Unit: milliseconds. */ public Builder startTime(Long startTime) { this.putBodyParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * The ID of the Alibaba Cloud account within which the alert is generated. */ public Builder subUserId(String subUserId) { this.putBodyParameter("SubUserId", subUserId); this.subUserId = subUserId; return this; } @Override public DescribeAlertsRequest build() { return new DescribeAlertsRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy