com.tencentcloudapi.dbbrain.v20191016.models.DescribeDBDiagReportTasksRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.dbbrain.v20191016.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeDBDiagReportTasksRequest extends AbstractModel{
/**
* Start time of the first task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
*/
@SerializedName("StartTime")
@Expose
private String StartTime;
/**
* End time of the last task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
*/
@SerializedName("EndTime")
@Expose
private String EndTime;
/**
* Instance ID array, which is used to filter the task list of a specified instance.
*/
@SerializedName("InstanceIds")
@Expose
private String [] InstanceIds;
/**
* Source that triggers the task. Valid values: `DAILY_INSPECTION` (instance inspection), `SCHEDULED` (timed generation), and `MANUAL` (manual trigger).
*/
@SerializedName("Sources")
@Expose
private String [] Sources;
/**
* Health level. Valid values: `HEALTH` (healthy), `SUB_HEALTH` (suboptimal), `RISK` (risky), and `HIGH_RISK` (critical).
*/
@SerializedName("HealthLevels")
@Expose
private String HealthLevels;
/**
* The task status. Valid values: `created` (create), `chosen` (to be executed), `running` (being executed), `failed` (failed), and `finished` (completed).
*/
@SerializedName("TaskStatuses")
@Expose
private String TaskStatuses;
/**
* Offset. Default value: 0.
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* Number of returned results. Default value: 20.
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
*/
@SerializedName("Product")
@Expose
private String Product;
/**
* Get Start time of the first task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
* @return StartTime Start time of the first task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
*/
public String getStartTime() {
return this.StartTime;
}
/**
* Set Start time of the first task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
* @param StartTime Start time of the first task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
*/
public void setStartTime(String StartTime) {
this.StartTime = StartTime;
}
/**
* Get End time of the last task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
* @return EndTime End time of the last task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
*/
public String getEndTime() {
return this.EndTime;
}
/**
* Set End time of the last task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
* @param EndTime End time of the last task in the format of yyyy-MM-dd HH:mm:ss, such as 2019-09-10 12:13:14. It is used for queries by time range.
*/
public void setEndTime(String EndTime) {
this.EndTime = EndTime;
}
/**
* Get Instance ID array, which is used to filter the task list of a specified instance.
* @return InstanceIds Instance ID array, which is used to filter the task list of a specified instance.
*/
public String [] getInstanceIds() {
return this.InstanceIds;
}
/**
* Set Instance ID array, which is used to filter the task list of a specified instance.
* @param InstanceIds Instance ID array, which is used to filter the task list of a specified instance.
*/
public void setInstanceIds(String [] InstanceIds) {
this.InstanceIds = InstanceIds;
}
/**
* Get Source that triggers the task. Valid values: `DAILY_INSPECTION` (instance inspection), `SCHEDULED` (timed generation), and `MANUAL` (manual trigger).
* @return Sources Source that triggers the task. Valid values: `DAILY_INSPECTION` (instance inspection), `SCHEDULED` (timed generation), and `MANUAL` (manual trigger).
*/
public String [] getSources() {
return this.Sources;
}
/**
* Set Source that triggers the task. Valid values: `DAILY_INSPECTION` (instance inspection), `SCHEDULED` (timed generation), and `MANUAL` (manual trigger).
* @param Sources Source that triggers the task. Valid values: `DAILY_INSPECTION` (instance inspection), `SCHEDULED` (timed generation), and `MANUAL` (manual trigger).
*/
public void setSources(String [] Sources) {
this.Sources = Sources;
}
/**
* Get Health level. Valid values: `HEALTH` (healthy), `SUB_HEALTH` (suboptimal), `RISK` (risky), and `HIGH_RISK` (critical).
* @return HealthLevels Health level. Valid values: `HEALTH` (healthy), `SUB_HEALTH` (suboptimal), `RISK` (risky), and `HIGH_RISK` (critical).
*/
public String getHealthLevels() {
return this.HealthLevels;
}
/**
* Set Health level. Valid values: `HEALTH` (healthy), `SUB_HEALTH` (suboptimal), `RISK` (risky), and `HIGH_RISK` (critical).
* @param HealthLevels Health level. Valid values: `HEALTH` (healthy), `SUB_HEALTH` (suboptimal), `RISK` (risky), and `HIGH_RISK` (critical).
*/
public void setHealthLevels(String HealthLevels) {
this.HealthLevels = HealthLevels;
}
/**
* Get The task status. Valid values: `created` (create), `chosen` (to be executed), `running` (being executed), `failed` (failed), and `finished` (completed).
* @return TaskStatuses The task status. Valid values: `created` (create), `chosen` (to be executed), `running` (being executed), `failed` (failed), and `finished` (completed).
*/
public String getTaskStatuses() {
return this.TaskStatuses;
}
/**
* Set The task status. Valid values: `created` (create), `chosen` (to be executed), `running` (being executed), `failed` (failed), and `finished` (completed).
* @param TaskStatuses The task status. Valid values: `created` (create), `chosen` (to be executed), `running` (being executed), `failed` (failed), and `finished` (completed).
*/
public void setTaskStatuses(String TaskStatuses) {
this.TaskStatuses = TaskStatuses;
}
/**
* Get Offset. Default value: 0.
* @return Offset Offset. Default value: 0.
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set Offset. Default value: 0.
* @param Offset Offset. Default value: 0.
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get Number of returned results. Default value: 20.
* @return Limit Number of returned results. Default value: 20.
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set Number of returned results. Default value: 20.
* @param Limit Number of returned results. Default value: 20.
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
* @return Product Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
*/
public String getProduct() {
return this.Product;
}
/**
* Set Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
* @param Product Service type. Valid values: `mysql` (TencentDB for MySQL), `cynosdb` (TDSQL-C for MySQL). Default value: `mysql`.
*/
public void setProduct(String Product) {
this.Product = Product;
}
public DescribeDBDiagReportTasksRequest() {
}
/**
* 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 DescribeDBDiagReportTasksRequest(DescribeDBDiagReportTasksRequest source) {
if (source.StartTime != null) {
this.StartTime = new String(source.StartTime);
}
if (source.EndTime != null) {
this.EndTime = new String(source.EndTime);
}
if (source.InstanceIds != null) {
this.InstanceIds = new String[source.InstanceIds.length];
for (int i = 0; i < source.InstanceIds.length; i++) {
this.InstanceIds[i] = new String(source.InstanceIds[i]);
}
}
if (source.Sources != null) {
this.Sources = new String[source.Sources.length];
for (int i = 0; i < source.Sources.length; i++) {
this.Sources[i] = new String(source.Sources[i]);
}
}
if (source.HealthLevels != null) {
this.HealthLevels = new String(source.HealthLevels);
}
if (source.TaskStatuses != null) {
this.TaskStatuses = new String(source.TaskStatuses);
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.Product != null) {
this.Product = new String(source.Product);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "StartTime", this.StartTime);
this.setParamSimple(map, prefix + "EndTime", this.EndTime);
this.setParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds);
this.setParamArraySimple(map, prefix + "Sources.", this.Sources);
this.setParamSimple(map, prefix + "HealthLevels", this.HealthLevels);
this.setParamSimple(map, prefix + "TaskStatuses", this.TaskStatuses);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamSimple(map, prefix + "Product", this.Product);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy