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

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

DescribeSQLLogsV2Request

*/ public class DescribeSQLLogsV2Request 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("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("PageNumber") private String pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") private String pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueryKeywords") private String queryKeywords; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @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") private String startTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("User") private String user; private DescribeSQLLogsV2Request(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.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.queryKeywords = builder.queryKeywords; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.sourceIP = builder.sourceIP; this.startTime = builder.startTime; this.user = builder.user; } public static Builder builder() { return new Builder(); } public static DescribeSQLLogsV2Request 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 pageNumber */ public String getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public String getPageSize() { return this.pageSize; } /** * @return queryKeywords */ public String getQueryKeywords() { return this.queryKeywords; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @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 pageNumber; private String pageSize; private String queryKeywords; private String regionId; private String resourceGroupId; private String sourceIP; private String startTime; private String user; private Builder() { super(); } private Builder(DescribeSQLLogsV2Request 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.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.queryKeywords = request.queryKeywords; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.sourceIP = request.sourceIP; this.startTime = request.startTime; this.user = request.user; } /** * The ID of instance. *

* * > You can call the [DescribeDBInstances](~~86911~~) operation to query details of all AnalyticDB for PostgreSQL instances in a specific 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-ddTHH:mmZ* format. The time must be in UTC. *

* * > The end time must be later than the start time. The interval cannot be more than 24 hours. */ 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 SQL statement. Valid values: *

* * * **1**: successful. * * **0**: failed. */ public Builder executeState(String executeState) { this.putQueryParameter("ExecuteState", executeState); this.executeState = executeState; return this; } /** * The maximum amount of time consumed by a slow query. Minimum value: 0. Unit: seconds. */ public Builder maxExecuteCost(String maxExecuteCost) { this.putQueryParameter("MaxExecuteCost", maxExecuteCost); this.maxExecuteCost = maxExecuteCost; return this; } /** * The minimum amount of time consumed by a slow query. Minimum value: 0. Unit: seconds. */ 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 the **OperationClass** parameter is specified, the **OperationType** value must belong to the corresponding query language. For example, if the **OperationClass** value is **DQL**, the **OperationType** value must be a **DQL** SQL statement such as **SELECT**. * >* If the **OperationClass** parameter is not specified, the **OperationType** value can be an SQL statement of all query languages. * >* If neither of the **OperationClass** and **OperationType** parameters is specified, all types of SQL statements are returned. */ public Builder operationType(String operationType) { this.putQueryParameter("OperationType", operationType); this.operationType = operationType; return this; } /** * The number of entries to return on each page. */ public Builder pageNumber(String pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * The number of the page to return. The maximum value is 200. */ public Builder pageSize(String pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * The keywords of the SQL statement. */ public Builder queryKeywords(String queryKeywords) { this.putQueryParameter("QueryKeywords", queryKeywords); this.queryKeywords = queryKeywords; return this; } /** * The region ID of the instance. *

* * > You can call the [DescribeRegions](~~86912~~) operation to query the most recent region list. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The ID of the resource group to which the instance belongs. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; 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. Specify the time in the ISO 8601 standard in the *yyyy-MM-ddTHH:mmZ* 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. */ public Builder user(String user) { this.putQueryParameter("User", user); this.user = user; return this; } @Override public DescribeSQLLogsV2Request build() { return new DescribeSQLLogsV2Request(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy