com.tencentcloudapi.as.v20180419.models.InternetAccessible Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.as.v20180419.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class InternetAccessible extends AbstractModel {
/**
* Network billing method. Value range:
BANDWIDTH_PREPAID: Prepaid by bandwidth
TRAFFIC_POSTPAID_BY_HOUR: Postpaid by traffic on a per hour basis
BANDWIDTH_POSTPAID_BY_HOUR: Postpaid by bandwidth on a per hour basis
BANDWIDTH_PACKAGE: BWP user
Default value: TRAFFIC_POSTPAID_BY_HOUR.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("InternetChargeType")
@Expose
private String InternetChargeType;
/**
* The maximum outbound bandwidth in Mbps of the public network. The default value is 0 Mbps. The upper limit of bandwidth varies by model. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1).
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("InternetMaxBandwidthOut")
@Expose
private Long InternetMaxBandwidthOut;
/**
* Whether to assign a public IP. Value range:
TRUE: Assign a public IP
FALSE: Do not assign a public IP
If the public network bandwidth is greater than 0 Mbps, you are free to choose whether to enable the public IP (which is enabled by default). If the public network bandwidth is 0 Mbps, no public IP will be allowed to be assigned.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("PublicIpAssigned")
@Expose
private Boolean PublicIpAssigned;
/**
* Bandwidth package ID. You can obtain the ID from the `BandwidthPackageId` field in the response of the [DescribeBandwidthPackages](https://intl.cloud.tencent.com/document/api/215/19209?from_cn_redirect=1) API.
Note: this field may return null, indicating that no valid value was found.
*/
@SerializedName("BandwidthPackageId")
@Expose
private String BandwidthPackageId;
/**
* Get Network billing method. Value range:
BANDWIDTH_PREPAID: Prepaid by bandwidth
TRAFFIC_POSTPAID_BY_HOUR: Postpaid by traffic on a per hour basis
BANDWIDTH_POSTPAID_BY_HOUR: Postpaid by bandwidth on a per hour basis
BANDWIDTH_PACKAGE: BWP user
Default value: TRAFFIC_POSTPAID_BY_HOUR.
Note: This field may return null, indicating that no valid values can be obtained.
* @return InternetChargeType Network billing method. Value range:
BANDWIDTH_PREPAID: Prepaid by bandwidth
TRAFFIC_POSTPAID_BY_HOUR: Postpaid by traffic on a per hour basis
BANDWIDTH_POSTPAID_BY_HOUR: Postpaid by bandwidth on a per hour basis
BANDWIDTH_PACKAGE: BWP user
Default value: TRAFFIC_POSTPAID_BY_HOUR.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public String getInternetChargeType() {
return this.InternetChargeType;
}
/**
* Set Network billing method. Value range:
BANDWIDTH_PREPAID: Prepaid by bandwidth
TRAFFIC_POSTPAID_BY_HOUR: Postpaid by traffic on a per hour basis
BANDWIDTH_POSTPAID_BY_HOUR: Postpaid by bandwidth on a per hour basis
BANDWIDTH_PACKAGE: BWP user
Default value: TRAFFIC_POSTPAID_BY_HOUR.
Note: This field may return null, indicating that no valid values can be obtained.
* @param InternetChargeType Network billing method. Value range:
BANDWIDTH_PREPAID: Prepaid by bandwidth
TRAFFIC_POSTPAID_BY_HOUR: Postpaid by traffic on a per hour basis
BANDWIDTH_POSTPAID_BY_HOUR: Postpaid by bandwidth on a per hour basis
BANDWIDTH_PACKAGE: BWP user
Default value: TRAFFIC_POSTPAID_BY_HOUR.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setInternetChargeType(String InternetChargeType) {
this.InternetChargeType = InternetChargeType;
}
/**
* Get The maximum outbound bandwidth in Mbps of the public network. The default value is 0 Mbps. The upper limit of bandwidth varies by model. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1).
Note: This field may return null, indicating that no valid values can be obtained.
* @return InternetMaxBandwidthOut The maximum outbound bandwidth in Mbps of the public network. The default value is 0 Mbps. The upper limit of bandwidth varies by model. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1).
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long getInternetMaxBandwidthOut() {
return this.InternetMaxBandwidthOut;
}
/**
* Set The maximum outbound bandwidth in Mbps of the public network. The default value is 0 Mbps. The upper limit of bandwidth varies by model. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1).
Note: This field may return null, indicating that no valid values can be obtained.
* @param InternetMaxBandwidthOut The maximum outbound bandwidth in Mbps of the public network. The default value is 0 Mbps. The upper limit of bandwidth varies by model. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1).
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setInternetMaxBandwidthOut(Long InternetMaxBandwidthOut) {
this.InternetMaxBandwidthOut = InternetMaxBandwidthOut;
}
/**
* Get Whether to assign a public IP. Value range:
TRUE: Assign a public IP
FALSE: Do not assign a public IP
If the public network bandwidth is greater than 0 Mbps, you are free to choose whether to enable the public IP (which is enabled by default). If the public network bandwidth is 0 Mbps, no public IP will be allowed to be assigned.
Note: This field may return null, indicating that no valid values can be obtained.
* @return PublicIpAssigned Whether to assign a public IP. Value range:
TRUE: Assign a public IP
FALSE: Do not assign a public IP
If the public network bandwidth is greater than 0 Mbps, you are free to choose whether to enable the public IP (which is enabled by default). If the public network bandwidth is 0 Mbps, no public IP will be allowed to be assigned.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Boolean getPublicIpAssigned() {
return this.PublicIpAssigned;
}
/**
* Set Whether to assign a public IP. Value range:
TRUE: Assign a public IP
FALSE: Do not assign a public IP
If the public network bandwidth is greater than 0 Mbps, you are free to choose whether to enable the public IP (which is enabled by default). If the public network bandwidth is 0 Mbps, no public IP will be allowed to be assigned.
Note: This field may return null, indicating that no valid values can be obtained.
* @param PublicIpAssigned Whether to assign a public IP. Value range:
TRUE: Assign a public IP
FALSE: Do not assign a public IP
If the public network bandwidth is greater than 0 Mbps, you are free to choose whether to enable the public IP (which is enabled by default). If the public network bandwidth is 0 Mbps, no public IP will be allowed to be assigned.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setPublicIpAssigned(Boolean PublicIpAssigned) {
this.PublicIpAssigned = PublicIpAssigned;
}
/**
* Get Bandwidth package ID. You can obtain the ID from the `BandwidthPackageId` field in the response of the [DescribeBandwidthPackages](https://intl.cloud.tencent.com/document/api/215/19209?from_cn_redirect=1) API.
Note: this field may return null, indicating that no valid value was found.
* @return BandwidthPackageId Bandwidth package ID. You can obtain the ID from the `BandwidthPackageId` field in the response of the [DescribeBandwidthPackages](https://intl.cloud.tencent.com/document/api/215/19209?from_cn_redirect=1) API.
Note: this field may return null, indicating that no valid value was found.
*/
public String getBandwidthPackageId() {
return this.BandwidthPackageId;
}
/**
* Set Bandwidth package ID. You can obtain the ID from the `BandwidthPackageId` field in the response of the [DescribeBandwidthPackages](https://intl.cloud.tencent.com/document/api/215/19209?from_cn_redirect=1) API.
Note: this field may return null, indicating that no valid value was found.
* @param BandwidthPackageId Bandwidth package ID. You can obtain the ID from the `BandwidthPackageId` field in the response of the [DescribeBandwidthPackages](https://intl.cloud.tencent.com/document/api/215/19209?from_cn_redirect=1) API.
Note: this field may return null, indicating that no valid value was found.
*/
public void setBandwidthPackageId(String BandwidthPackageId) {
this.BandwidthPackageId = BandwidthPackageId;
}
public InternetAccessible() {
}
/**
* 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 InternetAccessible(InternetAccessible source) {
if (source.InternetChargeType != null) {
this.InternetChargeType = new String(source.InternetChargeType);
}
if (source.InternetMaxBandwidthOut != null) {
this.InternetMaxBandwidthOut = new Long(source.InternetMaxBandwidthOut);
}
if (source.PublicIpAssigned != null) {
this.PublicIpAssigned = new Boolean(source.PublicIpAssigned);
}
if (source.BandwidthPackageId != null) {
this.BandwidthPackageId = new String(source.BandwidthPackageId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InternetChargeType", this.InternetChargeType);
this.setParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut);
this.setParamSimple(map, prefix + "PublicIpAssigned", this.PublicIpAssigned);
this.setParamSimple(map, prefix + "BandwidthPackageId", this.BandwidthPackageId);
}
}