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

com.tencentcloudapi.antiddos.v20200309.models.AssociateDDoSEipAddressRequest 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.antiddos.v20200309.models;

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

public class AssociateDDoSEipAddressRequest extends AbstractModel{

    /**
    * 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
    */
    @SerializedName("InstanceId")
    @Expose
    private String InstanceId;

    /**
    * 资源实例ID对应的高防弹性公网IP。
    */
    @SerializedName("Eip")
    @Expose
    private String Eip;

    /**
    * 要绑定的实例 ID。实例 ID 形如:ins-11112222。可通过登录控制台查询,也可通过 DescribeInstances 接口返回值中的InstanceId获取。
    */
    @SerializedName("CvmInstanceID")
    @Expose
    private String CvmInstanceID;

    /**
    * cvm实例所在地域,例如:ap-hongkong。
    */
    @SerializedName("CvmRegion")
    @Expose
    private String CvmRegion;

    /**
     * Get 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。 
     * @return InstanceId 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
     */
    public String getInstanceId() {
        return this.InstanceId;
    }

    /**
     * Set 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
     * @param InstanceId 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
     */
    public void setInstanceId(String InstanceId) {
        this.InstanceId = InstanceId;
    }

    /**
     * Get 资源实例ID对应的高防弹性公网IP。 
     * @return Eip 资源实例ID对应的高防弹性公网IP。
     */
    public String getEip() {
        return this.Eip;
    }

    /**
     * Set 资源实例ID对应的高防弹性公网IP。
     * @param Eip 资源实例ID对应的高防弹性公网IP。
     */
    public void setEip(String Eip) {
        this.Eip = Eip;
    }

    /**
     * Get 要绑定的实例 ID。实例 ID 形如:ins-11112222。可通过登录控制台查询,也可通过 DescribeInstances 接口返回值中的InstanceId获取。 
     * @return CvmInstanceID 要绑定的实例 ID。实例 ID 形如:ins-11112222。可通过登录控制台查询,也可通过 DescribeInstances 接口返回值中的InstanceId获取。
     */
    public String getCvmInstanceID() {
        return this.CvmInstanceID;
    }

    /**
     * Set 要绑定的实例 ID。实例 ID 形如:ins-11112222。可通过登录控制台查询,也可通过 DescribeInstances 接口返回值中的InstanceId获取。
     * @param CvmInstanceID 要绑定的实例 ID。实例 ID 形如:ins-11112222。可通过登录控制台查询,也可通过 DescribeInstances 接口返回值中的InstanceId获取。
     */
    public void setCvmInstanceID(String CvmInstanceID) {
        this.CvmInstanceID = CvmInstanceID;
    }

    /**
     * Get cvm实例所在地域,例如:ap-hongkong。 
     * @return CvmRegion cvm实例所在地域,例如:ap-hongkong。
     */
    public String getCvmRegion() {
        return this.CvmRegion;
    }

    /**
     * Set cvm实例所在地域,例如:ap-hongkong。
     * @param CvmRegion cvm实例所在地域,例如:ap-hongkong。
     */
    public void setCvmRegion(String CvmRegion) {
        this.CvmRegion = CvmRegion;
    }

    public AssociateDDoSEipAddressRequest() {
    }

    /**
     * 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 AssociateDDoSEipAddressRequest(AssociateDDoSEipAddressRequest source) {
        if (source.InstanceId != null) {
            this.InstanceId = new String(source.InstanceId);
        }
        if (source.Eip != null) {
            this.Eip = new String(source.Eip);
        }
        if (source.CvmInstanceID != null) {
            this.CvmInstanceID = new String(source.CvmInstanceID);
        }
        if (source.CvmRegion != null) {
            this.CvmRegion = new String(source.CvmRegion);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
        this.setParamSimple(map, prefix + "Eip", this.Eip);
        this.setParamSimple(map, prefix + "CvmInstanceID", this.CvmInstanceID);
        this.setParamSimple(map, prefix + "CvmRegion", this.CvmRegion);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy