![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.redis.v20180412.models.DescribeTaskListRequest 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.redis.v20180412.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 DescribeTaskListRequest extends AbstractModel {
/**
* ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list.
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Instance name
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* Number of taskss returned per page. Default value: `20`. Maximum value: `100`.
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1).
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* Project ID Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID.
*/
@SerializedName("ProjectIds")
@Expose
private Long [] ProjectIds;
/**
* Task type. Valid values: - `FLOW_CREATE`: Create an instance. - `FLOW_MODIFYCONNECTIONCONFIG`: Adjust the number of bandwidth connections. - `FLOW_MODIFYINSTANCEPASSWORDFREE`: Modify the process of password-free access. - `FLOW_CLEARNETWORK`: Returning VPC - `FLOW_SETPWD`: Set the access password. - `FLOW_EXPORSHR`: Expand or reduce the capacity. - `FLOW_UpgradeArch`: Upgrade the instance architecture. - `FLOW_MODIFYINSTANCEPARAMS`: Modify the instance parameters. - `FLOW_MODIFYINSTACEREADONLY`: Modify read-only process. - `FLOW_CLOSE`: Disable the instance. - `FLOW_DELETE`: Delete the instance. - `FLOW_OPEN_WAN`: Enable the public network. - `FLOW_FLOW_CLEAN`: Clear the instance. - `FLOW_MODIFYINSTANCEACCOUNT`: Modify the instance account. - `FLOW_ENABLEINSTANCE_REPLICATE`: Enable the replica read-only feature. - `FLOW_DISABLEINSTANCE_REPLICATE`: Disable the replica read-only feature. - `FLOW_SWITCHINSTANCEVIP`: Swap the VIPs of instances. - FLOW_CHANGE_REPLICA_TO_MSTER: Promote the replica node to the mater node. - `FLOW_BACKUPINSTANCE`: Back up an instance.
*/
@SerializedName("TaskTypes")
@Expose
private String [] TaskTypes;
/**
* Start time for executing a task, in the format of “2020-10-12 00:00:00”.
*/
@SerializedName("BeginTime")
@Expose
private String BeginTime;
/**
* End time for executing a task, in the format of “2021-12-30 20:59:35”.
*/
@SerializedName("EndTime")
@Expose
private String EndTime;
/**
* This parameter is only for internal use and can be ignored.
*/
@SerializedName("TaskStatus")
@Expose
private Long [] TaskStatus;
/**
* Task execution status. Valid values: - `0` (initilized) - `1` (executing) - `2` (completed) - `4` (failed)
*/
@SerializedName("Result")
@Expose
private Long [] Result;
/**
* The field `OperatorUin` has been disused and replaced by `OperateUin`.
*/
@SerializedName("OperatorUin")
@Expose
private Long [] OperatorUin;
/**
* Operator account ID or UIN
*/
@SerializedName("OperateUin")
@Expose
private String [] OperateUin;
/**
* Get ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list.
* @return InstanceId ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list.
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list.
* @param InstanceId ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list.
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Instance name
* @return InstanceName Instance name
*/
public String getInstanceName() {
return this.InstanceName;
}
/**
* Set Instance name
* @param InstanceName Instance name
*/
public void setInstanceName(String InstanceName) {
this.InstanceName = InstanceName;
}
/**
* Get Number of taskss returned per page. Default value: `20`. Maximum value: `100`.
* @return Limit Number of taskss returned per page. Default value: `20`. Maximum value: `100`.
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set Number of taskss returned per page. Default value: `20`. Maximum value: `100`.
* @param Limit Number of taskss returned per page. Default value: `20`. Maximum value: `100`.
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1).
* @return Offset Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1).
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1).
* @param Offset Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1).
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get Project ID Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID.
* @return ProjectIds Project ID Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID.
*/
public Long [] getProjectIds() {
return this.ProjectIds;
}
/**
* Set Project ID Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID.
* @param ProjectIds Project ID Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID.
*/
public void setProjectIds(Long [] ProjectIds) {
this.ProjectIds = ProjectIds;
}
/**
* Get Task type. Valid values: - `FLOW_CREATE`: Create an instance. - `FLOW_MODIFYCONNECTIONCONFIG`: Adjust the number of bandwidth connections. - `FLOW_MODIFYINSTANCEPASSWORDFREE`: Modify the process of password-free access. - `FLOW_CLEARNETWORK`: Returning VPC - `FLOW_SETPWD`: Set the access password. - `FLOW_EXPORSHR`: Expand or reduce the capacity. - `FLOW_UpgradeArch`: Upgrade the instance architecture. - `FLOW_MODIFYINSTANCEPARAMS`: Modify the instance parameters. - `FLOW_MODIFYINSTACEREADONLY`: Modify read-only process. - `FLOW_CLOSE`: Disable the instance. - `FLOW_DELETE`: Delete the instance. - `FLOW_OPEN_WAN`: Enable the public network. - `FLOW_FLOW_CLEAN`: Clear the instance. - `FLOW_MODIFYINSTANCEACCOUNT`: Modify the instance account. - `FLOW_ENABLEINSTANCE_REPLICATE`: Enable the replica read-only feature. - `FLOW_DISABLEINSTANCE_REPLICATE`: Disable the replica read-only feature. - `FLOW_SWITCHINSTANCEVIP`: Swap the VIPs of instances. - FLOW_CHANGE_REPLICA_TO_MSTER: Promote the replica node to the mater node. - `FLOW_BACKUPINSTANCE`: Back up an instance.
* @return TaskTypes Task type. Valid values: - `FLOW_CREATE`: Create an instance. - `FLOW_MODIFYCONNECTIONCONFIG`: Adjust the number of bandwidth connections. - `FLOW_MODIFYINSTANCEPASSWORDFREE`: Modify the process of password-free access. - `FLOW_CLEARNETWORK`: Returning VPC - `FLOW_SETPWD`: Set the access password. - `FLOW_EXPORSHR`: Expand or reduce the capacity. - `FLOW_UpgradeArch`: Upgrade the instance architecture. - `FLOW_MODIFYINSTANCEPARAMS`: Modify the instance parameters. - `FLOW_MODIFYINSTACEREADONLY`: Modify read-only process. - `FLOW_CLOSE`: Disable the instance. - `FLOW_DELETE`: Delete the instance. - `FLOW_OPEN_WAN`: Enable the public network. - `FLOW_FLOW_CLEAN`: Clear the instance. - `FLOW_MODIFYINSTANCEACCOUNT`: Modify the instance account. - `FLOW_ENABLEINSTANCE_REPLICATE`: Enable the replica read-only feature. - `FLOW_DISABLEINSTANCE_REPLICATE`: Disable the replica read-only feature. - `FLOW_SWITCHINSTANCEVIP`: Swap the VIPs of instances. - FLOW_CHANGE_REPLICA_TO_MSTER: Promote the replica node to the mater node. - `FLOW_BACKUPINSTANCE`: Back up an instance.
*/
public String [] getTaskTypes() {
return this.TaskTypes;
}
/**
* Set Task type. Valid values: - `FLOW_CREATE`: Create an instance. - `FLOW_MODIFYCONNECTIONCONFIG`: Adjust the number of bandwidth connections. - `FLOW_MODIFYINSTANCEPASSWORDFREE`: Modify the process of password-free access. - `FLOW_CLEARNETWORK`: Returning VPC - `FLOW_SETPWD`: Set the access password. - `FLOW_EXPORSHR`: Expand or reduce the capacity. - `FLOW_UpgradeArch`: Upgrade the instance architecture. - `FLOW_MODIFYINSTANCEPARAMS`: Modify the instance parameters. - `FLOW_MODIFYINSTACEREADONLY`: Modify read-only process. - `FLOW_CLOSE`: Disable the instance. - `FLOW_DELETE`: Delete the instance. - `FLOW_OPEN_WAN`: Enable the public network. - `FLOW_FLOW_CLEAN`: Clear the instance. - `FLOW_MODIFYINSTANCEACCOUNT`: Modify the instance account. - `FLOW_ENABLEINSTANCE_REPLICATE`: Enable the replica read-only feature. - `FLOW_DISABLEINSTANCE_REPLICATE`: Disable the replica read-only feature. - `FLOW_SWITCHINSTANCEVIP`: Swap the VIPs of instances. - FLOW_CHANGE_REPLICA_TO_MSTER: Promote the replica node to the mater node. - `FLOW_BACKUPINSTANCE`: Back up an instance.
* @param TaskTypes Task type. Valid values: - `FLOW_CREATE`: Create an instance. - `FLOW_MODIFYCONNECTIONCONFIG`: Adjust the number of bandwidth connections. - `FLOW_MODIFYINSTANCEPASSWORDFREE`: Modify the process of password-free access. - `FLOW_CLEARNETWORK`: Returning VPC - `FLOW_SETPWD`: Set the access password. - `FLOW_EXPORSHR`: Expand or reduce the capacity. - `FLOW_UpgradeArch`: Upgrade the instance architecture. - `FLOW_MODIFYINSTANCEPARAMS`: Modify the instance parameters. - `FLOW_MODIFYINSTACEREADONLY`: Modify read-only process. - `FLOW_CLOSE`: Disable the instance. - `FLOW_DELETE`: Delete the instance. - `FLOW_OPEN_WAN`: Enable the public network. - `FLOW_FLOW_CLEAN`: Clear the instance. - `FLOW_MODIFYINSTANCEACCOUNT`: Modify the instance account. - `FLOW_ENABLEINSTANCE_REPLICATE`: Enable the replica read-only feature. - `FLOW_DISABLEINSTANCE_REPLICATE`: Disable the replica read-only feature. - `FLOW_SWITCHINSTANCEVIP`: Swap the VIPs of instances. - FLOW_CHANGE_REPLICA_TO_MSTER: Promote the replica node to the mater node. - `FLOW_BACKUPINSTANCE`: Back up an instance.
*/
public void setTaskTypes(String [] TaskTypes) {
this.TaskTypes = TaskTypes;
}
/**
* Get Start time for executing a task, in the format of “2020-10-12 00:00:00”.
* @return BeginTime Start time for executing a task, in the format of “2020-10-12 00:00:00”.
*/
public String getBeginTime() {
return this.BeginTime;
}
/**
* Set Start time for executing a task, in the format of “2020-10-12 00:00:00”.
* @param BeginTime Start time for executing a task, in the format of “2020-10-12 00:00:00”.
*/
public void setBeginTime(String BeginTime) {
this.BeginTime = BeginTime;
}
/**
* Get End time for executing a task, in the format of “2021-12-30 20:59:35”.
* @return EndTime End time for executing a task, in the format of “2021-12-30 20:59:35”.
*/
public String getEndTime() {
return this.EndTime;
}
/**
* Set End time for executing a task, in the format of “2021-12-30 20:59:35”.
* @param EndTime End time for executing a task, in the format of “2021-12-30 20:59:35”.
*/
public void setEndTime(String EndTime) {
this.EndTime = EndTime;
}
/**
* Get This parameter is only for internal use and can be ignored.
* @return TaskStatus This parameter is only for internal use and can be ignored.
*/
public Long [] getTaskStatus() {
return this.TaskStatus;
}
/**
* Set This parameter is only for internal use and can be ignored.
* @param TaskStatus This parameter is only for internal use and can be ignored.
*/
public void setTaskStatus(Long [] TaskStatus) {
this.TaskStatus = TaskStatus;
}
/**
* Get Task execution status. Valid values: - `0` (initilized) - `1` (executing) - `2` (completed) - `4` (failed)
* @return Result Task execution status. Valid values: - `0` (initilized) - `1` (executing) - `2` (completed) - `4` (failed)
*/
public Long [] getResult() {
return this.Result;
}
/**
* Set Task execution status. Valid values: - `0` (initilized) - `1` (executing) - `2` (completed) - `4` (failed)
* @param Result Task execution status. Valid values: - `0` (initilized) - `1` (executing) - `2` (completed) - `4` (failed)
*/
public void setResult(Long [] Result) {
this.Result = Result;
}
/**
* Get The field `OperatorUin` has been disused and replaced by `OperateUin`.
* @return OperatorUin The field `OperatorUin` has been disused and replaced by `OperateUin`.
*/
public Long [] getOperatorUin() {
return this.OperatorUin;
}
/**
* Set The field `OperatorUin` has been disused and replaced by `OperateUin`.
* @param OperatorUin The field `OperatorUin` has been disused and replaced by `OperateUin`.
*/
public void setOperatorUin(Long [] OperatorUin) {
this.OperatorUin = OperatorUin;
}
/**
* Get Operator account ID or UIN
* @return OperateUin Operator account ID or UIN
*/
public String [] getOperateUin() {
return this.OperateUin;
}
/**
* Set Operator account ID or UIN
* @param OperateUin Operator account ID or UIN
*/
public void setOperateUin(String [] OperateUin) {
this.OperateUin = OperateUin;
}
public DescribeTaskListRequest() {
}
/**
* 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 DescribeTaskListRequest(DescribeTaskListRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.InstanceName != null) {
this.InstanceName = new String(source.InstanceName);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.ProjectIds != null) {
this.ProjectIds = new Long[source.ProjectIds.length];
for (int i = 0; i < source.ProjectIds.length; i++) {
this.ProjectIds[i] = new Long(source.ProjectIds[i]);
}
}
if (source.TaskTypes != null) {
this.TaskTypes = new String[source.TaskTypes.length];
for (int i = 0; i < source.TaskTypes.length; i++) {
this.TaskTypes[i] = new String(source.TaskTypes[i]);
}
}
if (source.BeginTime != null) {
this.BeginTime = new String(source.BeginTime);
}
if (source.EndTime != null) {
this.EndTime = new String(source.EndTime);
}
if (source.TaskStatus != null) {
this.TaskStatus = new Long[source.TaskStatus.length];
for (int i = 0; i < source.TaskStatus.length; i++) {
this.TaskStatus[i] = new Long(source.TaskStatus[i]);
}
}
if (source.Result != null) {
this.Result = new Long[source.Result.length];
for (int i = 0; i < source.Result.length; i++) {
this.Result[i] = new Long(source.Result[i]);
}
}
if (source.OperatorUin != null) {
this.OperatorUin = new Long[source.OperatorUin.length];
for (int i = 0; i < source.OperatorUin.length; i++) {
this.OperatorUin[i] = new Long(source.OperatorUin[i]);
}
}
if (source.OperateUin != null) {
this.OperateUin = new String[source.OperateUin.length];
for (int i = 0; i < source.OperateUin.length; i++) {
this.OperateUin[i] = new String(source.OperateUin[i]);
}
}
}
/**
* 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 + "InstanceName", this.InstanceName);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamArraySimple(map, prefix + "ProjectIds.", this.ProjectIds);
this.setParamArraySimple(map, prefix + "TaskTypes.", this.TaskTypes);
this.setParamSimple(map, prefix + "BeginTime", this.BeginTime);
this.setParamSimple(map, prefix + "EndTime", this.EndTime);
this.setParamArraySimple(map, prefix + "TaskStatus.", this.TaskStatus);
this.setParamArraySimple(map, prefix + "Result.", this.Result);
this.setParamArraySimple(map, prefix + "OperatorUin.", this.OperatorUin);
this.setParamArraySimple(map, prefix + "OperateUin.", this.OperateUin);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy