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

com.tencentcloudapi.tcm.v20210413.models.ModifyAccessLogConfigRequest Maven / Gradle / Ivy

There is a newer version: 3.1.1042
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.tcm.v20210413.models;

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

public class ModifyAccessLogConfigRequest extends AbstractModel{

    /**
    * mesh ID
    */
    @SerializedName("MeshId")
    @Expose
    private String MeshId;

    /**
    * 选中的范围
    */
    @SerializedName("SelectedRange")
    @Expose
    private SelectedRange SelectedRange;

    /**
    * 采用的模板,可选值:istio(默认)、trace、custom
    */
    @SerializedName("Template")
    @Expose
    private String Template;

    /**
    * 是否启用
    */
    @SerializedName("Enable")
    @Expose
    private Boolean Enable;

    /**
    * 腾讯云日志服务相关参数
    */
    @SerializedName("CLS")
    @Expose
    private CLS CLS;

    /**
    * 编码格式,可选值:TEXT、JSON
    */
    @SerializedName("Encoding")
    @Expose
    private String Encoding;

    /**
    * 日志格式
    */
    @SerializedName("Format")
    @Expose
    private String Format;

    /**
    * 是否启用标准输出
    */
    @SerializedName("EnableStdout")
    @Expose
    private Boolean EnableStdout;

    /**
    * 是否启动GRPC第三方服务器
    */
    @SerializedName("EnableServer")
    @Expose
    private Boolean EnableServer;

    /**
    * GRPC第三方服务器地址
    */
    @SerializedName("Address")
    @Expose
    private String Address;

    /**
     * Get mesh ID 
     * @return MeshId mesh ID
     */
    public String getMeshId() {
        return this.MeshId;
    }

    /**
     * Set mesh ID
     * @param MeshId mesh ID
     */
    public void setMeshId(String MeshId) {
        this.MeshId = MeshId;
    }

    /**
     * Get 选中的范围 
     * @return SelectedRange 选中的范围
     */
    public SelectedRange getSelectedRange() {
        return this.SelectedRange;
    }

    /**
     * Set 选中的范围
     * @param SelectedRange 选中的范围
     */
    public void setSelectedRange(SelectedRange SelectedRange) {
        this.SelectedRange = SelectedRange;
    }

    /**
     * Get 采用的模板,可选值:istio(默认)、trace、custom 
     * @return Template 采用的模板,可选值:istio(默认)、trace、custom
     */
    public String getTemplate() {
        return this.Template;
    }

    /**
     * Set 采用的模板,可选值:istio(默认)、trace、custom
     * @param Template 采用的模板,可选值:istio(默认)、trace、custom
     */
    public void setTemplate(String Template) {
        this.Template = Template;
    }

    /**
     * Get 是否启用 
     * @return Enable 是否启用
     */
    public Boolean getEnable() {
        return this.Enable;
    }

    /**
     * Set 是否启用
     * @param Enable 是否启用
     */
    public void setEnable(Boolean Enable) {
        this.Enable = Enable;
    }

    /**
     * Get 腾讯云日志服务相关参数 
     * @return CLS 腾讯云日志服务相关参数
     */
    public CLS getCLS() {
        return this.CLS;
    }

    /**
     * Set 腾讯云日志服务相关参数
     * @param CLS 腾讯云日志服务相关参数
     */
    public void setCLS(CLS CLS) {
        this.CLS = CLS;
    }

    /**
     * Get 编码格式,可选值:TEXT、JSON 
     * @return Encoding 编码格式,可选值:TEXT、JSON
     */
    public String getEncoding() {
        return this.Encoding;
    }

    /**
     * Set 编码格式,可选值:TEXT、JSON
     * @param Encoding 编码格式,可选值:TEXT、JSON
     */
    public void setEncoding(String Encoding) {
        this.Encoding = Encoding;
    }

    /**
     * Get 日志格式 
     * @return Format 日志格式
     */
    public String getFormat() {
        return this.Format;
    }

    /**
     * Set 日志格式
     * @param Format 日志格式
     */
    public void setFormat(String Format) {
        this.Format = Format;
    }

    /**
     * Get 是否启用标准输出 
     * @return EnableStdout 是否启用标准输出
     */
    public Boolean getEnableStdout() {
        return this.EnableStdout;
    }

    /**
     * Set 是否启用标准输出
     * @param EnableStdout 是否启用标准输出
     */
    public void setEnableStdout(Boolean EnableStdout) {
        this.EnableStdout = EnableStdout;
    }

    /**
     * Get 是否启动GRPC第三方服务器 
     * @return EnableServer 是否启动GRPC第三方服务器
     */
    public Boolean getEnableServer() {
        return this.EnableServer;
    }

    /**
     * Set 是否启动GRPC第三方服务器
     * @param EnableServer 是否启动GRPC第三方服务器
     */
    public void setEnableServer(Boolean EnableServer) {
        this.EnableServer = EnableServer;
    }

    /**
     * Get GRPC第三方服务器地址 
     * @return Address GRPC第三方服务器地址
     */
    public String getAddress() {
        return this.Address;
    }

    /**
     * Set GRPC第三方服务器地址
     * @param Address GRPC第三方服务器地址
     */
    public void setAddress(String Address) {
        this.Address = Address;
    }

    public ModifyAccessLogConfigRequest() {
    }

    /**
     * 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 ModifyAccessLogConfigRequest(ModifyAccessLogConfigRequest source) {
        if (source.MeshId != null) {
            this.MeshId = new String(source.MeshId);
        }
        if (source.SelectedRange != null) {
            this.SelectedRange = new SelectedRange(source.SelectedRange);
        }
        if (source.Template != null) {
            this.Template = new String(source.Template);
        }
        if (source.Enable != null) {
            this.Enable = new Boolean(source.Enable);
        }
        if (source.CLS != null) {
            this.CLS = new CLS(source.CLS);
        }
        if (source.Encoding != null) {
            this.Encoding = new String(source.Encoding);
        }
        if (source.Format != null) {
            this.Format = new String(source.Format);
        }
        if (source.EnableStdout != null) {
            this.EnableStdout = new Boolean(source.EnableStdout);
        }
        if (source.EnableServer != null) {
            this.EnableServer = new Boolean(source.EnableServer);
        }
        if (source.Address != null) {
            this.Address = new String(source.Address);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "MeshId", this.MeshId);
        this.setParamObj(map, prefix + "SelectedRange.", this.SelectedRange);
        this.setParamSimple(map, prefix + "Template", this.Template);
        this.setParamSimple(map, prefix + "Enable", this.Enable);
        this.setParamObj(map, prefix + "CLS.", this.CLS);
        this.setParamSimple(map, prefix + "Encoding", this.Encoding);
        this.setParamSimple(map, prefix + "Format", this.Format);
        this.setParamSimple(map, prefix + "EnableStdout", this.EnableStdout);
        this.setParamSimple(map, prefix + "EnableServer", this.EnableServer);
        this.setParamSimple(map, prefix + "Address", this.Address);

    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy