
com.tencentcloudapi.vpc.v20170312.models.ModifyGatewayFlowQosRequest 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyGatewayFlowQosRequest extends AbstractModel{
/**
* 网关实例ID,目前我们支持的网关实例类型有,
专线网关实例ID,形如,`dcg-ltjahce6`;
Nat网关实例ID,形如,`nat-ltjahce6`;
VPN网关实例ID,形如,`vpn-ltjahce6`。
*/
@SerializedName("GatewayId")
@Expose
private String GatewayId;
/**
* 流控带宽值。取值大于0,表示限流到指定的Mbps;取值等于0,表示完全限流;取值为-1,不限流。
*/
@SerializedName("Bandwidth")
@Expose
private Long Bandwidth;
/**
* 限流的云服务器内网IP。
*/
@SerializedName("IpAddresses")
@Expose
private String [] IpAddresses;
/**
* Get 网关实例ID,目前我们支持的网关实例类型有,
专线网关实例ID,形如,`dcg-ltjahce6`;
Nat网关实例ID,形如,`nat-ltjahce6`;
VPN网关实例ID,形如,`vpn-ltjahce6`。
* @return GatewayId 网关实例ID,目前我们支持的网关实例类型有,
专线网关实例ID,形如,`dcg-ltjahce6`;
Nat网关实例ID,形如,`nat-ltjahce6`;
VPN网关实例ID,形如,`vpn-ltjahce6`。
*/
public String getGatewayId() {
return this.GatewayId;
}
/**
* Set 网关实例ID,目前我们支持的网关实例类型有,
专线网关实例ID,形如,`dcg-ltjahce6`;
Nat网关实例ID,形如,`nat-ltjahce6`;
VPN网关实例ID,形如,`vpn-ltjahce6`。
* @param GatewayId 网关实例ID,目前我们支持的网关实例类型有,
专线网关实例ID,形如,`dcg-ltjahce6`;
Nat网关实例ID,形如,`nat-ltjahce6`;
VPN网关实例ID,形如,`vpn-ltjahce6`。
*/
public void setGatewayId(String GatewayId) {
this.GatewayId = GatewayId;
}
/**
* Get 流控带宽值。取值大于0,表示限流到指定的Mbps;取值等于0,表示完全限流;取值为-1,不限流。
* @return Bandwidth 流控带宽值。取值大于0,表示限流到指定的Mbps;取值等于0,表示完全限流;取值为-1,不限流。
*/
public Long getBandwidth() {
return this.Bandwidth;
}
/**
* Set 流控带宽值。取值大于0,表示限流到指定的Mbps;取值等于0,表示完全限流;取值为-1,不限流。
* @param Bandwidth 流控带宽值。取值大于0,表示限流到指定的Mbps;取值等于0,表示完全限流;取值为-1,不限流。
*/
public void setBandwidth(Long Bandwidth) {
this.Bandwidth = Bandwidth;
}
/**
* Get 限流的云服务器内网IP。
* @return IpAddresses 限流的云服务器内网IP。
*/
public String [] getIpAddresses() {
return this.IpAddresses;
}
/**
* Set 限流的云服务器内网IP。
* @param IpAddresses 限流的云服务器内网IP。
*/
public void setIpAddresses(String [] IpAddresses) {
this.IpAddresses = IpAddresses;
}
public ModifyGatewayFlowQosRequest() {
}
/**
* 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 ModifyGatewayFlowQosRequest(ModifyGatewayFlowQosRequest source) {
if (source.GatewayId != null) {
this.GatewayId = new String(source.GatewayId);
}
if (source.Bandwidth != null) {
this.Bandwidth = new Long(source.Bandwidth);
}
if (source.IpAddresses != null) {
this.IpAddresses = new String[source.IpAddresses.length];
for (int i = 0; i < source.IpAddresses.length; i++) {
this.IpAddresses[i] = new String(source.IpAddresses[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "GatewayId", this.GatewayId);
this.setParamSimple(map, prefix + "Bandwidth", this.Bandwidth);
this.setParamArraySimple(map, prefix + "IpAddresses.", this.IpAddresses);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy