All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.teo.v20220901.models.ModifyLoadBalancerRequest 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.teo.v20220901.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 ModifyLoadBalancerRequest extends AbstractModel {

    /**
    * Zone ID.
    */
    @SerializedName("ZoneId")
    @Expose
    private String ZoneId;

    /**
    * CLB instance ID.
    */
    @SerializedName("InstanceId")
    @Expose
    private String InstanceId;

    /**
    * LoadBalancer name, which can contain 1 to 200 characters, including a-z, A-Z, 0-9, underscores (_), and hyphens (-). The original configuration applies if this field is not specified.
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * List of origin server groups and their corresponding disaster recovery scheduling priorities. For details, refer to Sample Scenario in [Quickly Create Load Balancers](https://intl.cloud.tencent.com/document/product/1552/104223?from_cn_redirect=1). The original configuration applies if this field is not specified.
    */
    @SerializedName("OriginGroups")
    @Expose
    private OriginGroupInLoadBalancer [] OriginGroups;

    /**
    * Health check policy. For details, refer to [Health Check Policies](https://intl.cloud.tencent.com/document/product/1552/104228?from_cn_redirect=1). The original configuration applies if this field is not specified.
    */
    @SerializedName("HealthChecker")
    @Expose
    private HealthChecker HealthChecker;

    /**
    * Traffic scheduling policy among origin server groups. Valid values:
  • Priority: Perform failover according to priority.
  • The original configuration applies if this field is not specified. */ @SerializedName("SteeringPolicy") @Expose private String SteeringPolicy; /** * Request retry policy when access to an origin server fails. For details, refer to [Introduction to Request Retry Strategy](https://intl.cloud.tencent.com/document/product/1552/104227?from_cn_redirect=1). Valid values:
  • OtherOriginGroup: After a single request fails, retry with another origin server within the next lower priority origin server group.
  • OtherRecordInOriginGroup: After a single request fails, retry with another origin server within the same origin server group.
  • The original configuration applies if not specified. */ @SerializedName("FailoverPolicy") @Expose private String FailoverPolicy; /** * Get Zone ID. * @return ZoneId Zone ID. */ public String getZoneId() { return this.ZoneId; } /** * Set Zone ID. * @param ZoneId Zone ID. */ public void setZoneId(String ZoneId) { this.ZoneId = ZoneId; } /** * Get CLB instance ID. * @return InstanceId CLB instance ID. */ public String getInstanceId() { return this.InstanceId; } /** * Set CLB instance ID. * @param InstanceId CLB instance ID. */ public void setInstanceId(String InstanceId) { this.InstanceId = InstanceId; } /** * Get LoadBalancer name, which can contain 1 to 200 characters, including a-z, A-Z, 0-9, underscores (_), and hyphens (-). The original configuration applies if this field is not specified. * @return Name LoadBalancer name, which can contain 1 to 200 characters, including a-z, A-Z, 0-9, underscores (_), and hyphens (-). The original configuration applies if this field is not specified. */ public String getName() { return this.Name; } /** * Set LoadBalancer name, which can contain 1 to 200 characters, including a-z, A-Z, 0-9, underscores (_), and hyphens (-). The original configuration applies if this field is not specified. * @param Name LoadBalancer name, which can contain 1 to 200 characters, including a-z, A-Z, 0-9, underscores (_), and hyphens (-). The original configuration applies if this field is not specified. */ public void setName(String Name) { this.Name = Name; } /** * Get List of origin server groups and their corresponding disaster recovery scheduling priorities. For details, refer to Sample Scenario in [Quickly Create Load Balancers](https://intl.cloud.tencent.com/document/product/1552/104223?from_cn_redirect=1). The original configuration applies if this field is not specified. * @return OriginGroups List of origin server groups and their corresponding disaster recovery scheduling priorities. For details, refer to Sample Scenario in [Quickly Create Load Balancers](https://intl.cloud.tencent.com/document/product/1552/104223?from_cn_redirect=1). The original configuration applies if this field is not specified. */ public OriginGroupInLoadBalancer [] getOriginGroups() { return this.OriginGroups; } /** * Set List of origin server groups and their corresponding disaster recovery scheduling priorities. For details, refer to Sample Scenario in [Quickly Create Load Balancers](https://intl.cloud.tencent.com/document/product/1552/104223?from_cn_redirect=1). The original configuration applies if this field is not specified. * @param OriginGroups List of origin server groups and their corresponding disaster recovery scheduling priorities. For details, refer to Sample Scenario in [Quickly Create Load Balancers](https://intl.cloud.tencent.com/document/product/1552/104223?from_cn_redirect=1). The original configuration applies if this field is not specified. */ public void setOriginGroups(OriginGroupInLoadBalancer [] OriginGroups) { this.OriginGroups = OriginGroups; } /** * Get Health check policy. For details, refer to [Health Check Policies](https://intl.cloud.tencent.com/document/product/1552/104228?from_cn_redirect=1). The original configuration applies if this field is not specified. * @return HealthChecker Health check policy. For details, refer to [Health Check Policies](https://intl.cloud.tencent.com/document/product/1552/104228?from_cn_redirect=1). The original configuration applies if this field is not specified. */ public HealthChecker getHealthChecker() { return this.HealthChecker; } /** * Set Health check policy. For details, refer to [Health Check Policies](https://intl.cloud.tencent.com/document/product/1552/104228?from_cn_redirect=1). The original configuration applies if this field is not specified. * @param HealthChecker Health check policy. For details, refer to [Health Check Policies](https://intl.cloud.tencent.com/document/product/1552/104228?from_cn_redirect=1). The original configuration applies if this field is not specified. */ public void setHealthChecker(HealthChecker HealthChecker) { this.HealthChecker = HealthChecker; } /** * Get Traffic scheduling policy among origin server groups. Valid values:
  • Priority: Perform failover according to priority.
  • The original configuration applies if this field is not specified. * @return SteeringPolicy Traffic scheduling policy among origin server groups. Valid values:
  • Priority: Perform failover according to priority.
  • The original configuration applies if this field is not specified. */ public String getSteeringPolicy() { return this.SteeringPolicy; } /** * Set Traffic scheduling policy among origin server groups. Valid values:
  • Priority: Perform failover according to priority.
  • The original configuration applies if this field is not specified. * @param SteeringPolicy Traffic scheduling policy among origin server groups. Valid values:
  • Priority: Perform failover according to priority.
  • The original configuration applies if this field is not specified. */ public void setSteeringPolicy(String SteeringPolicy) { this.SteeringPolicy = SteeringPolicy; } /** * Get Request retry policy when access to an origin server fails. For details, refer to [Introduction to Request Retry Strategy](https://intl.cloud.tencent.com/document/product/1552/104227?from_cn_redirect=1). Valid values:
  • OtherOriginGroup: After a single request fails, retry with another origin server within the next lower priority origin server group.
  • OtherRecordInOriginGroup: After a single request fails, retry with another origin server within the same origin server group.
  • The original configuration applies if not specified. * @return FailoverPolicy Request retry policy when access to an origin server fails. For details, refer to [Introduction to Request Retry Strategy](https://intl.cloud.tencent.com/document/product/1552/104227?from_cn_redirect=1). Valid values:
  • OtherOriginGroup: After a single request fails, retry with another origin server within the next lower priority origin server group.
  • OtherRecordInOriginGroup: After a single request fails, retry with another origin server within the same origin server group.
  • The original configuration applies if not specified. */ public String getFailoverPolicy() { return this.FailoverPolicy; } /** * Set Request retry policy when access to an origin server fails. For details, refer to [Introduction to Request Retry Strategy](https://intl.cloud.tencent.com/document/product/1552/104227?from_cn_redirect=1). Valid values:
  • OtherOriginGroup: After a single request fails, retry with another origin server within the next lower priority origin server group.
  • OtherRecordInOriginGroup: After a single request fails, retry with another origin server within the same origin server group.
  • The original configuration applies if not specified. * @param FailoverPolicy Request retry policy when access to an origin server fails. For details, refer to [Introduction to Request Retry Strategy](https://intl.cloud.tencent.com/document/product/1552/104227?from_cn_redirect=1). Valid values:
  • OtherOriginGroup: After a single request fails, retry with another origin server within the next lower priority origin server group.
  • OtherRecordInOriginGroup: After a single request fails, retry with another origin server within the same origin server group.
  • The original configuration applies if not specified. */ public void setFailoverPolicy(String FailoverPolicy) { this.FailoverPolicy = FailoverPolicy; } public ModifyLoadBalancerRequest() { } /** * 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 ModifyLoadBalancerRequest(ModifyLoadBalancerRequest source) { if (source.ZoneId != null) { this.ZoneId = new String(source.ZoneId); } if (source.InstanceId != null) { this.InstanceId = new String(source.InstanceId); } if (source.Name != null) { this.Name = new String(source.Name); } if (source.OriginGroups != null) { this.OriginGroups = new OriginGroupInLoadBalancer[source.OriginGroups.length]; for (int i = 0; i < source.OriginGroups.length; i++) { this.OriginGroups[i] = new OriginGroupInLoadBalancer(source.OriginGroups[i]); } } if (source.HealthChecker != null) { this.HealthChecker = new HealthChecker(source.HealthChecker); } if (source.SteeringPolicy != null) { this.SteeringPolicy = new String(source.SteeringPolicy); } if (source.FailoverPolicy != null) { this.FailoverPolicy = new String(source.FailoverPolicy); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "ZoneId", this.ZoneId); this.setParamSimple(map, prefix + "InstanceId", this.InstanceId); this.setParamSimple(map, prefix + "Name", this.Name); this.setParamArrayObj(map, prefix + "OriginGroups.", this.OriginGroups); this.setParamObj(map, prefix + "HealthChecker.", this.HealthChecker); this.setParamSimple(map, prefix + "SteeringPolicy", this.SteeringPolicy); this.setParamSimple(map, prefix + "FailoverPolicy", this.FailoverPolicy); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy