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

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

DescribeSQLLogCountRequest

*/ public class DescribeSQLLogCountRequest 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") @com.aliyun.core.annotation.Validation(required = true) private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExecuteCost") private String executeCost; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExecuteState") private String executeState; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxExecuteCost") private String maxExecuteCost; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MinExecuteCost") private String minExecuteCost; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationClass") private String operationClass; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationType") private String operationType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueryKeywords") private String queryKeywords; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceIP") private String sourceIP; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") @com.aliyun.core.annotation.Validation(required = true) private String startTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("User") private String user; private DescribeSQLLogCountRequest(Builder builder) { super(builder); this.DBInstanceId = builder.DBInstanceId; this.database = builder.database; this.endTime = builder.endTime; this.executeCost = builder.executeCost; this.executeState = builder.executeState; this.maxExecuteCost = builder.maxExecuteCost; this.minExecuteCost = builder.minExecuteCost; this.operationClass = builder.operationClass; this.operationType = builder.operationType; this.queryKeywords = builder.queryKeywords; this.sourceIP = builder.sourceIP; this.startTime = builder.startTime; this.user = builder.user; } public static Builder builder() { return new Builder(); } public static DescribeSQLLogCountRequest 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 executeCost */ public String getExecuteCost() { return this.executeCost; } /** * @return executeState */ public String getExecuteState() { return this.executeState; } /** * @return maxExecuteCost */ public String getMaxExecuteCost() { return this.maxExecuteCost; } /** * @return minExecuteCost */ public String getMinExecuteCost() { return this.minExecuteCost; } /** * @return operationClass */ public String getOperationClass() { return this.operationClass; } /** * @return operationType */ public String getOperationType() { return this.operationType; } /** * @return queryKeywords */ public String getQueryKeywords() { return this.queryKeywords; } /** * @return sourceIP */ public String getSourceIP() { return this.sourceIP; } /** * @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 executeCost; private String executeState; private String maxExecuteCost; private String minExecuteCost; private String operationClass; private String operationType; private String queryKeywords; private String sourceIP; private String startTime; private String user; private Builder() { super(); } private Builder(DescribeSQLLogCountRequest request) { super(request); this.DBInstanceId = request.DBInstanceId; this.database = request.database; this.endTime = request.endTime; this.executeCost = request.executeCost; this.executeState = request.executeState; this.maxExecuteCost = request.maxExecuteCost; this.minExecuteCost = request.minExecuteCost; this.operationClass = request.operationClass; this.operationType = request.operationType; this.queryKeywords = request.queryKeywords; this.sourceIP = request.sourceIP; 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. The maximum time range that can be specified is seven days. */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * The execution duration of the SQL statement. Unit: seconds. */ public Builder executeCost(String executeCost) { this.putQueryParameter("ExecuteCost", executeCost); this.executeCost = executeCost; return this; } /** * The execution status of the query. Valid values: *

* * * 1: successful. * * 0: failed. * * 0,1 or 1,0: all. */ public Builder executeState(String executeState) { this.putQueryParameter("ExecuteState", executeState); this.executeState = executeState; return this; } /** * The maximum amount of time consumed by a slow query. Unit: seconds. Minimum value: 0. */ public Builder maxExecuteCost(String maxExecuteCost) { this.putQueryParameter("MaxExecuteCost", maxExecuteCost); this.maxExecuteCost = maxExecuteCost; return this; } /** * The minimum amount of time consumed by a slow query. Unit: seconds. Minimum value: 0. */ public Builder minExecuteCost(String minExecuteCost) { this.putQueryParameter("MinExecuteCost", minExecuteCost); this.minExecuteCost = minExecuteCost; return this; } /** * The type of the query language. Valid values: *

* * * **DQL** * * **DML** * * **DDL** * * **DCL** * * **TCL** */ public Builder operationClass(String operationClass) { this.putQueryParameter("OperationClass", operationClass); this.operationClass = operationClass; return this; } /** * The type of the SQL statement. *

* * > * * * If you specify **OperationClass**, the value of **OperationType** must be of the corresponding query language. For example, if you set **OperationClass** to **DQL**, the value of **OperationType** must be a **DQL** statement such as **SELECT**. * * * If you leave **OperationClass** empty, the value of **OperationType** can be an SQL statement of any query language. * * * If you leave **OperationClass** and **OperationType** empty, all types of SQL statements are returned. */ public Builder operationType(String operationType) { this.putQueryParameter("OperationType", operationType); this.operationType = operationType; return this; } /** * The keywords that are used to query audit logs. */ public Builder queryKeywords(String queryKeywords) { this.putQueryParameter("QueryKeywords", queryKeywords); this.queryKeywords = queryKeywords; return this; } /** * The source IP address. */ public Builder sourceIP(String sourceIP) { this.putQueryParameter("SourceIP", sourceIP); this.sourceIP = sourceIP; 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 name of the database account that is used to connect to the database. */ public Builder user(String user) { this.putQueryParameter("User", user); this.user = user; return this; } @Override public DescribeSQLLogCountRequest build() { return new DescribeSQLLogCountRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy