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

com.tencentcloudapi.tem.v20210701.models.LogConfig Maven / Gradle / Ivy

There is a newer version: 3.1.1067
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.tem.v20210701.models;

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

public class LogConfig extends AbstractModel{

    /**
    * 名称
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * 收集类型,container_stdout 为标准输出;container_file 为文件;
    */
    @SerializedName("InputType")
    @Expose
    private String InputType;

    /**
    * 日志集 ID
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("LogsetId")
    @Expose
    private String LogsetId;

    /**
    * 日志主题 ID
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("TopicId")
    @Expose
    private String TopicId;

    /**
    * 日志提取模式,minimalist_log 为单行全文;multiline_log 为多行全文;  fullregex_log 为单行正则; multiline_fullregex_log 为多行正则; json_log 为 json;
    */
    @SerializedName("LogType")
    @Expose
    private String LogType;

    /**
    * 首行正则表达式,当 LogType 为多行全文、多行正则时生效
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("BeginningRegex")
    @Expose
    private String BeginningRegex;

    /**
    * 收集文件目录,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("LogPath")
    @Expose
    private String LogPath;

    /**
    * 收集文件名模式,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("FilePattern")
    @Expose
    private String FilePattern;

    /**
    * 创建时间
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("CreateDate")
    @Expose
    private String CreateDate;

    /**
    * 更新时间
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("ModifyDate")
    @Expose
    private String ModifyDate;

    /**
    * 应用 ID
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("ApplicationId")
    @Expose
    private String ApplicationId;

    /**
    * 应用名
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("ApplicationName")
    @Expose
    private String ApplicationName;

    /**
    * 导出规则
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("ExtractRule")
    @Expose
    private LogConfigExtractRule ExtractRule;

    /**
     * Get 名称 
     * @return Name 名称
     */
    public String getName() {
        return this.Name;
    }

    /**
     * Set 名称
     * @param Name 名称
     */
    public void setName(String Name) {
        this.Name = Name;
    }

    /**
     * Get 收集类型,container_stdout 为标准输出;container_file 为文件; 
     * @return InputType 收集类型,container_stdout 为标准输出;container_file 为文件;
     */
    public String getInputType() {
        return this.InputType;
    }

    /**
     * Set 收集类型,container_stdout 为标准输出;container_file 为文件;
     * @param InputType 收集类型,container_stdout 为标准输出;container_file 为文件;
     */
    public void setInputType(String InputType) {
        this.InputType = InputType;
    }

    /**
     * Get 日志集 ID
注意:此字段可能返回 null,表示取不到有效值。 
     * @return LogsetId 日志集 ID
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getLogsetId() {
        return this.LogsetId;
    }

    /**
     * Set 日志集 ID
注意:此字段可能返回 null,表示取不到有效值。
     * @param LogsetId 日志集 ID
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setLogsetId(String LogsetId) {
        this.LogsetId = LogsetId;
    }

    /**
     * Get 日志主题 ID
注意:此字段可能返回 null,表示取不到有效值。 
     * @return TopicId 日志主题 ID
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getTopicId() {
        return this.TopicId;
    }

    /**
     * Set 日志主题 ID
注意:此字段可能返回 null,表示取不到有效值。
     * @param TopicId 日志主题 ID
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setTopicId(String TopicId) {
        this.TopicId = TopicId;
    }

    /**
     * Get 日志提取模式,minimalist_log 为单行全文;multiline_log 为多行全文;  fullregex_log 为单行正则; multiline_fullregex_log 为多行正则; json_log 为 json; 
     * @return LogType 日志提取模式,minimalist_log 为单行全文;multiline_log 为多行全文;  fullregex_log 为单行正则; multiline_fullregex_log 为多行正则; json_log 为 json;
     */
    public String getLogType() {
        return this.LogType;
    }

    /**
     * Set 日志提取模式,minimalist_log 为单行全文;multiline_log 为多行全文;  fullregex_log 为单行正则; multiline_fullregex_log 为多行正则; json_log 为 json;
     * @param LogType 日志提取模式,minimalist_log 为单行全文;multiline_log 为多行全文;  fullregex_log 为单行正则; multiline_fullregex_log 为多行正则; json_log 为 json;
     */
    public void setLogType(String LogType) {
        this.LogType = LogType;
    }

    /**
     * Get 首行正则表达式,当 LogType 为多行全文、多行正则时生效
注意:此字段可能返回 null,表示取不到有效值。 
     * @return BeginningRegex 首行正则表达式,当 LogType 为多行全文、多行正则时生效
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getBeginningRegex() {
        return this.BeginningRegex;
    }

    /**
     * Set 首行正则表达式,当 LogType 为多行全文、多行正则时生效
注意:此字段可能返回 null,表示取不到有效值。
     * @param BeginningRegex 首行正则表达式,当 LogType 为多行全文、多行正则时生效
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setBeginningRegex(String BeginningRegex) {
        this.BeginningRegex = BeginningRegex;
    }

    /**
     * Get 收集文件目录,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。 
     * @return LogPath 收集文件目录,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getLogPath() {
        return this.LogPath;
    }

    /**
     * Set 收集文件目录,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。
     * @param LogPath 收集文件目录,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setLogPath(String LogPath) {
        this.LogPath = LogPath;
    }

    /**
     * Get 收集文件名模式,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。 
     * @return FilePattern 收集文件名模式,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getFilePattern() {
        return this.FilePattern;
    }

    /**
     * Set 收集文件名模式,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。
     * @param FilePattern 收集文件名模式,当 InputType=container_file 时生效
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setFilePattern(String FilePattern) {
        this.FilePattern = FilePattern;
    }

    /**
     * Get 创建时间
注意:此字段可能返回 null,表示取不到有效值。 
     * @return CreateDate 创建时间
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getCreateDate() {
        return this.CreateDate;
    }

    /**
     * Set 创建时间
注意:此字段可能返回 null,表示取不到有效值。
     * @param CreateDate 创建时间
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setCreateDate(String CreateDate) {
        this.CreateDate = CreateDate;
    }

    /**
     * Get 更新时间
注意:此字段可能返回 null,表示取不到有效值。 
     * @return ModifyDate 更新时间
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getModifyDate() {
        return this.ModifyDate;
    }

    /**
     * Set 更新时间
注意:此字段可能返回 null,表示取不到有效值。
     * @param ModifyDate 更新时间
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setModifyDate(String ModifyDate) {
        this.ModifyDate = ModifyDate;
    }

    /**
     * Get 应用 ID
注意:此字段可能返回 null,表示取不到有效值。 
     * @return ApplicationId 应用 ID
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getApplicationId() {
        return this.ApplicationId;
    }

    /**
     * Set 应用 ID
注意:此字段可能返回 null,表示取不到有效值。
     * @param ApplicationId 应用 ID
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setApplicationId(String ApplicationId) {
        this.ApplicationId = ApplicationId;
    }

    /**
     * Get 应用名
注意:此字段可能返回 null,表示取不到有效值。 
     * @return ApplicationName 应用名
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getApplicationName() {
        return this.ApplicationName;
    }

    /**
     * Set 应用名
注意:此字段可能返回 null,表示取不到有效值。
     * @param ApplicationName 应用名
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setApplicationName(String ApplicationName) {
        this.ApplicationName = ApplicationName;
    }

    /**
     * Get 导出规则
注意:此字段可能返回 null,表示取不到有效值。 
     * @return ExtractRule 导出规则
注意:此字段可能返回 null,表示取不到有效值。
     */
    public LogConfigExtractRule getExtractRule() {
        return this.ExtractRule;
    }

    /**
     * Set 导出规则
注意:此字段可能返回 null,表示取不到有效值。
     * @param ExtractRule 导出规则
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setExtractRule(LogConfigExtractRule ExtractRule) {
        this.ExtractRule = ExtractRule;
    }

    public LogConfig() {
    }

    /**
     * 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 LogConfig(LogConfig source) {
        if (source.Name != null) {
            this.Name = new String(source.Name);
        }
        if (source.InputType != null) {
            this.InputType = new String(source.InputType);
        }
        if (source.LogsetId != null) {
            this.LogsetId = new String(source.LogsetId);
        }
        if (source.TopicId != null) {
            this.TopicId = new String(source.TopicId);
        }
        if (source.LogType != null) {
            this.LogType = new String(source.LogType);
        }
        if (source.BeginningRegex != null) {
            this.BeginningRegex = new String(source.BeginningRegex);
        }
        if (source.LogPath != null) {
            this.LogPath = new String(source.LogPath);
        }
        if (source.FilePattern != null) {
            this.FilePattern = new String(source.FilePattern);
        }
        if (source.CreateDate != null) {
            this.CreateDate = new String(source.CreateDate);
        }
        if (source.ModifyDate != null) {
            this.ModifyDate = new String(source.ModifyDate);
        }
        if (source.ApplicationId != null) {
            this.ApplicationId = new String(source.ApplicationId);
        }
        if (source.ApplicationName != null) {
            this.ApplicationName = new String(source.ApplicationName);
        }
        if (source.ExtractRule != null) {
            this.ExtractRule = new LogConfigExtractRule(source.ExtractRule);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Name", this.Name);
        this.setParamSimple(map, prefix + "InputType", this.InputType);
        this.setParamSimple(map, prefix + "LogsetId", this.LogsetId);
        this.setParamSimple(map, prefix + "TopicId", this.TopicId);
        this.setParamSimple(map, prefix + "LogType", this.LogType);
        this.setParamSimple(map, prefix + "BeginningRegex", this.BeginningRegex);
        this.setParamSimple(map, prefix + "LogPath", this.LogPath);
        this.setParamSimple(map, prefix + "FilePattern", this.FilePattern);
        this.setParamSimple(map, prefix + "CreateDate", this.CreateDate);
        this.setParamSimple(map, prefix + "ModifyDate", this.ModifyDate);
        this.setParamSimple(map, prefix + "ApplicationId", this.ApplicationId);
        this.setParamSimple(map, prefix + "ApplicationName", this.ApplicationName);
        this.setParamObj(map, prefix + "ExtractRule.", this.ExtractRule);

    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy