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

com.tencentcloudapi.ivld.v20210903.models.DescribeTasksRequest Maven / Gradle / Ivy

There is a newer version: 3.1.1057
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.ivld.v20210903.models;

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

public class DescribeTasksRequest extends AbstractModel{

    /**
    * 分页序号,从1开始
    */
    @SerializedName("PageNumber")
    @Expose
    private Long PageNumber;

    /**
    * 每个分页所包含的元素数量,最大为50
    */
    @SerializedName("PageSize")
    @Expose
    private Long PageSize;

    /**
    * 任务过滤条件,相关限制参见TaskFilter
    */
    @SerializedName("TaskFilter")
    @Expose
    private TaskFilter TaskFilter;

    /**
    * 返回结果排序信息,By字段只支持CreateTimeStamp
    */
    @SerializedName("SortBy")
    @Expose
    private SortBy SortBy;

    /**
     * Get 分页序号,从1开始 
     * @return PageNumber 分页序号,从1开始
     */
    public Long getPageNumber() {
        return this.PageNumber;
    }

    /**
     * Set 分页序号,从1开始
     * @param PageNumber 分页序号,从1开始
     */
    public void setPageNumber(Long PageNumber) {
        this.PageNumber = PageNumber;
    }

    /**
     * Get 每个分页所包含的元素数量,最大为50 
     * @return PageSize 每个分页所包含的元素数量,最大为50
     */
    public Long getPageSize() {
        return this.PageSize;
    }

    /**
     * Set 每个分页所包含的元素数量,最大为50
     * @param PageSize 每个分页所包含的元素数量,最大为50
     */
    public void setPageSize(Long PageSize) {
        this.PageSize = PageSize;
    }

    /**
     * Get 任务过滤条件,相关限制参见TaskFilter 
     * @return TaskFilter 任务过滤条件,相关限制参见TaskFilter
     */
    public TaskFilter getTaskFilter() {
        return this.TaskFilter;
    }

    /**
     * Set 任务过滤条件,相关限制参见TaskFilter
     * @param TaskFilter 任务过滤条件,相关限制参见TaskFilter
     */
    public void setTaskFilter(TaskFilter TaskFilter) {
        this.TaskFilter = TaskFilter;
    }

    /**
     * Get 返回结果排序信息,By字段只支持CreateTimeStamp 
     * @return SortBy 返回结果排序信息,By字段只支持CreateTimeStamp
     */
    public SortBy getSortBy() {
        return this.SortBy;
    }

    /**
     * Set 返回结果排序信息,By字段只支持CreateTimeStamp
     * @param SortBy 返回结果排序信息,By字段只支持CreateTimeStamp
     */
    public void setSortBy(SortBy SortBy) {
        this.SortBy = SortBy;
    }

    public DescribeTasksRequest() {
    }

    /**
     * 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 DescribeTasksRequest(DescribeTasksRequest source) {
        if (source.PageNumber != null) {
            this.PageNumber = new Long(source.PageNumber);
        }
        if (source.PageSize != null) {
            this.PageSize = new Long(source.PageSize);
        }
        if (source.TaskFilter != null) {
            this.TaskFilter = new TaskFilter(source.TaskFilter);
        }
        if (source.SortBy != null) {
            this.SortBy = new SortBy(source.SortBy);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "PageNumber", this.PageNumber);
        this.setParamSimple(map, prefix + "PageSize", this.PageSize);
        this.setParamObj(map, prefix + "TaskFilter.", this.TaskFilter);
        this.setParamObj(map, prefix + "SortBy.", this.SortBy);

    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy