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

com.aliyun.sdk.service.gpdb20160503.models.DescribeDBInstanceErrorLogRequest Maven / Gradle / Ivy

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

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

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

DescribeDBInstanceErrorLogRequest

*/ public class DescribeDBInstanceErrorLogRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String DBInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Database") private String database; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Host") private String host; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Keywords") private String keywords; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogLevel") private String logLevel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("User") private String user; private DescribeDBInstanceErrorLogRequest(Builder builder) { super(builder); this.DBInstanceId = builder.DBInstanceId; this.database = builder.database; this.endTime = builder.endTime; this.host = builder.host; this.keywords = builder.keywords; this.logLevel = builder.logLevel; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.startTime = builder.startTime; this.user = builder.user; } public static Builder builder() { return new Builder(); } public static DescribeDBInstanceErrorLogRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return DBInstanceId */ public String getDBInstanceId() { return this.DBInstanceId; } /** * @return database */ public String getDatabase() { return this.database; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return host */ public String getHost() { return this.host; } /** * @return keywords */ public String getKeywords() { return this.keywords; } /** * @return logLevel */ public String getLogLevel() { return this.logLevel; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return user */ public String getUser() { return this.user; } public static final class Builder extends Request.Builder { private String DBInstanceId; private String database; private String endTime; private String host; private String keywords; private String logLevel; private Integer pageNumber; private Integer pageSize; private String startTime; private String user; private Builder() { super(); } private Builder(DescribeDBInstanceErrorLogRequest request) { super(request); this.DBInstanceId = request.DBInstanceId; this.database = request.database; this.endTime = request.endTime; this.host = request.host; this.keywords = request.keywords; this.logLevel = request.logLevel; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.startTime = request.startTime; this.user = request.user; } /** * The instance ID. *

* * > You can call the [DescribeDBInstances](~~86911~~) operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs. */ public Builder DBInstanceId(String DBInstanceId) { this.putQueryParameter("DBInstanceId", DBInstanceId); this.DBInstanceId = DBInstanceId; return this; } /** * The name of the database. */ public Builder database(String database) { this.putQueryParameter("Database", database); this.database = database; return this; } /** * The end of the time range to query. Specify the time in the ISO 8601 standard in the *yyyy-MM-dd*T*HH:mm*Z format. The time must be in UTC. The end time must be later than the start time. */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * This parameter is not supported in Alibaba Cloud public cloud. */ public Builder host(String host) { this.putQueryParameter("Host", host); this.host = host; return this; } /** * One or more keywords that are used to query error logs. */ public Builder keywords(String keywords) { this.putQueryParameter("Keywords", keywords); this.keywords = keywords; return this; } /** * The level of the logs to query. Valid values: *

* * * **ALL**: queries all error logs. * * **PANIC**: queries only abnormal logs. * * **FATAL**: queries only critical logs. * * **ERROR**: queries only error logs. */ public Builder logLevel(String logLevel) { this.putQueryParameter("LogLevel", logLevel); this.logLevel = logLevel; return this; } /** * The page number. Pages start from page 1. Default value: **1**. */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * The number of entries per page. Valid values: *

* * * **20** * * **50** * * **100** * * Default value: **20**. */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * The beginning of the time range to query. Specify the time in the ISO 8601 standard in the *yyyy-MM-dd*T*HH:mm*Z format. The time must be in UTC. */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } /** * The username. */ public Builder user(String user) { this.putQueryParameter("User", user); this.user = user; return this; } @Override public DescribeDBInstanceErrorLogRequest build() { return new DescribeDBInstanceErrorLogRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy