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

cn.ucloud.unet.models.ModifyEIPWeightRequest Maven / Gradle / Ivy

/**
 * Copyright 2021 UCloud Technology Co., Ltd.
 *
 * 

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 cn.ucloud.unet.models; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; public class ModifyEIPWeightRequest extends Request { /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ @NotEmpty @UCloudParam("Region") private String region; /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ @UCloudParam("ProjectId") private String projectId; /** 弹性IP的资源ID */ @NotEmpty @UCloudParam("EIPId") private String eipId; /** * 外网出口权重, 范围[0-100] 取值为0时, 该弹性IP不会被使用. 取值为100时, 同主机下只会使用这个弹性IP,其他弹性IP不会被使用 * 请勿将多个绑定在同一资源的弹性IP设置为相同权重 */ @NotEmpty @UCloudParam("Weight") private Integer weight; public String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public String getProjectId() { return projectId; } public void setProjectId(String projectId) { this.projectId = projectId; } public String getEIPId() { return eipId; } public void setEIPId(String eipId) { this.eipId = eipId; } public Integer getWeight() { return weight; } public void setWeight(Integer weight) { this.weight = weight; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy