Class CfnRule.WeightedTargetGroupProperty.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.vpclattice.CfnRule.WeightedTargetGroupProperty.Jsii$Proxy
All Implemented Interfaces:
CfnRule.WeightedTargetGroupProperty, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnRule.WeightedTargetGroupProperty

@Stability(Stable) @Internal public static final class CfnRule.WeightedTargetGroupProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnRule.WeightedTargetGroupProperty
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnRule.WeightedTargetGroupProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnRule.WeightedTargetGroupProperty.Builder.
  • Method Details

    • getTargetGroupIdentifier

      public final String getTargetGroupIdentifier()
      Description copied from interface: CfnRule.WeightedTargetGroupProperty
      The ID of the target group.
      Specified by:
      getTargetGroupIdentifier in interface CfnRule.WeightedTargetGroupProperty
    • getWeight

      public final Number getWeight()
      Description copied from interface: CfnRule.WeightedTargetGroupProperty
      Only required if you specify multiple target groups for a forward action.

      The "weight" determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there's only one target group specified, then the default value is 100.

      Specified by:
      getWeight in interface CfnRule.WeightedTargetGroupProperty
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object