Class TargetGroupHealth.Builder

java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupHealth.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<TargetGroupHealth>
Enclosing interface:
TargetGroupHealth

@Stability(Stable) public static final class TargetGroupHealth.Builder extends Object implements software.amazon.jsii.Builder<TargetGroupHealth>
A builder for TargetGroupHealth
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • dnsMinimumHealthyTargetCount

      @Stability(Stable) public TargetGroupHealth.Builder dnsMinimumHealthyTargetCount(Number dnsMinimumHealthyTargetCount)
      Parameters:
      dnsMinimumHealthyTargetCount - The minimum number of targets that must be healthy for DNS failover. If below this value, mark the zone as unhealthy in DNS. Use 0 for "off".
      Returns:
      this
    • dnsMinimumHealthyTargetPercentage

      @Stability(Stable) public TargetGroupHealth.Builder dnsMinimumHealthyTargetPercentage(Number dnsMinimumHealthyTargetPercentage)
      Parameters:
      dnsMinimumHealthyTargetPercentage - The minimum percentage of targets that must be healthy for DNS failover. If below this value, mark the zone as unhealthy in DNS. Use 0 for "off".
      Returns:
      this
    • routingMinimumHealthyTargetCount

      @Stability(Stable) public TargetGroupHealth.Builder routingMinimumHealthyTargetCount(Number routingMinimumHealthyTargetCount)
      Parameters:
      routingMinimumHealthyTargetCount - The minimum number of targets that must be healthy for unhealthy state routing. If below this value, send traffic to all targets including unhealthy ones.
      Returns:
      this
    • routingMinimumHealthyTargetPercentage

      @Stability(Stable) public TargetGroupHealth.Builder routingMinimumHealthyTargetPercentage(Number routingMinimumHealthyTargetPercentage)
      Parameters:
      routingMinimumHealthyTargetPercentage - The minimum percentage of targets that must be healthy for unhealthy state routing. If below this value, send traffic to all targets including unhealthy ones. Use 0 for "off".
      Returns:
      this
    • build

      @Stability(Stable) public TargetGroupHealth build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<TargetGroupHealth>
      Returns:
      a new instance of TargetGroupHealth
      Throws:
      NullPointerException - if any required attribute was not provided