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

com.tencentcloudapi.tcb.v20180608.models.SearchClsLogRequest Maven / Gradle / Ivy

/*
 * 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.tcb.v20180608.models;

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

public class SearchClsLogRequest extends AbstractModel{

    /**
    * 环境唯一ID
    */
    @SerializedName("EnvId")
    @Expose
    private String EnvId;

    /**
    * 查询起始时间条件
    */
    @SerializedName("StartTime")
    @Expose
    private String StartTime;

    /**
    * 查询结束时间条件
    */
    @SerializedName("EndTime")
    @Expose
    private String EndTime;

    /**
    * 查询语句,详情参考 https://cloud.tencent.com/document/product/614/47044
    */
    @SerializedName("QueryString")
    @Expose
    private String QueryString;

    /**
    * 单次要返回的日志条数,单次返回的最大条数为100
    */
    @SerializedName("Limit")
    @Expose
    private Long Limit;

    /**
    * 加载更多使用,透传上次返回的 context 值,获取后续的日志内容,通过游标最多可获取10000条,请尽可能缩小时间范围
    */
    @SerializedName("Context")
    @Expose
    private String Context;

    /**
    * 按时间排序 asc(升序)或者 desc(降序),默认为 desc
    */
    @SerializedName("Sort")
    @Expose
    private String Sort;

    /**
    * 是否使用Lucene语法,默认为false
    */
    @SerializedName("UseLucene")
    @Expose
    private Boolean UseLucene;

    /**
     * Get 环境唯一ID 
     * @return EnvId 环境唯一ID
     */
    public String getEnvId() {
        return this.EnvId;
    }

    /**
     * Set 环境唯一ID
     * @param EnvId 环境唯一ID
     */
    public void setEnvId(String EnvId) {
        this.EnvId = EnvId;
    }

    /**
     * Get 查询起始时间条件 
     * @return StartTime 查询起始时间条件
     */
    public String getStartTime() {
        return this.StartTime;
    }

    /**
     * Set 查询起始时间条件
     * @param StartTime 查询起始时间条件
     */
    public void setStartTime(String StartTime) {
        this.StartTime = StartTime;
    }

    /**
     * Get 查询结束时间条件 
     * @return EndTime 查询结束时间条件
     */
    public String getEndTime() {
        return this.EndTime;
    }

    /**
     * Set 查询结束时间条件
     * @param EndTime 查询结束时间条件
     */
    public void setEndTime(String EndTime) {
        this.EndTime = EndTime;
    }

    /**
     * Get 查询语句,详情参考 https://cloud.tencent.com/document/product/614/47044 
     * @return QueryString 查询语句,详情参考 https://cloud.tencent.com/document/product/614/47044
     */
    public String getQueryString() {
        return this.QueryString;
    }

    /**
     * Set 查询语句,详情参考 https://cloud.tencent.com/document/product/614/47044
     * @param QueryString 查询语句,详情参考 https://cloud.tencent.com/document/product/614/47044
     */
    public void setQueryString(String QueryString) {
        this.QueryString = QueryString;
    }

    /**
     * Get 单次要返回的日志条数,单次返回的最大条数为100 
     * @return Limit 单次要返回的日志条数,单次返回的最大条数为100
     */
    public Long getLimit() {
        return this.Limit;
    }

    /**
     * Set 单次要返回的日志条数,单次返回的最大条数为100
     * @param Limit 单次要返回的日志条数,单次返回的最大条数为100
     */
    public void setLimit(Long Limit) {
        this.Limit = Limit;
    }

    /**
     * Get 加载更多使用,透传上次返回的 context 值,获取后续的日志内容,通过游标最多可获取10000条,请尽可能缩小时间范围 
     * @return Context 加载更多使用,透传上次返回的 context 值,获取后续的日志内容,通过游标最多可获取10000条,请尽可能缩小时间范围
     */
    public String getContext() {
        return this.Context;
    }

    /**
     * Set 加载更多使用,透传上次返回的 context 值,获取后续的日志内容,通过游标最多可获取10000条,请尽可能缩小时间范围
     * @param Context 加载更多使用,透传上次返回的 context 值,获取后续的日志内容,通过游标最多可获取10000条,请尽可能缩小时间范围
     */
    public void setContext(String Context) {
        this.Context = Context;
    }

    /**
     * Get 按时间排序 asc(升序)或者 desc(降序),默认为 desc 
     * @return Sort 按时间排序 asc(升序)或者 desc(降序),默认为 desc
     */
    public String getSort() {
        return this.Sort;
    }

    /**
     * Set 按时间排序 asc(升序)或者 desc(降序),默认为 desc
     * @param Sort 按时间排序 asc(升序)或者 desc(降序),默认为 desc
     */
    public void setSort(String Sort) {
        this.Sort = Sort;
    }

    /**
     * Get 是否使用Lucene语法,默认为false 
     * @return UseLucene 是否使用Lucene语法,默认为false
     */
    public Boolean getUseLucene() {
        return this.UseLucene;
    }

    /**
     * Set 是否使用Lucene语法,默认为false
     * @param UseLucene 是否使用Lucene语法,默认为false
     */
    public void setUseLucene(Boolean UseLucene) {
        this.UseLucene = UseLucene;
    }

    public SearchClsLogRequest() {
    }

    /**
     * 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 SearchClsLogRequest(SearchClsLogRequest source) {
        if (source.EnvId != null) {
            this.EnvId = new String(source.EnvId);
        }
        if (source.StartTime != null) {
            this.StartTime = new String(source.StartTime);
        }
        if (source.EndTime != null) {
            this.EndTime = new String(source.EndTime);
        }
        if (source.QueryString != null) {
            this.QueryString = new String(source.QueryString);
        }
        if (source.Limit != null) {
            this.Limit = new Long(source.Limit);
        }
        if (source.Context != null) {
            this.Context = new String(source.Context);
        }
        if (source.Sort != null) {
            this.Sort = new String(source.Sort);
        }
        if (source.UseLucene != null) {
            this.UseLucene = new Boolean(source.UseLucene);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "EnvId", this.EnvId);
        this.setParamSimple(map, prefix + "StartTime", this.StartTime);
        this.setParamSimple(map, prefix + "EndTime", this.EndTime);
        this.setParamSimple(map, prefix + "QueryString", this.QueryString);
        this.setParamSimple(map, prefix + "Limit", this.Limit);
        this.setParamSimple(map, prefix + "Context", this.Context);
        this.setParamSimple(map, prefix + "Sort", this.Sort);
        this.setParamSimple(map, prefix + "UseLucene", this.UseLucene);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy