
cn.ucloud.unet.models.CreateBandwidthPackageRequest 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 CreateBandwidthPackageRequest extends Request {
/** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */
@NotEmpty
@UCloudParam("Region")
private String region;
/** 带宽大小(单位Mbps), 取值范围[2,800] (最大值受地域限制) */
@NotEmpty
@UCloudParam("Bandwidth")
private Integer bandwidth;
/** 所绑定弹性IP的资源ID */
@NotEmpty
@UCloudParam("EIPId")
private String eipId;
/** 带宽包有效时长, 取值范围为大于0的整数, 即该带宽包在EnableTime到 EnableTime+TimeRange时间段内生效 */
@NotEmpty
@UCloudParam("TimeRange")
private Integer timeRange;
/** 生效时间, 格式为 Unix timestamp, 默认为立即开通 */
@UCloudParam("EnableTime")
private Integer enableTime;
/** 代金券ID */
@UCloudParam("CouponId")
private String couponId;
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public Integer getBandwidth() {
return bandwidth;
}
public void setBandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
}
public String getEIPId() {
return eipId;
}
public void setEIPId(String eipId) {
this.eipId = eipId;
}
public Integer getTimeRange() {
return timeRange;
}
public void setTimeRange(Integer timeRange) {
this.timeRange = timeRange;
}
public Integer getEnableTime() {
return enableTime;
}
public void setEnableTime(Integer enableTime) {
this.enableTime = enableTime;
}
public String getCouponId() {
return couponId;
}
public void setCouponId(String couponId) {
this.couponId = couponId;
}
}