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

com.tencentcloudapi.vpc.v20170312.models.CreateCcnRequest 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.vpc.v20170312.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 CreateCcnRequest extends AbstractModel {

    /**
    * CCN名称,最大长度不能超过60个字节。
    */
    @SerializedName("CcnName")
    @Expose
    private String CcnName;

    /**
    * CCN描述信息,最大长度不能超过100个字节。
    */
    @SerializedName("CcnDescription")
    @Expose
    private String CcnDescription;

    /**
    * CCN服务质量,`PT`:白金,`AU`:金,`AG`:银,默认为`AU`。
    */
    @SerializedName("QosLevel")
    @Expose
    private String QosLevel;

    /**
    * 计费模式,`PREPAID`:表示预付费,即包年包月,`POSTPAID`:表示后付费,即按量计费。默认:`POSTPAID`。
    */
    @SerializedName("InstanceChargeType")
    @Expose
    private String InstanceChargeType;

    /**
    * 限速类型,`OUTER_REGION_LIMIT`表示地域出口限速,`INTER_REGION_LIMIT`为地域间限速,默认为`OUTER_REGION_LIMIT`。预付费模式仅支持地域间限速,后付费模式支持地域间限速和地域出口限速。
    */
    @SerializedName("BandwidthLimitType")
    @Expose
    private String BandwidthLimitType;

    /**
    * 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
    */
    @SerializedName("Tags")
    @Expose
    private Tag [] Tags;

    /**
     * Get CCN名称,最大长度不能超过60个字节。 
     * @return CcnName CCN名称,最大长度不能超过60个字节。
     */
    public String getCcnName() {
        return this.CcnName;
    }

    /**
     * Set CCN名称,最大长度不能超过60个字节。
     * @param CcnName CCN名称,最大长度不能超过60个字节。
     */
    public void setCcnName(String CcnName) {
        this.CcnName = CcnName;
    }

    /**
     * Get CCN描述信息,最大长度不能超过100个字节。 
     * @return CcnDescription CCN描述信息,最大长度不能超过100个字节。
     */
    public String getCcnDescription() {
        return this.CcnDescription;
    }

    /**
     * Set CCN描述信息,最大长度不能超过100个字节。
     * @param CcnDescription CCN描述信息,最大长度不能超过100个字节。
     */
    public void setCcnDescription(String CcnDescription) {
        this.CcnDescription = CcnDescription;
    }

    /**
     * Get CCN服务质量,`PT`:白金,`AU`:金,`AG`:银,默认为`AU`。 
     * @return QosLevel CCN服务质量,`PT`:白金,`AU`:金,`AG`:银,默认为`AU`。
     */
    public String getQosLevel() {
        return this.QosLevel;
    }

    /**
     * Set CCN服务质量,`PT`:白金,`AU`:金,`AG`:银,默认为`AU`。
     * @param QosLevel CCN服务质量,`PT`:白金,`AU`:金,`AG`:银,默认为`AU`。
     */
    public void setQosLevel(String QosLevel) {
        this.QosLevel = QosLevel;
    }

    /**
     * Get 计费模式,`PREPAID`:表示预付费,即包年包月,`POSTPAID`:表示后付费,即按量计费。默认:`POSTPAID`。 
     * @return InstanceChargeType 计费模式,`PREPAID`:表示预付费,即包年包月,`POSTPAID`:表示后付费,即按量计费。默认:`POSTPAID`。
     */
    public String getInstanceChargeType() {
        return this.InstanceChargeType;
    }

    /**
     * Set 计费模式,`PREPAID`:表示预付费,即包年包月,`POSTPAID`:表示后付费,即按量计费。默认:`POSTPAID`。
     * @param InstanceChargeType 计费模式,`PREPAID`:表示预付费,即包年包月,`POSTPAID`:表示后付费,即按量计费。默认:`POSTPAID`。
     */
    public void setInstanceChargeType(String InstanceChargeType) {
        this.InstanceChargeType = InstanceChargeType;
    }

    /**
     * Get 限速类型,`OUTER_REGION_LIMIT`表示地域出口限速,`INTER_REGION_LIMIT`为地域间限速,默认为`OUTER_REGION_LIMIT`。预付费模式仅支持地域间限速,后付费模式支持地域间限速和地域出口限速。 
     * @return BandwidthLimitType 限速类型,`OUTER_REGION_LIMIT`表示地域出口限速,`INTER_REGION_LIMIT`为地域间限速,默认为`OUTER_REGION_LIMIT`。预付费模式仅支持地域间限速,后付费模式支持地域间限速和地域出口限速。
     */
    public String getBandwidthLimitType() {
        return this.BandwidthLimitType;
    }

    /**
     * Set 限速类型,`OUTER_REGION_LIMIT`表示地域出口限速,`INTER_REGION_LIMIT`为地域间限速,默认为`OUTER_REGION_LIMIT`。预付费模式仅支持地域间限速,后付费模式支持地域间限速和地域出口限速。
     * @param BandwidthLimitType 限速类型,`OUTER_REGION_LIMIT`表示地域出口限速,`INTER_REGION_LIMIT`为地域间限速,默认为`OUTER_REGION_LIMIT`。预付费模式仅支持地域间限速,后付费模式支持地域间限速和地域出口限速。
     */
    public void setBandwidthLimitType(String BandwidthLimitType) {
        this.BandwidthLimitType = BandwidthLimitType;
    }

    /**
     * Get 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] 
     * @return Tags 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
     */
    public Tag [] getTags() {
        return this.Tags;
    }

    /**
     * Set 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
     * @param Tags 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
     */
    public void setTags(Tag [] Tags) {
        this.Tags = Tags;
    }

    public CreateCcnRequest() {
    }

    /**
     * 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 CreateCcnRequest(CreateCcnRequest source) {
        if (source.CcnName != null) {
            this.CcnName = new String(source.CcnName);
        }
        if (source.CcnDescription != null) {
            this.CcnDescription = new String(source.CcnDescription);
        }
        if (source.QosLevel != null) {
            this.QosLevel = new String(source.QosLevel);
        }
        if (source.InstanceChargeType != null) {
            this.InstanceChargeType = new String(source.InstanceChargeType);
        }
        if (source.BandwidthLimitType != null) {
            this.BandwidthLimitType = new String(source.BandwidthLimitType);
        }
        if (source.Tags != null) {
            this.Tags = new Tag[source.Tags.length];
            for (int i = 0; i < source.Tags.length; i++) {
                this.Tags[i] = new Tag(source.Tags[i]);
            }
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "CcnName", this.CcnName);
        this.setParamSimple(map, prefix + "CcnDescription", this.CcnDescription);
        this.setParamSimple(map, prefix + "QosLevel", this.QosLevel);
        this.setParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType);
        this.setParamSimple(map, prefix + "BandwidthLimitType", this.BandwidthLimitType);
        this.setParamArrayObj(map, prefix + "Tags.", this.Tags);

    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy