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

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

GetLogsRequest

*/ public class GetLogsRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("From") @com.aliyun.core.annotation.Validation(required = true) private Integer from; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("PageIndex") @com.aliyun.core.annotation.Validation(required = true) private Integer pageIndex; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(required = true) private Integer pageSize; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Query") private String query; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ReverseOrNot") private Boolean reverseOrNot; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("To") @com.aliyun.core.annotation.Validation(required = true) private Integer to; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Total") private Long total; private GetLogsRequest(Builder builder) { super(builder); this.from = builder.from; this.pageIndex = builder.pageIndex; this.pageSize = builder.pageSize; this.query = builder.query; this.regionId = builder.regionId; this.reverseOrNot = builder.reverseOrNot; this.to = builder.to; this.total = builder.total; } public static Builder builder() { return new Builder(); } public static GetLogsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return from */ public Integer getFrom() { return this.from; } /** * @return pageIndex */ public Integer getPageIndex() { return this.pageIndex; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return query */ public String getQuery() { return this.query; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return reverseOrNot */ public Boolean getReverseOrNot() { return this.reverseOrNot; } /** * @return to */ public Integer getTo() { return this.to; } /** * @return total */ public Long getTotal() { return this.total; } public static final class Builder extends Request.Builder { private Integer from; private Integer pageIndex; private Integer pageSize; private String query; private String regionId; private Boolean reverseOrNot; private Integer to; private Long total; private Builder() { super(); } private Builder(GetLogsRequest request) { super(request); this.from = request.from; this.pageIndex = request.pageIndex; this.pageSize = request.pageSize; this.query = request.query; this.regionId = request.regionId; this.reverseOrNot = request.reverseOrNot; this.to = request.to; this.total = request.total; } /** * The time when the query starts. The value is a UNIX timestamp representing the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. */ public Builder from(Integer from) { this.putBodyParameter("From", from); this.from = from; return this; } /** * The page number. Pages start from page 1. */ public Builder pageIndex(Integer pageIndex) { this.putBodyParameter("PageIndex", pageIndex); this.pageIndex = pageIndex; return this; } /** * The number of entries per page. Valid values: 0 to 100. */ public Builder pageSize(Integer pageSize) { this.putBodyParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * The search statement or the analytic statement. For more information, see [Log search overview](~~43772~~) and [Log analysis overview](~~53608~~). */ public Builder query(String query) { this.putBodyParameter("Query", query); this.query = query; return this; } /** * The data management center of the threat analysis feature. Specify this parameter based on the region where 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; } /** * Specifies whether to sort the results of the log query by time in minutes in descending order. Default value: true. Valid values: *

* * * true * * false */ public Builder reverseOrNot(Boolean reverseOrNot) { this.putBodyParameter("ReverseOrNot", reverseOrNot); this.reverseOrNot = reverseOrNot; return this; } /** * The time when the query ends. The value is a UNIX timestamp representing the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. */ public Builder to(Integer to) { this.putBodyParameter("To", to); this.to = to; return this; } /** * The total number of entries returned. */ public Builder total(Long total) { this.putBodyParameter("Total", total); this.total = total; return this; } @Override public GetLogsRequest build() { return new GetLogsRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy