Class LoadBalancerInfo
- java.lang.Object
-
- software.amazon.awssdk.services.codedeploy.model.LoadBalancerInfo
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LoadBalancerInfo.Builder,LoadBalancerInfo>
@Generated("software.amazon.awssdk:codegen") public final class LoadBalancerInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LoadBalancerInfo.Builder,LoadBalancerInfo>
Information about the Elastic Load Balancing load balancer or target group used in a deployment.
You can use load balancers and target groups in combination. For example, if you have two Classic Load Balancers, and five target groups tied to an Application Load Balancer, you can specify the two Classic Load Balancers in
elbInfoList, and the five target groups intargetGroupInfoList.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLoadBalancerInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadBalancerInfo.Builderbuilder()List<ELBInfo>elbInfoList()An array that contains information about the load balancers to use for load balancing in a deployment.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasElbInfoList()For responses, this returns true if the service returned a value for the ElbInfoList property.inthashCode()booleanhasTargetGroupInfoList()For responses, this returns true if the service returned a value for the TargetGroupInfoList property.booleanhasTargetGroupPairInfoList()For responses, this returns true if the service returned a value for the TargetGroupPairInfoList property.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LoadBalancerInfo.Builder>serializableBuilderClass()List<TargetGroupInfo>targetGroupInfoList()An array that contains information about the target groups to use for load balancing in a deployment.List<TargetGroupPairInfo>targetGroupPairInfoList()The target group pair information.LoadBalancerInfo.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
hasElbInfoList
public final boolean hasElbInfoList()
For responses, this returns true if the service returned a value for the ElbInfoList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
elbInfoList
public final List<ELBInfo> elbInfoList()
An array that contains information about the load balancers to use for load balancing in a deployment. If you're using Classic Load Balancers, specify those load balancers in this array.
You can add up to 10 load balancers to the array.
If you're using Application Load Balancers or Network Load Balancers, use the
targetGroupInfoListarray instead of this one.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasElbInfoList()method.- Returns:
- An array that contains information about the load balancers to use for load balancing in a deployment. If
you're using Classic Load Balancers, specify those load balancers in this array.
You can add up to 10 load balancers to the array.
If you're using Application Load Balancers or Network Load Balancers, use the
targetGroupInfoListarray instead of this one.
-
hasTargetGroupInfoList
public final boolean hasTargetGroupInfoList()
For responses, this returns true if the service returned a value for the TargetGroupInfoList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
targetGroupInfoList
public final List<TargetGroupInfo> targetGroupInfoList()
An array that contains information about the target groups to use for load balancing in a deployment. If you're using Application Load Balancers and Network Load Balancers, specify their associated target groups in this array.
You can add up to 10 target groups to the array.
If you're using Classic Load Balancers, use the
elbInfoListarray instead of this one.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTargetGroupInfoList()method.- Returns:
- An array that contains information about the target groups to use for load balancing in a deployment. If
you're using Application Load Balancers and Network Load Balancers, specify their associated target
groups in this array.
You can add up to 10 target groups to the array.
If you're using Classic Load Balancers, use the
elbInfoListarray instead of this one.
-
hasTargetGroupPairInfoList
public final boolean hasTargetGroupPairInfoList()
For responses, this returns true if the service returned a value for the TargetGroupPairInfoList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
targetGroupPairInfoList
public final List<TargetGroupPairInfo> targetGroupPairInfoList()
The target group pair information. This is an array of
TargeGroupPairInfoobjects with a maximum size of one.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTargetGroupPairInfoList()method.- Returns:
- The target group pair information. This is an array of
TargeGroupPairInfoobjects with a maximum size of one.
-
toBuilder
public LoadBalancerInfo.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LoadBalancerInfo.Builder,LoadBalancerInfo>
-
builder
public static LoadBalancerInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends LoadBalancerInfo.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-