com.tencentcloudapi.gaap.v20180529.models.CreateProxyRequest 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.gaap.v20180529.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateProxyRequest extends AbstractModel{
/**
* Project ID of connection.
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* Connection name.
*/
@SerializedName("ProxyName")
@Expose
private String ProxyName;
/**
* Access region.
*/
@SerializedName("AccessRegion")
@Expose
private String AccessRegion;
/**
* Connection bandwidth cap. Unit: Mbps.
*/
@SerializedName("Bandwidth")
@Expose
private Long Bandwidth;
/**
* Connection concurrence cap, which indicates the maximum number of simultaneous online connections. Unit: 10,000 connections.
*/
@SerializedName("Concurrent")
@Expose
private Long Concurrent;
/**
* Origin server region. If GroupId exists, the origin server region is the one of connection group, and this field is not required. If GroupId does not exist, this field is reuqired.
*/
@SerializedName("RealServerRegion")
@Expose
private String RealServerRegion;
/**
* A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, please see How to Ensure Idempotence.
*/
@SerializedName("ClientToken")
@Expose
private String ClientToken;
/**
* Connection group ID. This parameter is required when the connection is created in the connection group. Otherwise, this field is ignored.
*/
@SerializedName("GroupId")
@Expose
private String GroupId;
/**
* List of tags to be added for connection.
*/
@SerializedName("TagSet")
@Expose
private TagPair [] TagSet;
/**
* ID of the replicated connection. Only a running connection can be replicated.
The connection is to be replicated if this parameter is set.
*/
@SerializedName("ClonedProxyId")
@Expose
private String ClonedProxyId;
/**
* Billing mode (0: bill-by-bandwidth, 1: bill-by-traffic. Default value: bill-by-bandwidth)
*/
@SerializedName("BillingType")
@Expose
private Long BillingType;
/**
* Get Project ID of connection.
* @return ProjectId Project ID of connection.
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set Project ID of connection.
* @param ProjectId Project ID of connection.
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get Connection name.
* @return ProxyName Connection name.
*/
public String getProxyName() {
return this.ProxyName;
}
/**
* Set Connection name.
* @param ProxyName Connection name.
*/
public void setProxyName(String ProxyName) {
this.ProxyName = ProxyName;
}
/**
* Get Access region.
* @return AccessRegion Access region.
*/
public String getAccessRegion() {
return this.AccessRegion;
}
/**
* Set Access region.
* @param AccessRegion Access region.
*/
public void setAccessRegion(String AccessRegion) {
this.AccessRegion = AccessRegion;
}
/**
* Get Connection bandwidth cap. Unit: Mbps.
* @return Bandwidth Connection bandwidth cap. Unit: Mbps.
*/
public Long getBandwidth() {
return this.Bandwidth;
}
/**
* Set Connection bandwidth cap. Unit: Mbps.
* @param Bandwidth Connection bandwidth cap. Unit: Mbps.
*/
public void setBandwidth(Long Bandwidth) {
this.Bandwidth = Bandwidth;
}
/**
* Get Connection concurrence cap, which indicates the maximum number of simultaneous online connections. Unit: 10,000 connections.
* @return Concurrent Connection concurrence cap, which indicates the maximum number of simultaneous online connections. Unit: 10,000 connections.
*/
public Long getConcurrent() {
return this.Concurrent;
}
/**
* Set Connection concurrence cap, which indicates the maximum number of simultaneous online connections. Unit: 10,000 connections.
* @param Concurrent Connection concurrence cap, which indicates the maximum number of simultaneous online connections. Unit: 10,000 connections.
*/
public void setConcurrent(Long Concurrent) {
this.Concurrent = Concurrent;
}
/**
* Get Origin server region. If GroupId exists, the origin server region is the one of connection group, and this field is not required. If GroupId does not exist, this field is reuqired.
* @return RealServerRegion Origin server region. If GroupId exists, the origin server region is the one of connection group, and this field is not required. If GroupId does not exist, this field is reuqired.
*/
public String getRealServerRegion() {
return this.RealServerRegion;
}
/**
* Set Origin server region. If GroupId exists, the origin server region is the one of connection group, and this field is not required. If GroupId does not exist, this field is reuqired.
* @param RealServerRegion Origin server region. If GroupId exists, the origin server region is the one of connection group, and this field is not required. If GroupId does not exist, this field is reuqired.
*/
public void setRealServerRegion(String RealServerRegion) {
this.RealServerRegion = RealServerRegion;
}
/**
* Get A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, please see How to Ensure Idempotence.
* @return ClientToken A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, please see How to Ensure Idempotence.
*/
public String getClientToken() {
return this.ClientToken;
}
/**
* Set A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, please see How to Ensure Idempotence.
* @param ClientToken A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, please see How to Ensure Idempotence.
*/
public void setClientToken(String ClientToken) {
this.ClientToken = ClientToken;
}
/**
* Get Connection group ID. This parameter is required when the connection is created in the connection group. Otherwise, this field is ignored.
* @return GroupId Connection group ID. This parameter is required when the connection is created in the connection group. Otherwise, this field is ignored.
*/
public String getGroupId() {
return this.GroupId;
}
/**
* Set Connection group ID. This parameter is required when the connection is created in the connection group. Otherwise, this field is ignored.
* @param GroupId Connection group ID. This parameter is required when the connection is created in the connection group. Otherwise, this field is ignored.
*/
public void setGroupId(String GroupId) {
this.GroupId = GroupId;
}
/**
* Get List of tags to be added for connection.
* @return TagSet List of tags to be added for connection.
*/
public TagPair [] getTagSet() {
return this.TagSet;
}
/**
* Set List of tags to be added for connection.
* @param TagSet List of tags to be added for connection.
*/
public void setTagSet(TagPair [] TagSet) {
this.TagSet = TagSet;
}
/**
* Get ID of the replicated connection. Only a running connection can be replicated.
The connection is to be replicated if this parameter is set.
* @return ClonedProxyId ID of the replicated connection. Only a running connection can be replicated.
The connection is to be replicated if this parameter is set.
*/
public String getClonedProxyId() {
return this.ClonedProxyId;
}
/**
* Set ID of the replicated connection. Only a running connection can be replicated.
The connection is to be replicated if this parameter is set.
* @param ClonedProxyId ID of the replicated connection. Only a running connection can be replicated.
The connection is to be replicated if this parameter is set.
*/
public void setClonedProxyId(String ClonedProxyId) {
this.ClonedProxyId = ClonedProxyId;
}
/**
* Get Billing mode (0: bill-by-bandwidth, 1: bill-by-traffic. Default value: bill-by-bandwidth)
* @return BillingType Billing mode (0: bill-by-bandwidth, 1: bill-by-traffic. Default value: bill-by-bandwidth)
*/
public Long getBillingType() {
return this.BillingType;
}
/**
* Set Billing mode (0: bill-by-bandwidth, 1: bill-by-traffic. Default value: bill-by-bandwidth)
* @param BillingType Billing mode (0: bill-by-bandwidth, 1: bill-by-traffic. Default value: bill-by-bandwidth)
*/
public void setBillingType(Long BillingType) {
this.BillingType = BillingType;
}
public CreateProxyRequest() {
}
/**
* 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 CreateProxyRequest(CreateProxyRequest source) {
if (source.ProjectId != null) {
this.ProjectId = new Long(source.ProjectId);
}
if (source.ProxyName != null) {
this.ProxyName = new String(source.ProxyName);
}
if (source.AccessRegion != null) {
this.AccessRegion = new String(source.AccessRegion);
}
if (source.Bandwidth != null) {
this.Bandwidth = new Long(source.Bandwidth);
}
if (source.Concurrent != null) {
this.Concurrent = new Long(source.Concurrent);
}
if (source.RealServerRegion != null) {
this.RealServerRegion = new String(source.RealServerRegion);
}
if (source.ClientToken != null) {
this.ClientToken = new String(source.ClientToken);
}
if (source.GroupId != null) {
this.GroupId = new String(source.GroupId);
}
if (source.TagSet != null) {
this.TagSet = new TagPair[source.TagSet.length];
for (int i = 0; i < source.TagSet.length; i++) {
this.TagSet[i] = new TagPair(source.TagSet[i]);
}
}
if (source.ClonedProxyId != null) {
this.ClonedProxyId = new String(source.ClonedProxyId);
}
if (source.BillingType != null) {
this.BillingType = new Long(source.BillingType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "ProxyName", this.ProxyName);
this.setParamSimple(map, prefix + "AccessRegion", this.AccessRegion);
this.setParamSimple(map, prefix + "Bandwidth", this.Bandwidth);
this.setParamSimple(map, prefix + "Concurrent", this.Concurrent);
this.setParamSimple(map, prefix + "RealServerRegion", this.RealServerRegion);
this.setParamSimple(map, prefix + "ClientToken", this.ClientToken);
this.setParamSimple(map, prefix + "GroupId", this.GroupId);
this.setParamArrayObj(map, prefix + "TagSet.", this.TagSet);
this.setParamSimple(map, prefix + "ClonedProxyId", this.ClonedProxyId);
this.setParamSimple(map, prefix + "BillingType", this.BillingType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy