com.aliyun.sdk.service.gpdb20160503.models.DescribeDiagnosisMonitorPerformanceRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.gpdb20160503.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeDiagnosisMonitorPerformanceRequest} extends {@link RequestModel}
*
* DescribeDiagnosisMonitorPerformanceRequest
*/
public class DescribeDiagnosisMonitorPerformanceRequest extends Request {
@Query
@NameInMap("DBInstanceId")
@Validation(required = true)
private String DBInstanceId;
@Query
@NameInMap("Database")
@Validation(required = true)
private String database;
@Query
@NameInMap("EndTime")
private String endTime;
@Query
@NameInMap("QueryCondition")
private String queryCondition;
@Query
@NameInMap("StartTime")
private String startTime;
@Query
@NameInMap("User")
private String user;
private DescribeDiagnosisMonitorPerformanceRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.database = builder.database;
this.endTime = builder.endTime;
this.queryCondition = builder.queryCondition;
this.startTime = builder.startTime;
this.user = builder.user;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDiagnosisMonitorPerformanceRequest 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 queryCondition
*/
public String getQueryCondition() {
return this.queryCondition;
}
/**
* @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 queryCondition;
private String startTime;
private String user;
private Builder() {
super();
}
private Builder(DescribeDiagnosisMonitorPerformanceRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.database = request.database;
this.endTime = request.endTime;
this.queryCondition = request.queryCondition;
this.startTime = request.startTime;
this.user = request.user;
}
/**
* The ID of the instance.
*
*
* > You can call the [DescribeDBInstances](~~86911~~) operation to query the 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 *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;
}
/**
* The filter condition on queries. Specify the value in the JSON format. Valid values:
*
*
* * `{"Type":"maxCost", "Value":"100"}`: filters the top 100 queries that are the most time-consuming.
*
* * `{"Type":"status","Value":"finished"}`: filters completed queries.
*
* * `{"Type":"status","Value":"running"}`: filters running queries.
*
* * `{"Type":"cost","Min":"30","Max":"50"}`: filters the queries that consume 30 milliseconds or more and less than 50 milliseconds. You can customize a filter condition by setting **Min** and **Max**.
*
* * If only **Min** is specified, the queries that consume a period of time that is greater than or equal to the Min value are filtered.
* * If only **Max** is specified, the queries that consume a period of time that is less than the Max value are filtered.
* * If both **Min** and **Max** are specified, the queries that consume a period of time that is greater than or equal to the **Min** value and less than the **Max** value are filtered.
*/
public Builder queryCondition(String queryCondition) {
this.putQueryParameter("QueryCondition", queryCondition);
this.queryCondition = queryCondition;
return this;
}
/**
* The beginning of the time range to query. Specify the time 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.
*/
public Builder user(String user) {
this.putQueryParameter("User", user);
this.user = user;
return this;
}
@Override
public DescribeDiagnosisMonitorPerformanceRequest build() {
return new DescribeDiagnosisMonitorPerformanceRequest(this);
}
}
}