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

com.tencentcloudapi.dcdb.v20180411.models.DescribeDBSlowLogsRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1076
Show newest version
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.dcdb.v20180411.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeDBSlowLogsRequest extends AbstractModel {

    /**
    * Instance ID in the format of dcdbt-hw0qj6m1
    */
    @SerializedName("InstanceId")
    @Expose
    private String InstanceId;

    /**
    * Data entry number starting from which to return results
    */
    @SerializedName("Offset")
    @Expose
    private Long Offset;

    /**
    * Number of results to be returned
    */
    @SerializedName("Limit")
    @Expose
    private Long Limit;

    /**
    * Query start time in the format of 2016-07-23 14:55:20
    */
    @SerializedName("StartTime")
    @Expose
    private String StartTime;

    /**
    * Shard ID of the instance in the format of shard-53ima8ln
    */
    @SerializedName("ShardId")
    @Expose
    private String ShardId;

    /**
    * Query end time in the format of 2016-08-22 14:55:20. If this parameter is left empty, the current time will be used as the query end time.
    */
    @SerializedName("EndTime")
    @Expose
    private String EndTime;

    /**
    * Specific name of the database to be queried
    */
    @SerializedName("Db")
    @Expose
    private String Db;

    /**
    * Sorting metric. Valid values: `query_time_sum`, `query_count`. Default value: `query_time_sum`
    */
    @SerializedName("OrderBy")
    @Expose
    private String OrderBy;

    /**
    * Sorting order. Valid values: `desc` (descending), `asc` (ascending). Default value: `desc`
    */
    @SerializedName("OrderByType")
    @Expose
    private String OrderByType;

    /**
    * Query slow queries from either the source or the replica. Valid values: `0` (source), `1` (replica). Default value: `0`
    */
    @SerializedName("Slave")
    @Expose
    private Long Slave;

    /**
     * Get Instance ID in the format of dcdbt-hw0qj6m1 
     * @return InstanceId Instance ID in the format of dcdbt-hw0qj6m1
     */
    public String getInstanceId() {
        return this.InstanceId;
    }

    /**
     * Set Instance ID in the format of dcdbt-hw0qj6m1
     * @param InstanceId Instance ID in the format of dcdbt-hw0qj6m1
     */
    public void setInstanceId(String InstanceId) {
        this.InstanceId = InstanceId;
    }

    /**
     * Get Data entry number starting from which to return results 
     * @return Offset Data entry number starting from which to return results
     */
    public Long getOffset() {
        return this.Offset;
    }

    /**
     * Set Data entry number starting from which to return results
     * @param Offset Data entry number starting from which to return results
     */
    public void setOffset(Long Offset) {
        this.Offset = Offset;
    }

    /**
     * Get Number of results to be returned 
     * @return Limit Number of results to be returned
     */
    public Long getLimit() {
        return this.Limit;
    }

    /**
     * Set Number of results to be returned
     * @param Limit Number of results to be returned
     */
    public void setLimit(Long Limit) {
        this.Limit = Limit;
    }

    /**
     * Get Query start time in the format of 2016-07-23 14:55:20 
     * @return StartTime Query start time in the format of 2016-07-23 14:55:20
     */
    public String getStartTime() {
        return this.StartTime;
    }

    /**
     * Set Query start time in the format of 2016-07-23 14:55:20
     * @param StartTime Query start time in the format of 2016-07-23 14:55:20
     */
    public void setStartTime(String StartTime) {
        this.StartTime = StartTime;
    }

    /**
     * Get Shard ID of the instance in the format of shard-53ima8ln 
     * @return ShardId Shard ID of the instance in the format of shard-53ima8ln
     */
    public String getShardId() {
        return this.ShardId;
    }

    /**
     * Set Shard ID of the instance in the format of shard-53ima8ln
     * @param ShardId Shard ID of the instance in the format of shard-53ima8ln
     */
    public void setShardId(String ShardId) {
        this.ShardId = ShardId;
    }

    /**
     * Get Query end time in the format of 2016-08-22 14:55:20. If this parameter is left empty, the current time will be used as the query end time. 
     * @return EndTime Query end time in the format of 2016-08-22 14:55:20. If this parameter is left empty, the current time will be used as the query end time.
     */
    public String getEndTime() {
        return this.EndTime;
    }

    /**
     * Set Query end time in the format of 2016-08-22 14:55:20. If this parameter is left empty, the current time will be used as the query end time.
     * @param EndTime Query end time in the format of 2016-08-22 14:55:20. If this parameter is left empty, the current time will be used as the query end time.
     */
    public void setEndTime(String EndTime) {
        this.EndTime = EndTime;
    }

    /**
     * Get Specific name of the database to be queried 
     * @return Db Specific name of the database to be queried
     */
    public String getDb() {
        return this.Db;
    }

    /**
     * Set Specific name of the database to be queried
     * @param Db Specific name of the database to be queried
     */
    public void setDb(String Db) {
        this.Db = Db;
    }

    /**
     * Get Sorting metric. Valid values: `query_time_sum`, `query_count`. Default value: `query_time_sum` 
     * @return OrderBy Sorting metric. Valid values: `query_time_sum`, `query_count`. Default value: `query_time_sum`
     */
    public String getOrderBy() {
        return this.OrderBy;
    }

    /**
     * Set Sorting metric. Valid values: `query_time_sum`, `query_count`. Default value: `query_time_sum`
     * @param OrderBy Sorting metric. Valid values: `query_time_sum`, `query_count`. Default value: `query_time_sum`
     */
    public void setOrderBy(String OrderBy) {
        this.OrderBy = OrderBy;
    }

    /**
     * Get Sorting order. Valid values: `desc` (descending), `asc` (ascending). Default value: `desc` 
     * @return OrderByType Sorting order. Valid values: `desc` (descending), `asc` (ascending). Default value: `desc`
     */
    public String getOrderByType() {
        return this.OrderByType;
    }

    /**
     * Set Sorting order. Valid values: `desc` (descending), `asc` (ascending). Default value: `desc`
     * @param OrderByType Sorting order. Valid values: `desc` (descending), `asc` (ascending). Default value: `desc`
     */
    public void setOrderByType(String OrderByType) {
        this.OrderByType = OrderByType;
    }

    /**
     * Get Query slow queries from either the source or the replica. Valid values: `0` (source), `1` (replica). Default value: `0` 
     * @return Slave Query slow queries from either the source or the replica. Valid values: `0` (source), `1` (replica). Default value: `0`
     */
    public Long getSlave() {
        return this.Slave;
    }

    /**
     * Set Query slow queries from either the source or the replica. Valid values: `0` (source), `1` (replica). Default value: `0`
     * @param Slave Query slow queries from either the source or the replica. Valid values: `0` (source), `1` (replica). Default value: `0`
     */
    public void setSlave(Long Slave) {
        this.Slave = Slave;
    }

    public DescribeDBSlowLogsRequest() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DescribeDBSlowLogsRequest(DescribeDBSlowLogsRequest source) {
        if (source.InstanceId != null) {
            this.InstanceId = new String(source.InstanceId);
        }
        if (source.Offset != null) {
            this.Offset = new Long(source.Offset);
        }
        if (source.Limit != null) {
            this.Limit = new Long(source.Limit);
        }
        if (source.StartTime != null) {
            this.StartTime = new String(source.StartTime);
        }
        if (source.ShardId != null) {
            this.ShardId = new String(source.ShardId);
        }
        if (source.EndTime != null) {
            this.EndTime = new String(source.EndTime);
        }
        if (source.Db != null) {
            this.Db = new String(source.Db);
        }
        if (source.OrderBy != null) {
            this.OrderBy = new String(source.OrderBy);
        }
        if (source.OrderByType != null) {
            this.OrderByType = new String(source.OrderByType);
        }
        if (source.Slave != null) {
            this.Slave = new Long(source.Slave);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
        this.setParamSimple(map, prefix + "Offset", this.Offset);
        this.setParamSimple(map, prefix + "Limit", this.Limit);
        this.setParamSimple(map, prefix + "StartTime", this.StartTime);
        this.setParamSimple(map, prefix + "ShardId", this.ShardId);
        this.setParamSimple(map, prefix + "EndTime", this.EndTime);
        this.setParamSimple(map, prefix + "Db", this.Db);
        this.setParamSimple(map, prefix + "OrderBy", this.OrderBy);
        this.setParamSimple(map, prefix + "OrderByType", this.OrderByType);
        this.setParamSimple(map, prefix + "Slave", this.Slave);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy