/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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.amazonaws.services.codedeploy.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the Elastic Load Balancing load balancer or target group used in a deployment. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LoadBalancerInfo implements Serializable, Cloneable, StructuredPojo { /** ** An array that contains information about the load balancer to use for load balancing in a deployment. In Elastic * Load Balancing, load balancers are used with Classic Load Balancers. *
** Adding more than one load balancer to the array is not supported. *
** An array that contains information about the target group to use for load balancing in a deployment. In Elastic * Load Balancing, target groups are used with Application Load Balancers. *
** Adding more than one target group to the array is not supported. *
*
* The target group pair information. This is an array of TargeGroupPairInfo
objects with a maximum
* size of one.
*
* An array that contains information about the load balancer to use for load balancing in a deployment. In Elastic * Load Balancing, load balancers are used with Classic Load Balancers. *
** Adding more than one load balancer to the array is not supported. *
** Adding more than one load balancer to the array is not supported. *
*/ public java.util.List* An array that contains information about the load balancer to use for load balancing in a deployment. In Elastic * Load Balancing, load balancers are used with Classic Load Balancers. *
** Adding more than one load balancer to the array is not supported. *
** Adding more than one load balancer to the array is not supported. *
*/ public void setElbInfoList(java.util.Collection* An array that contains information about the load balancer to use for load balancing in a deployment. In Elastic * Load Balancing, load balancers are used with Classic Load Balancers. *
** Adding more than one load balancer to the array is not supported. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setElbInfoList(java.util.Collection)} or {@link #withElbInfoList(java.util.Collection)} if you want to * override the existing values. *
* * @param elbInfoList * An array that contains information about the load balancer to use for load balancing in a deployment. In * Elastic Load Balancing, load balancers are used with Classic Load Balancers.* Adding more than one load balancer to the array is not supported. *
* @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerInfo withElbInfoList(ELBInfo... elbInfoList) { if (this.elbInfoList == null) { setElbInfoList(new com.amazonaws.internal.SdkInternalList* An array that contains information about the load balancer to use for load balancing in a deployment. In Elastic * Load Balancing, load balancers are used with Classic Load Balancers. *
** Adding more than one load balancer to the array is not supported. *
** Adding more than one load balancer to the array is not supported. *
* @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerInfo withElbInfoList(java.util.Collection* An array that contains information about the target group to use for load balancing in a deployment. In Elastic * Load Balancing, target groups are used with Application Load Balancers. *
** Adding more than one target group to the array is not supported. *
** Adding more than one target group to the array is not supported. *
*/ public java.util.List* An array that contains information about the target group to use for load balancing in a deployment. In Elastic * Load Balancing, target groups are used with Application Load Balancers. *
** Adding more than one target group to the array is not supported. *
** Adding more than one target group to the array is not supported. *
*/ public void setTargetGroupInfoList(java.util.Collection* An array that contains information about the target group to use for load balancing in a deployment. In Elastic * Load Balancing, target groups are used with Application Load Balancers. *
** Adding more than one target group to the array is not supported. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTargetGroupInfoList(java.util.Collection)} or {@link #withTargetGroupInfoList(java.util.Collection)} * if you want to override the existing values. *
* * @param targetGroupInfoList * An array that contains information about the target group to use for load balancing in a deployment. In * Elastic Load Balancing, target groups are used with Application Load Balancers.* Adding more than one target group to the array is not supported. *
* @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerInfo withTargetGroupInfoList(TargetGroupInfo... targetGroupInfoList) { if (this.targetGroupInfoList == null) { setTargetGroupInfoList(new com.amazonaws.internal.SdkInternalList* An array that contains information about the target group to use for load balancing in a deployment. In Elastic * Load Balancing, target groups are used with Application Load Balancers. *
** Adding more than one target group to the array is not supported. *
** Adding more than one target group to the array is not supported. *
* @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerInfo withTargetGroupInfoList(java.util.Collection
* The target group pair information. This is an array of TargeGroupPairInfo
objects with a maximum
* size of one.
*
TargeGroupPairInfo
objects with a
* maximum size of one.
*/
public java.util.List
* The target group pair information. This is an array of TargeGroupPairInfo
objects with a maximum
* size of one.
*
TargeGroupPairInfo
objects with a
* maximum size of one.
*/
public void setTargetGroupPairInfoList(java.util.Collection
* The target group pair information. This is an array of TargeGroupPairInfo
objects with a maximum
* size of one.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTargetGroupPairInfoList(java.util.Collection)} or * {@link #withTargetGroupPairInfoList(java.util.Collection)} if you want to override the existing values. *
* * @param targetGroupPairInfoList * The target group pair information. This is an array ofTargeGroupPairInfo
objects with a
* maximum size of one.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LoadBalancerInfo withTargetGroupPairInfoList(TargetGroupPairInfo... targetGroupPairInfoList) {
if (this.targetGroupPairInfoList == null) {
setTargetGroupPairInfoList(new com.amazonaws.internal.SdkInternalList
* The target group pair information. This is an array of TargeGroupPairInfo
objects with a maximum
* size of one.
*
TargeGroupPairInfo
objects with a
* maximum size of one.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LoadBalancerInfo withTargetGroupPairInfoList(java.util.Collection