
com.tencentcloudapi.ecm.v20190719.models.ModifyLoadBalancerAttributesRequest Maven / Gradle / Ivy
/*
* 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyLoadBalancerAttributesRequest extends AbstractModel{
/**
* Unique CLB ID
*/
@SerializedName("LoadBalancerId")
@Expose
private String LoadBalancerId;
/**
* CLB instance name
*/
@SerializedName("LoadBalancerName")
@Expose
private String LoadBalancerName;
/**
* Network billing and bandwidth parameters
*/
@SerializedName("InternetChargeInfo")
@Expose
private LoadBalancerInternetAccessible InternetChargeInfo;
/**
* Whether to allow ELB traffic to the target group. `true`: allows ELB traffic to the target group and verifies security groups only on ELB; `false`: denies ELB traffic to the target group and verifies security groups on both ELB and backend instances.
*/
@SerializedName("LoadBalancerPassToTarget")
@Expose
private Boolean LoadBalancerPassToTarget;
/**
* Get Unique CLB ID
* @return LoadBalancerId Unique CLB ID
*/
public String getLoadBalancerId() {
return this.LoadBalancerId;
}
/**
* Set Unique CLB ID
* @param LoadBalancerId Unique CLB ID
*/
public void setLoadBalancerId(String LoadBalancerId) {
this.LoadBalancerId = LoadBalancerId;
}
/**
* Get CLB instance name
* @return LoadBalancerName CLB instance name
*/
public String getLoadBalancerName() {
return this.LoadBalancerName;
}
/**
* Set CLB instance name
* @param LoadBalancerName CLB instance name
*/
public void setLoadBalancerName(String LoadBalancerName) {
this.LoadBalancerName = LoadBalancerName;
}
/**
* Get Network billing and bandwidth parameters
* @return InternetChargeInfo Network billing and bandwidth parameters
*/
public LoadBalancerInternetAccessible getInternetChargeInfo() {
return this.InternetChargeInfo;
}
/**
* Set Network billing and bandwidth parameters
* @param InternetChargeInfo Network billing and bandwidth parameters
*/
public void setInternetChargeInfo(LoadBalancerInternetAccessible InternetChargeInfo) {
this.InternetChargeInfo = InternetChargeInfo;
}
/**
* Get Whether to allow ELB traffic to the target group. `true`: allows ELB traffic to the target group and verifies security groups only on ELB; `false`: denies ELB traffic to the target group and verifies security groups on both ELB and backend instances.
* @return LoadBalancerPassToTarget Whether to allow ELB traffic to the target group. `true`: allows ELB traffic to the target group and verifies security groups only on ELB; `false`: denies ELB traffic to the target group and verifies security groups on both ELB and backend instances.
*/
public Boolean getLoadBalancerPassToTarget() {
return this.LoadBalancerPassToTarget;
}
/**
* Set Whether to allow ELB traffic to the target group. `true`: allows ELB traffic to the target group and verifies security groups only on ELB; `false`: denies ELB traffic to the target group and verifies security groups on both ELB and backend instances.
* @param LoadBalancerPassToTarget Whether to allow ELB traffic to the target group. `true`: allows ELB traffic to the target group and verifies security groups only on ELB; `false`: denies ELB traffic to the target group and verifies security groups on both ELB and backend instances.
*/
public void setLoadBalancerPassToTarget(Boolean LoadBalancerPassToTarget) {
this.LoadBalancerPassToTarget = LoadBalancerPassToTarget;
}
public ModifyLoadBalancerAttributesRequest() {
}
/**
* 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 ModifyLoadBalancerAttributesRequest(ModifyLoadBalancerAttributesRequest source) {
if (source.LoadBalancerId != null) {
this.LoadBalancerId = new String(source.LoadBalancerId);
}
if (source.LoadBalancerName != null) {
this.LoadBalancerName = new String(source.LoadBalancerName);
}
if (source.InternetChargeInfo != null) {
this.InternetChargeInfo = new LoadBalancerInternetAccessible(source.InternetChargeInfo);
}
if (source.LoadBalancerPassToTarget != null) {
this.LoadBalancerPassToTarget = new Boolean(source.LoadBalancerPassToTarget);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "LoadBalancerId", this.LoadBalancerId);
this.setParamSimple(map, prefix + "LoadBalancerName", this.LoadBalancerName);
this.setParamObj(map, prefix + "InternetChargeInfo.", this.InternetChargeInfo);
this.setParamSimple(map, prefix + "LoadBalancerPassToTarget", this.LoadBalancerPassToTarget);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy