
cn.ucloud.unet.models.GetEIPPriceRequest 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 GetEIPPriceRequest extends Request {
/** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */
@NotEmpty
@UCloudParam("Region")
private String region;
/** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */
@UCloudParam("ProjectId")
private String projectId;
/**
* 弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp
* cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International
* kr-seoul:International us-ws:International ge-fra:International sg:International
* tw-kh:International.其他海外线路均为 International,泉州为移动单线cn-qz:ChinaMobile
*/
@NotEmpty
@UCloudParam("OperatorName")
private String operatorName;
/** 弹性IP的外网带宽, 单位为Mbps, 范围 [0-800] */
@NotEmpty
@UCloudParam("Bandwidth")
private Integer bandwidth;
/** 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费; 默认为获取三种价格 */
@UCloudParam("ChargeType")
private String chargeType;
/** 弹性IP计费方式r. 枚举值为: Traffic, 流量计费; Bandwidth, 带宽计费; "ShareBandwidth",共享带宽模式. 默认为Bandwidth */
@UCloudParam("PayMode")
private String payMode;
/** 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末 */
@UCloudParam("Quantity")
private Integer quantity;
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 getOperatorName() {
return operatorName;
}
public void setOperatorName(String operatorName) {
this.operatorName = operatorName;
}
public Integer getBandwidth() {
return bandwidth;
}
public void setBandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
}
public String getChargeType() {
return chargeType;
}
public void setChargeType(String chargeType) {
this.chargeType = chargeType;
}
public String getPayMode() {
return payMode;
}
public void setPayMode(String payMode) {
this.payMode = payMode;
}
public Integer getQuantity() {
return quantity;
}
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
}