Interface TargetGroupConfig.Builder

  • Method Details

    • healthCheck

      TargetGroupConfig.Builder healthCheck(HealthCheckConfig healthCheck)

      The health check configuration. Not supported if the target group type is LAMBDA or ALB.

      Parameters:
      healthCheck - The health check configuration. Not supported if the target group type is LAMBDA or ALB.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • healthCheck

      default TargetGroupConfig.Builder healthCheck(Consumer<HealthCheckConfig.Builder> healthCheck)

      The health check configuration. Not supported if the target group type is LAMBDA or ALB.

      This is a convenience method that creates an instance of the HealthCheckConfig.Builder avoiding the need to create one manually via HealthCheckConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to healthCheck(HealthCheckConfig).

      Parameters:
      healthCheck - a consumer that will call methods on HealthCheckConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ipAddressType

      TargetGroupConfig.Builder ipAddressType(String ipAddressType)

      The type of IP address used for the target group. Supported only if the target group type is IP. The default is IPV4.

      Parameters:
      ipAddressType - The type of IP address used for the target group. Supported only if the target group type is IP. The default is IPV4.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ipAddressType

      TargetGroupConfig.Builder ipAddressType(IpAddressType ipAddressType)

      The type of IP address used for the target group. Supported only if the target group type is IP. The default is IPV4.

      Parameters:
      ipAddressType - The type of IP address used for the target group. Supported only if the target group type is IP. The default is IPV4.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lambdaEventStructureVersion

      TargetGroupConfig.Builder lambdaEventStructureVersion(String lambdaEventStructureVersion)

      The version of the event structure that your Lambda function receives. Supported only if the target group type is LAMBDA. The default is V1.

      Parameters:
      lambdaEventStructureVersion - The version of the event structure that your Lambda function receives. Supported only if the target group type is LAMBDA. The default is V1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lambdaEventStructureVersion

      TargetGroupConfig.Builder lambdaEventStructureVersion(LambdaEventStructureVersion lambdaEventStructureVersion)

      The version of the event structure that your Lambda function receives. Supported only if the target group type is LAMBDA. The default is V1.

      Parameters:
      lambdaEventStructureVersion - The version of the event structure that your Lambda function receives. Supported only if the target group type is LAMBDA. The default is V1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • port

      The port on which the targets are listening. For HTTP, the default is 80. For HTTPS, the default is 443. Not supported if the target group type is LAMBDA.

      Parameters:
      port - The port on which the targets are listening. For HTTP, the default is 80. For HTTPS, the default is 443. Not supported if the target group type is LAMBDA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocol

      TargetGroupConfig.Builder protocol(String protocol)

      The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not supported if the target group type is LAMBDA.

      Parameters:
      protocol - The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not supported if the target group type is LAMBDA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocol

      The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not supported if the target group type is LAMBDA.

      Parameters:
      protocol - The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not supported if the target group type is LAMBDA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocolVersion

      TargetGroupConfig.Builder protocolVersion(String protocolVersion)

      The protocol version. The default is HTTP1. Not supported if the target group type is LAMBDA.

      Parameters:
      protocolVersion - The protocol version. The default is HTTP1. Not supported if the target group type is LAMBDA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocolVersion

      TargetGroupConfig.Builder protocolVersion(TargetGroupProtocolVersion protocolVersion)

      The protocol version. The default is HTTP1. Not supported if the target group type is LAMBDA.

      Parameters:
      protocolVersion - The protocol version. The default is HTTP1. Not supported if the target group type is LAMBDA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • vpcIdentifier

      TargetGroupConfig.Builder vpcIdentifier(String vpcIdentifier)

      The ID of the VPC. Not supported if the target group type is LAMBDA.

      Parameters:
      vpcIdentifier - The ID of the VPC. Not supported if the target group type is LAMBDA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.