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

com.tencentcloudapi.cfw.v20190904.models.CreateAddressTemplateRequest 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.cfw.v20190904.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 CreateAddressTemplateRequest extends AbstractModel {

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

    /**
    * 模板描述
    */
    @SerializedName("Detail")
    @Expose
    private String Detail;

    /**
    * Type为1,ip模板eg:1.1.1.1,2.2.2.2;
Type为5,域名模板eg:www.qq.com,www.tencent.com
    */
    @SerializedName("IpString")
    @Expose
    private String IpString;

    /**
    * 1 ip模板
5 域名模板
6 协议端口模板
    */
    @SerializedName("Type")
    @Expose
    private Long Type;

    /**
    * 协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填
    */
    @SerializedName("ProtocolType")
    @Expose
    private String ProtocolType;

    /**
    * IP版本,0 IPV4;1 IPV6
    */
    @SerializedName("IpVersion")
    @Expose
    private Long IpVersion;

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

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

    /**
     * Get 模板描述 
     * @return Detail 模板描述
     */
    public String getDetail() {
        return this.Detail;
    }

    /**
     * Set 模板描述
     * @param Detail 模板描述
     */
    public void setDetail(String Detail) {
        this.Detail = Detail;
    }

    /**
     * Get Type为1,ip模板eg:1.1.1.1,2.2.2.2;
Type为5,域名模板eg:www.qq.com,www.tencent.com 
     * @return IpString Type为1,ip模板eg:1.1.1.1,2.2.2.2;
Type为5,域名模板eg:www.qq.com,www.tencent.com
     */
    public String getIpString() {
        return this.IpString;
    }

    /**
     * Set Type为1,ip模板eg:1.1.1.1,2.2.2.2;
Type为5,域名模板eg:www.qq.com,www.tencent.com
     * @param IpString Type为1,ip模板eg:1.1.1.1,2.2.2.2;
Type为5,域名模板eg:www.qq.com,www.tencent.com
     */
    public void setIpString(String IpString) {
        this.IpString = IpString;
    }

    /**
     * Get 1 ip模板
5 域名模板
6 协议端口模板 
     * @return Type 1 ip模板
5 域名模板
6 协议端口模板
     */
    public Long getType() {
        return this.Type;
    }

    /**
     * Set 1 ip模板
5 域名模板
6 协议端口模板
     * @param Type 1 ip模板
5 域名模板
6 协议端口模板
     */
    public void setType(Long Type) {
        this.Type = Type;
    }

    /**
     * Get 协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填 
     * @return ProtocolType 协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填
     */
    public String getProtocolType() {
        return this.ProtocolType;
    }

    /**
     * Set 协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填
     * @param ProtocolType 协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填
     */
    public void setProtocolType(String ProtocolType) {
        this.ProtocolType = ProtocolType;
    }

    /**
     * Get IP版本,0 IPV4;1 IPV6 
     * @return IpVersion IP版本,0 IPV4;1 IPV6
     */
    public Long getIpVersion() {
        return this.IpVersion;
    }

    /**
     * Set IP版本,0 IPV4;1 IPV6
     * @param IpVersion IP版本,0 IPV4;1 IPV6
     */
    public void setIpVersion(Long IpVersion) {
        this.IpVersion = IpVersion;
    }

    public CreateAddressTemplateRequest() {
    }

    /**
     * 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 CreateAddressTemplateRequest(CreateAddressTemplateRequest source) {
        if (source.Name != null) {
            this.Name = new String(source.Name);
        }
        if (source.Detail != null) {
            this.Detail = new String(source.Detail);
        }
        if (source.IpString != null) {
            this.IpString = new String(source.IpString);
        }
        if (source.Type != null) {
            this.Type = new Long(source.Type);
        }
        if (source.ProtocolType != null) {
            this.ProtocolType = new String(source.ProtocolType);
        }
        if (source.IpVersion != null) {
            this.IpVersion = new Long(source.IpVersion);
        }
    }


    /**
     * 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 + "Detail", this.Detail);
        this.setParamSimple(map, prefix + "IpString", this.IpString);
        this.setParamSimple(map, prefix + "Type", this.Type);
        this.setParamSimple(map, prefix + "ProtocolType", this.ProtocolType);
        this.setParamSimple(map, prefix + "IpVersion", this.IpVersion);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy