com.tencentcloudapi.ecm.v20190719.models.Target 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 Target extends AbstractModel {
/**
* 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;
/**
* CVM instance ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 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;
/**
* You need to pass in this parameter when binding an ENI. It represents the IP address of the ENI. You must bind an ENI to a CVM instance first before you can bind it to a CLB instance. Note: you must pass in either `InstanceId` or `EniIp`.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("EniIp")
@Expose
private String EniIp;
/**
* 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 CVM instance ID
Note: this field may return null, indicating that no valid values can be obtained.
* @return InstanceId CVM instance ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set CVM instance ID
Note: this field may return null, indicating that no valid values can be obtained.
* @param InstanceId CVM instance ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* 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 You need to pass in this parameter when binding an ENI. It represents the IP address of the ENI. You must bind an ENI to a CVM instance first before you can bind it to a CLB instance. Note: you must pass in either `InstanceId` or `EniIp`.
Note: this field may return null, indicating that no valid values can be obtained.
* @return EniIp You need to pass in this parameter when binding an ENI. It represents the IP address of the ENI. You must bind an ENI to a CVM instance first before you can bind it to a CLB instance. Note: you must pass in either `InstanceId` or `EniIp`.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getEniIp() {
return this.EniIp;
}
/**
* Set You need to pass in this parameter when binding an ENI. It represents the IP address of the ENI. You must bind an ENI to a CVM instance first before you can bind it to a CLB instance. Note: you must pass in either `InstanceId` or `EniIp`.
Note: this field may return null, indicating that no valid values can be obtained.
* @param EniIp You need to pass in this parameter when binding an ENI. It represents the IP address of the ENI. You must bind an ENI to a CVM instance first before you can bind it to a CLB instance. Note: you must pass in either `InstanceId` or `EniIp`.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setEniIp(String EniIp) {
this.EniIp = EniIp;
}
public Target() {
}
/**
* 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 Target(Target source) {
if (source.Port != null) {
this.Port = new Long(source.Port);
}
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Weight != null) {
this.Weight = new Long(source.Weight);
}
if (source.EniIp != null) {
this.EniIp = new String(source.EniIp);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Port", this.Port);
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "Weight", this.Weight);
this.setParamSimple(map, prefix + "EniIp", this.EniIp);
}
}