![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.as.v20180419.models.ModifyLoadBalancersRequest 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 ModifyLoadBalancersRequest extends AbstractModel {
/**
* Auto scaling group ID
*/
@SerializedName("AutoScalingGroupId")
@Expose
private String AutoScalingGroupId;
/**
* List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time.
*/
@SerializedName("LoadBalancerIds")
@Expose
private String [] LoadBalancerIds;
/**
* List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time.
*/
@SerializedName("ForwardLoadBalancers")
@Expose
private ForwardLoadBalancer [] ForwardLoadBalancers;
/**
* CLB verification policy. Valid values: "ALL" and "DIFF". Default value: "ALL"
ALL. Verification is successful only when all CLBs are valid. Otherwise, verification fails.
DIFF. Only the changes in the CLB parameters are verified. If valid, the verification is successful. Otherwise, verification fails.
*/
@SerializedName("LoadBalancersCheckPolicy")
@Expose
private String LoadBalancersCheckPolicy;
/**
* Get Auto scaling group ID
* @return AutoScalingGroupId Auto scaling group ID
*/
public String getAutoScalingGroupId() {
return this.AutoScalingGroupId;
}
/**
* Set Auto scaling group ID
* @param AutoScalingGroupId Auto scaling group ID
*/
public void setAutoScalingGroupId(String AutoScalingGroupId) {
this.AutoScalingGroupId = AutoScalingGroupId;
}
/**
* Get List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time.
* @return LoadBalancerIds List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time.
*/
public String [] getLoadBalancerIds() {
return this.LoadBalancerIds;
}
/**
* Set List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time.
* @param LoadBalancerIds List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time.
*/
public void setLoadBalancerIds(String [] LoadBalancerIds) {
this.LoadBalancerIds = LoadBalancerIds;
}
/**
* Get List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time.
* @return ForwardLoadBalancers List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time.
*/
public ForwardLoadBalancer [] getForwardLoadBalancers() {
return this.ForwardLoadBalancers;
}
/**
* Set List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time.
* @param ForwardLoadBalancers List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time.
*/
public void setForwardLoadBalancers(ForwardLoadBalancer [] ForwardLoadBalancers) {
this.ForwardLoadBalancers = ForwardLoadBalancers;
}
/**
* Get CLB verification policy. Valid values: "ALL" and "DIFF". Default value: "ALL"
ALL. Verification is successful only when all CLBs are valid. Otherwise, verification fails.
DIFF. Only the changes in the CLB parameters are verified. If valid, the verification is successful. Otherwise, verification fails.
* @return LoadBalancersCheckPolicy CLB verification policy. Valid values: "ALL" and "DIFF". Default value: "ALL"
ALL. Verification is successful only when all CLBs are valid. Otherwise, verification fails.
DIFF. Only the changes in the CLB parameters are verified. If valid, the verification is successful. Otherwise, verification fails.
*/
public String getLoadBalancersCheckPolicy() {
return this.LoadBalancersCheckPolicy;
}
/**
* Set CLB verification policy. Valid values: "ALL" and "DIFF". Default value: "ALL"
ALL. Verification is successful only when all CLBs are valid. Otherwise, verification fails.
DIFF. Only the changes in the CLB parameters are verified. If valid, the verification is successful. Otherwise, verification fails.
* @param LoadBalancersCheckPolicy CLB verification policy. Valid values: "ALL" and "DIFF". Default value: "ALL"
ALL. Verification is successful only when all CLBs are valid. Otherwise, verification fails.
DIFF. Only the changes in the CLB parameters are verified. If valid, the verification is successful. Otherwise, verification fails.
*/
public void setLoadBalancersCheckPolicy(String LoadBalancersCheckPolicy) {
this.LoadBalancersCheckPolicy = LoadBalancersCheckPolicy;
}
public ModifyLoadBalancersRequest() {
}
/**
* 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 ModifyLoadBalancersRequest(ModifyLoadBalancersRequest source) {
if (source.AutoScalingGroupId != null) {
this.AutoScalingGroupId = new String(source.AutoScalingGroupId);
}
if (source.LoadBalancerIds != null) {
this.LoadBalancerIds = new String[source.LoadBalancerIds.length];
for (int i = 0; i < source.LoadBalancerIds.length; i++) {
this.LoadBalancerIds[i] = new String(source.LoadBalancerIds[i]);
}
}
if (source.ForwardLoadBalancers != null) {
this.ForwardLoadBalancers = new ForwardLoadBalancer[source.ForwardLoadBalancers.length];
for (int i = 0; i < source.ForwardLoadBalancers.length; i++) {
this.ForwardLoadBalancers[i] = new ForwardLoadBalancer(source.ForwardLoadBalancers[i]);
}
}
if (source.LoadBalancersCheckPolicy != null) {
this.LoadBalancersCheckPolicy = new String(source.LoadBalancersCheckPolicy);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "AutoScalingGroupId", this.AutoScalingGroupId);
this.setParamArraySimple(map, prefix + "LoadBalancerIds.", this.LoadBalancerIds);
this.setParamArrayObj(map, prefix + "ForwardLoadBalancers.", this.ForwardLoadBalancers);
this.setParamSimple(map, prefix + "LoadBalancersCheckPolicy", this.LoadBalancersCheckPolicy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy