com.tencentcloudapi.vpc.v20170312.models.GatewayFlowMonitorDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-vpc Show documentation
Show all versions of tencentcloud-sdk-java-vpc Show documentation
Tencent Cloud Open API SDK for Java
/*
* 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 GatewayFlowMonitorDetail extends AbstractModel{
/**
* 来源`IP`。
*/
@SerializedName("PrivateIpAddress")
@Expose
private String PrivateIpAddress;
/**
* 入包量。
*/
@SerializedName("InPkg")
@Expose
private Long InPkg;
/**
* 出包量。
*/
@SerializedName("OutPkg")
@Expose
private Long OutPkg;
/**
* 入流量,单位:`Byte`。
*/
@SerializedName("InTraffic")
@Expose
private Long InTraffic;
/**
* 出流量,单位:`Byte`。
*/
@SerializedName("OutTraffic")
@Expose
private Long OutTraffic;
/**
* Get 来源`IP`。
* @return PrivateIpAddress 来源`IP`。
*/
public String getPrivateIpAddress() {
return this.PrivateIpAddress;
}
/**
* Set 来源`IP`。
* @param PrivateIpAddress 来源`IP`。
*/
public void setPrivateIpAddress(String PrivateIpAddress) {
this.PrivateIpAddress = PrivateIpAddress;
}
/**
* Get 入包量。
* @return InPkg 入包量。
*/
public Long getInPkg() {
return this.InPkg;
}
/**
* Set 入包量。
* @param InPkg 入包量。
*/
public void setInPkg(Long InPkg) {
this.InPkg = InPkg;
}
/**
* Get 出包量。
* @return OutPkg 出包量。
*/
public Long getOutPkg() {
return this.OutPkg;
}
/**
* Set 出包量。
* @param OutPkg 出包量。
*/
public void setOutPkg(Long OutPkg) {
this.OutPkg = OutPkg;
}
/**
* Get 入流量,单位:`Byte`。
* @return InTraffic 入流量,单位:`Byte`。
*/
public Long getInTraffic() {
return this.InTraffic;
}
/**
* Set 入流量,单位:`Byte`。
* @param InTraffic 入流量,单位:`Byte`。
*/
public void setInTraffic(Long InTraffic) {
this.InTraffic = InTraffic;
}
/**
* Get 出流量,单位:`Byte`。
* @return OutTraffic 出流量,单位:`Byte`。
*/
public Long getOutTraffic() {
return this.OutTraffic;
}
/**
* Set 出流量,单位:`Byte`。
* @param OutTraffic 出流量,单位:`Byte`。
*/
public void setOutTraffic(Long OutTraffic) {
this.OutTraffic = OutTraffic;
}
public GatewayFlowMonitorDetail() {
}
/**
* 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 GatewayFlowMonitorDetail(GatewayFlowMonitorDetail source) {
if (source.PrivateIpAddress != null) {
this.PrivateIpAddress = new String(source.PrivateIpAddress);
}
if (source.InPkg != null) {
this.InPkg = new Long(source.InPkg);
}
if (source.OutPkg != null) {
this.OutPkg = new Long(source.OutPkg);
}
if (source.InTraffic != null) {
this.InTraffic = new Long(source.InTraffic);
}
if (source.OutTraffic != null) {
this.OutTraffic = new Long(source.OutTraffic);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "PrivateIpAddress", this.PrivateIpAddress);
this.setParamSimple(map, prefix + "InPkg", this.InPkg);
this.setParamSimple(map, prefix + "OutPkg", this.OutPkg);
this.setParamSimple(map, prefix + "InTraffic", this.InTraffic);
this.setParamSimple(map, prefix + "OutTraffic", this.OutTraffic);
}
}