![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.ecm.v20190719.models.Backend 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.ecm.v20190719.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 Backend extends AbstractModel {
/**
* Unique real server ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Listening port of the real server
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Port")
@Expose
private Long Port;
/**
* Forwarding weight of the real server. Value range: [0, 100]. Default value: 10.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Weight")
@Expose
private Long Weight;
/**
* Private IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("PrivateIpAddresses")
@Expose
private String [] PrivateIpAddresses;
/**
* Real server binding time
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("RegisteredTime")
@Expose
private String RegisteredTime;
/**
* Unique ENI ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("EniId")
@Expose
private String EniId;
/**
* Public IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("PublicIpAddresses")
@Expose
private String [] PublicIpAddresses;
/**
* Real server instance name
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* Get Unique real server ID
Note: this field may return null, indicating that no valid values can be obtained.
* @return InstanceId Unique real server ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set Unique real server ID
Note: this field may return null, indicating that no valid values can be obtained.
* @param InstanceId Unique real server ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Listening port of the real server
Note: this field may return null, indicating that no valid values can be obtained.
* @return Port Listening port of the real server
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getPort() {
return this.Port;
}
/**
* Set Listening port of the real server
Note: this field may return null, indicating that no valid values can be obtained.
* @param Port Listening port of the real server
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setPort(Long Port) {
this.Port = Port;
}
/**
* Get Forwarding weight of the real server. Value range: [0, 100]. Default value: 10.
Note: this field may return null, indicating that no valid values can be obtained.
* @return Weight Forwarding weight of the real server. Value range: [0, 100]. Default value: 10.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getWeight() {
return this.Weight;
}
/**
* Set Forwarding weight of the real server. Value range: [0, 100]. Default value: 10.
Note: this field may return null, indicating that no valid values can be obtained.
* @param Weight Forwarding weight of the real server. Value range: [0, 100]. Default value: 10.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setWeight(Long Weight) {
this.Weight = Weight;
}
/**
* Get Private IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
* @return PrivateIpAddresses Private IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String [] getPrivateIpAddresses() {
return this.PrivateIpAddresses;
}
/**
* Set Private IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
* @param PrivateIpAddresses Private IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setPrivateIpAddresses(String [] PrivateIpAddresses) {
this.PrivateIpAddresses = PrivateIpAddresses;
}
/**
* Get Real server binding time
Note: this field may return null, indicating that no valid values can be obtained.
* @return RegisteredTime Real server binding time
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getRegisteredTime() {
return this.RegisteredTime;
}
/**
* Set Real server binding time
Note: this field may return null, indicating that no valid values can be obtained.
* @param RegisteredTime Real server binding time
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setRegisteredTime(String RegisteredTime) {
this.RegisteredTime = RegisteredTime;
}
/**
* Get Unique ENI ID
Note: this field may return null, indicating that no valid values can be obtained.
* @return EniId Unique ENI ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getEniId() {
return this.EniId;
}
/**
* Set Unique ENI ID
Note: this field may return null, indicating that no valid values can be obtained.
* @param EniId Unique ENI ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setEniId(String EniId) {
this.EniId = EniId;
}
/**
* Get Public IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
* @return PublicIpAddresses Public IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String [] getPublicIpAddresses() {
return this.PublicIpAddresses;
}
/**
* Set Public IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
* @param PublicIpAddresses Public IP of the real server
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setPublicIpAddresses(String [] PublicIpAddresses) {
this.PublicIpAddresses = PublicIpAddresses;
}
/**
* Get Real server instance name
Note: this field may return null, indicating that no valid values can be obtained.
* @return InstanceName Real server instance name
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getInstanceName() {
return this.InstanceName;
}
/**
* Set Real server instance name
Note: this field may return null, indicating that no valid values can be obtained.
* @param InstanceName Real server instance name
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setInstanceName(String InstanceName) {
this.InstanceName = InstanceName;
}
public Backend() {
}
/**
* 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 Backend(Backend source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Port != null) {
this.Port = new Long(source.Port);
}
if (source.Weight != null) {
this.Weight = new Long(source.Weight);
}
if (source.PrivateIpAddresses != null) {
this.PrivateIpAddresses = new String[source.PrivateIpAddresses.length];
for (int i = 0; i < source.PrivateIpAddresses.length; i++) {
this.PrivateIpAddresses[i] = new String(source.PrivateIpAddresses[i]);
}
}
if (source.RegisteredTime != null) {
this.RegisteredTime = new String(source.RegisteredTime);
}
if (source.EniId != null) {
this.EniId = new String(source.EniId);
}
if (source.PublicIpAddresses != null) {
this.PublicIpAddresses = new String[source.PublicIpAddresses.length];
for (int i = 0; i < source.PublicIpAddresses.length; i++) {
this.PublicIpAddresses[i] = new String(source.PublicIpAddresses[i]);
}
}
if (source.InstanceName != null) {
this.InstanceName = new String(source.InstanceName);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "Port", this.Port);
this.setParamSimple(map, prefix + "Weight", this.Weight);
this.setParamArraySimple(map, prefix + "PrivateIpAddresses.", this.PrivateIpAddresses);
this.setParamSimple(map, prefix + "RegisteredTime", this.RegisteredTime);
this.setParamSimple(map, prefix + "EniId", this.EniId);
this.setParamArraySimple(map, prefix + "PublicIpAddresses.", this.PublicIpAddresses);
this.setParamSimple(map, prefix + "InstanceName", this.InstanceName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy