/* * 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.elasticloadbalancingv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateTargetGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the target group. *

*

* This name must be unique per region per account, can have a maximum of 32 characters, must contain only * alphanumeric characters or hyphens, and must not begin or end with a hyphen. *

*/ private String name; /** *

* The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols * are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For * Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP * target group. If the target is a Lambda function, this parameter does not apply. *

*/ private String protocol; /** *

* [HTTP/HTTPS protocol] The protocol version. Specify GRPC to send requests to targets using gRPC. * Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which * sends requests to targets using HTTP/1.1. *

*/ private String protocolVersion; /** *

* The port on which the targets receive traffic. This port is used unless you specify a port override when * registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is * GENEVE, the supported port is 6081. *

*/ private Integer port; /** *

* The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not * apply. Otherwise, this parameter is required. *

*/ private String vpcId; /** *

* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the * default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is * not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and * TCP_UDP protocols are not supported for health checks. *

*/ private String healthCheckProtocol; /** *

* The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, TCP, * TLS, UDP, or TCP_UDP, the default is traffic-port, which is the port on which each target receives * traffic from the load balancer. If the protocol is GENEVE, the default is port 80. *

*/ private String healthCheckPort; /** *

* Indicates whether health checks are enabled. If the target type is lambda, health checks are * disabled by default but can be enabled. If the target type is instance, ip, or * alb, health checks are always enabled and cannot be disabled. *

*/ private Boolean healthCheckEnabled; /** *

* [HTTP/HTTPS health checks] The destination for health checks on the targets. *

*

* [HTTP1 or HTTP2 protocol version] The ping path. The default is /. *

*

* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The * default is /Amazon Web Services.ALB/healthcheck. *

*/ private String healthCheckPath; /** *

* The approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. If * the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target * group protocol is GENEVE, the default is 10 seconds. If the target type is lambda, the default is 35 * seconds. *

*/ private Integer healthCheckIntervalSeconds; /** *

* The amount of time, in seconds, during which no response from a target means a failed health check. The range is * 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a * protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the * default is 5 seconds. If the target type is lambda, the default is 30 seconds. *

*/ private Integer healthCheckTimeoutSeconds; /** *

* The number of consecutive health check successes required before considering a target healthy. The range is 2-10. * If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with a * protocol of GENEVE, the default is 5. If the target type is lambda, the default is 5. *

*/ private Integer healthyThresholdCount; /** *

* The number of consecutive health check failures required before considering a target unhealthy. The range is * 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups * with a protocol of GENEVE, the default is 2. If the target type is lambda, the default is 5. *

*/ private Integer unhealthyThresholdCount; /** *

* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target. * For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a * protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is * 200-399. *

*/ private Matcher matcher; /** *

* The type of target that you must specify when registering targets with this target group. You can't specify * targets for a target group using more than one target type. *

* */ private String targetType; /** *

* The tags to assign to the target group. *

*/ private java.util.List tags; /** *

* The type of IP address used for this target group. The possible values are ipv4 and * ipv6. This is an optional parameter. If not specified, the IP address type defaults to * ipv4. *

*/ private String ipAddressType; /** *

* The name of the target group. *

*

* This name must be unique per region per account, can have a maximum of 32 characters, must contain only * alphanumeric characters or hyphens, and must not begin or end with a hyphen. *

* * @param name * The name of the target group.

*

* This name must be unique per region per account, can have a maximum of 32 characters, must contain only * alphanumeric characters or hyphens, and must not begin or end with a hyphen. */ public void setName(String name) { this.name = name; } /** *

* The name of the target group. *

*

* This name must be unique per region per account, can have a maximum of 32 characters, must contain only * alphanumeric characters or hyphens, and must not begin or end with a hyphen. *

* * @return The name of the target group.

*

* This name must be unique per region per account, can have a maximum of 32 characters, must contain only * alphanumeric characters or hyphens, and must not begin or end with a hyphen. */ public String getName() { return this.name; } /** *

* The name of the target group. *

*

* This name must be unique per region per account, can have a maximum of 32 characters, must contain only * alphanumeric characters or hyphens, and must not begin or end with a hyphen. *

* * @param name * The name of the target group.

*

* This name must be unique per region per account, can have a maximum of 32 characters, must contain only * alphanumeric characters or hyphens, and must not begin or end with a hyphen. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withName(String name) { setName(name); return this; } /** *

* The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols * are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For * Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP * target group. If the target is a Lambda function, this parameter does not apply. *

* * @param protocol * The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported * protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or * TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be * associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not apply. * @see ProtocolEnum */ public void setProtocol(String protocol) { this.protocol = protocol; } /** *

* The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols * are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For * Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP * target group. If the target is a Lambda function, this parameter does not apply. *

* * @return The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported * protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or * TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be * associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not * apply. * @see ProtocolEnum */ public String getProtocol() { return this.protocol; } /** *

* The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols * are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For * Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP * target group. If the target is a Lambda function, this parameter does not apply. *

* * @param protocol * The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported * protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or * TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be * associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not apply. * @return Returns a reference to this object so that method calls can be chained together. * @see ProtocolEnum */ public CreateTargetGroupRequest withProtocol(String protocol) { setProtocol(protocol); return this; } /** *

* The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols * are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For * Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP * target group. If the target is a Lambda function, this parameter does not apply. *

* * @param protocol * The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported * protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or * TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be * associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not apply. * @see ProtocolEnum */ public void setProtocol(ProtocolEnum protocol) { withProtocol(protocol); } /** *

* The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols * are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For * Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP * target group. If the target is a Lambda function, this parameter does not apply. *

* * @param protocol * The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported * protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or * TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be * associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not apply. * @return Returns a reference to this object so that method calls can be chained together. * @see ProtocolEnum */ public CreateTargetGroupRequest withProtocol(ProtocolEnum protocol) { this.protocol = protocol.toString(); return this; } /** *

* [HTTP/HTTPS protocol] The protocol version. Specify GRPC to send requests to targets using gRPC. * Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which * sends requests to targets using HTTP/1.1. *

* * @param protocolVersion * [HTTP/HTTPS protocol] The protocol version. Specify GRPC to send requests to targets using * gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is * HTTP1, which sends requests to targets using HTTP/1.1. */ public void setProtocolVersion(String protocolVersion) { this.protocolVersion = protocolVersion; } /** *

* [HTTP/HTTPS protocol] The protocol version. Specify GRPC to send requests to targets using gRPC. * Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which * sends requests to targets using HTTP/1.1. *

* * @return [HTTP/HTTPS protocol] The protocol version. Specify GRPC to send requests to targets using * gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is * HTTP1, which sends requests to targets using HTTP/1.1. */ public String getProtocolVersion() { return this.protocolVersion; } /** *

* [HTTP/HTTPS protocol] The protocol version. Specify GRPC to send requests to targets using gRPC. * Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which * sends requests to targets using HTTP/1.1. *

* * @param protocolVersion * [HTTP/HTTPS protocol] The protocol version. Specify GRPC to send requests to targets using * gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is * HTTP1, which sends requests to targets using HTTP/1.1. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withProtocolVersion(String protocolVersion) { setProtocolVersion(protocolVersion); return this; } /** *

* The port on which the targets receive traffic. This port is used unless you specify a port override when * registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is * GENEVE, the supported port is 6081. *

* * @param port * The port on which the targets receive traffic. This port is used unless you specify a port override when * registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol * is GENEVE, the supported port is 6081. */ public void setPort(Integer port) { this.port = port; } /** *

* The port on which the targets receive traffic. This port is used unless you specify a port override when * registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is * GENEVE, the supported port is 6081. *

* * @return The port on which the targets receive traffic. This port is used unless you specify a port override when * registering the target. If the target is a Lambda function, this parameter does not apply. If the * protocol is GENEVE, the supported port is 6081. */ public Integer getPort() { return this.port; } /** *

* The port on which the targets receive traffic. This port is used unless you specify a port override when * registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is * GENEVE, the supported port is 6081. *

* * @param port * The port on which the targets receive traffic. This port is used unless you specify a port override when * registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol * is GENEVE, the supported port is 6081. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withPort(Integer port) { setPort(port); return this; } /** *

* The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not * apply. Otherwise, this parameter is required. *

* * @param vpcId * The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does * not apply. Otherwise, this parameter is required. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** *

* The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not * apply. Otherwise, this parameter is required. *

* * @return The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter * does not apply. Otherwise, this parameter is required. */ public String getVpcId() { return this.vpcId; } /** *

* The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not * apply. Otherwise, this parameter is required. *

* * @param vpcId * The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does * not apply. Otherwise, this parameter is required. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** *

* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the * default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is * not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and * TCP_UDP protocols are not supported for health checks. *

* * @param healthCheckProtocol * The protocol the load balancer uses when performing health checks on targets. For Application Load * Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. * The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. * The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks. * @see ProtocolEnum */ public void setHealthCheckProtocol(String healthCheckProtocol) { this.healthCheckProtocol = healthCheckProtocol; } /** *

* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the * default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is * not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and * TCP_UDP protocols are not supported for health checks. *

* * @return The protocol the load balancer uses when performing health checks on targets. For Application Load * Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is * TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or * HTTPS. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks. * @see ProtocolEnum */ public String getHealthCheckProtocol() { return this.healthCheckProtocol; } /** *

* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the * default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is * not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and * TCP_UDP protocols are not supported for health checks. *

* * @param healthCheckProtocol * The protocol the load balancer uses when performing health checks on targets. For Application Load * Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. * The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. * The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks. * @return Returns a reference to this object so that method calls can be chained together. * @see ProtocolEnum */ public CreateTargetGroupRequest withHealthCheckProtocol(String healthCheckProtocol) { setHealthCheckProtocol(healthCheckProtocol); return this; } /** *

* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the * default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is * not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and * TCP_UDP protocols are not supported for health checks. *

* * @param healthCheckProtocol * The protocol the load balancer uses when performing health checks on targets. For Application Load * Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. * The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. * The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks. * @see ProtocolEnum */ public void setHealthCheckProtocol(ProtocolEnum healthCheckProtocol) { withHealthCheckProtocol(healthCheckProtocol); } /** *

* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the * default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is * not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and * TCP_UDP protocols are not supported for health checks. *

* * @param healthCheckProtocol * The protocol the load balancer uses when performing health checks on targets. For Application Load * Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. * The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. * The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks. * @return Returns a reference to this object so that method calls can be chained together. * @see ProtocolEnum */ public CreateTargetGroupRequest withHealthCheckProtocol(ProtocolEnum healthCheckProtocol) { this.healthCheckProtocol = healthCheckProtocol.toString(); return this; } /** *

* The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, TCP, * TLS, UDP, or TCP_UDP, the default is traffic-port, which is the port on which each target receives * traffic from the load balancer. If the protocol is GENEVE, the default is port 80. *

* * @param healthCheckPort * The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, * TCP, TLS, UDP, or TCP_UDP, the default is traffic-port, which is the port on which each * target receives traffic from the load balancer. If the protocol is GENEVE, the default is port 80. */ public void setHealthCheckPort(String healthCheckPort) { this.healthCheckPort = healthCheckPort; } /** *

* The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, TCP, * TLS, UDP, or TCP_UDP, the default is traffic-port, which is the port on which each target receives * traffic from the load balancer. If the protocol is GENEVE, the default is port 80. *

* * @return The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, * TCP, TLS, UDP, or TCP_UDP, the default is traffic-port, which is the port on which each * target receives traffic from the load balancer. If the protocol is GENEVE, the default is port 80. */ public String getHealthCheckPort() { return this.healthCheckPort; } /** *

* The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, TCP, * TLS, UDP, or TCP_UDP, the default is traffic-port, which is the port on which each target receives * traffic from the load balancer. If the protocol is GENEVE, the default is port 80. *

* * @param healthCheckPort * The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, * TCP, TLS, UDP, or TCP_UDP, the default is traffic-port, which is the port on which each * target receives traffic from the load balancer. If the protocol is GENEVE, the default is port 80. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withHealthCheckPort(String healthCheckPort) { setHealthCheckPort(healthCheckPort); return this; } /** *

* Indicates whether health checks are enabled. If the target type is lambda, health checks are * disabled by default but can be enabled. If the target type is instance, ip, or * alb, health checks are always enabled and cannot be disabled. *

* * @param healthCheckEnabled * Indicates whether health checks are enabled. If the target type is lambda, health checks are * disabled by default but can be enabled. If the target type is instance, ip, or * alb, health checks are always enabled and cannot be disabled. */ public void setHealthCheckEnabled(Boolean healthCheckEnabled) { this.healthCheckEnabled = healthCheckEnabled; } /** *

* Indicates whether health checks are enabled. If the target type is lambda, health checks are * disabled by default but can be enabled. If the target type is instance, ip, or * alb, health checks are always enabled and cannot be disabled. *

* * @return Indicates whether health checks are enabled. If the target type is lambda, health checks are * disabled by default but can be enabled. If the target type is instance, ip, or * alb, health checks are always enabled and cannot be disabled. */ public Boolean getHealthCheckEnabled() { return this.healthCheckEnabled; } /** *

* Indicates whether health checks are enabled. If the target type is lambda, health checks are * disabled by default but can be enabled. If the target type is instance, ip, or * alb, health checks are always enabled and cannot be disabled. *

* * @param healthCheckEnabled * Indicates whether health checks are enabled. If the target type is lambda, health checks are * disabled by default but can be enabled. If the target type is instance, ip, or * alb, health checks are always enabled and cannot be disabled. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withHealthCheckEnabled(Boolean healthCheckEnabled) { setHealthCheckEnabled(healthCheckEnabled); return this; } /** *

* Indicates whether health checks are enabled. If the target type is lambda, health checks are * disabled by default but can be enabled. If the target type is instance, ip, or * alb, health checks are always enabled and cannot be disabled. *

* * @return Indicates whether health checks are enabled. If the target type is lambda, health checks are * disabled by default but can be enabled. If the target type is instance, ip, or * alb, health checks are always enabled and cannot be disabled. */ public Boolean isHealthCheckEnabled() { return this.healthCheckEnabled; } /** *

* [HTTP/HTTPS health checks] The destination for health checks on the targets. *

*

* [HTTP1 or HTTP2 protocol version] The ping path. The default is /. *

*

* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The * default is /Amazon Web Services.ALB/healthcheck. *

* * @param healthCheckPath * [HTTP/HTTPS health checks] The destination for health checks on the targets.

*

* [HTTP1 or HTTP2 protocol version] The ping path. The default is /. *

*

* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. * The default is /Amazon Web Services.ALB/healthcheck. */ public void setHealthCheckPath(String healthCheckPath) { this.healthCheckPath = healthCheckPath; } /** *

* [HTTP/HTTPS health checks] The destination for health checks on the targets. *

*

* [HTTP1 or HTTP2 protocol version] The ping path. The default is /. *

*

* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The * default is /Amazon Web Services.ALB/healthcheck. *

* * @return [HTTP/HTTPS health checks] The destination for health checks on the targets.

*

* [HTTP1 or HTTP2 protocol version] The ping path. The default is /. *

*

* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. * The default is /Amazon Web Services.ALB/healthcheck. */ public String getHealthCheckPath() { return this.healthCheckPath; } /** *

* [HTTP/HTTPS health checks] The destination for health checks on the targets. *

*

* [HTTP1 or HTTP2 protocol version] The ping path. The default is /. *

*

* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The * default is /Amazon Web Services.ALB/healthcheck. *

* * @param healthCheckPath * [HTTP/HTTPS health checks] The destination for health checks on the targets.

*

* [HTTP1 or HTTP2 protocol version] The ping path. The default is /. *

*

* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. * The default is /Amazon Web Services.ALB/healthcheck. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withHealthCheckPath(String healthCheckPath) { setHealthCheckPath(healthCheckPath); return this; } /** *

* The approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. If * the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target * group protocol is GENEVE, the default is 10 seconds. If the target type is lambda, the default is 35 * seconds. *

* * @param healthCheckIntervalSeconds * The approximate amount of time, in seconds, between health checks of an individual target. The range is * 5-300. If the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. * If the target group protocol is GENEVE, the default is 10 seconds. If the target type is * lambda, the default is 35 seconds. */ public void setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds) { this.healthCheckIntervalSeconds = healthCheckIntervalSeconds; } /** *

* The approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. If * the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target * group protocol is GENEVE, the default is 10 seconds. If the target type is lambda, the default is 35 * seconds. *

* * @return The approximate amount of time, in seconds, between health checks of an individual target. The range is * 5-300. If the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. * If the target group protocol is GENEVE, the default is 10 seconds. If the target type is * lambda, the default is 35 seconds. */ public Integer getHealthCheckIntervalSeconds() { return this.healthCheckIntervalSeconds; } /** *

* The approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. If * the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target * group protocol is GENEVE, the default is 10 seconds. If the target type is lambda, the default is 35 * seconds. *

* * @param healthCheckIntervalSeconds * The approximate amount of time, in seconds, between health checks of an individual target. The range is * 5-300. If the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. * If the target group protocol is GENEVE, the default is 10 seconds. If the target type is * lambda, the default is 35 seconds. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds) { setHealthCheckIntervalSeconds(healthCheckIntervalSeconds); return this; } /** *

* The amount of time, in seconds, during which no response from a target means a failed health check. The range is * 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a * protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the * default is 5 seconds. If the target type is lambda, the default is 30 seconds. *

* * @param healthCheckTimeoutSeconds * The amount of time, in seconds, during which no response from a target means a failed health check. The * range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target * groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol * of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 seconds. */ public void setHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds) { this.healthCheckTimeoutSeconds = healthCheckTimeoutSeconds; } /** *

* The amount of time, in seconds, during which no response from a target means a failed health check. The range is * 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a * protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the * default is 5 seconds. If the target type is lambda, the default is 30 seconds. *

* * @return The amount of time, in seconds, during which no response from a target means a failed health check. The * range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target * groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol * of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 * seconds. */ public Integer getHealthCheckTimeoutSeconds() { return this.healthCheckTimeoutSeconds; } /** *

* The amount of time, in seconds, during which no response from a target means a failed health check. The range is * 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a * protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the * default is 5 seconds. If the target type is lambda, the default is 30 seconds. *

* * @param healthCheckTimeoutSeconds * The amount of time, in seconds, during which no response from a target means a failed health check. The * range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target * groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol * of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 seconds. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds) { setHealthCheckTimeoutSeconds(healthCheckTimeoutSeconds); return this; } /** *

* The number of consecutive health check successes required before considering a target healthy. The range is 2-10. * If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with a * protocol of GENEVE, the default is 5. If the target type is lambda, the default is 5. *

* * @param healthyThresholdCount * The number of consecutive health check successes required before considering a target healthy. The range * is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For * target groups with a protocol of GENEVE, the default is 5. If the target type is lambda, the * default is 5. */ public void setHealthyThresholdCount(Integer healthyThresholdCount) { this.healthyThresholdCount = healthyThresholdCount; } /** *

* The number of consecutive health check successes required before considering a target healthy. The range is 2-10. * If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with a * protocol of GENEVE, the default is 5. If the target type is lambda, the default is 5. *

* * @return The number of consecutive health check successes required before considering a target healthy. The range * is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For * target groups with a protocol of GENEVE, the default is 5. If the target type is lambda, the * default is 5. */ public Integer getHealthyThresholdCount() { return this.healthyThresholdCount; } /** *

* The number of consecutive health check successes required before considering a target healthy. The range is 2-10. * If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with a * protocol of GENEVE, the default is 5. If the target type is lambda, the default is 5. *

* * @param healthyThresholdCount * The number of consecutive health check successes required before considering a target healthy. The range * is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For * target groups with a protocol of GENEVE, the default is 5. If the target type is lambda, the * default is 5. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withHealthyThresholdCount(Integer healthyThresholdCount) { setHealthyThresholdCount(healthyThresholdCount); return this; } /** *

* The number of consecutive health check failures required before considering a target unhealthy. The range is * 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups * with a protocol of GENEVE, the default is 2. If the target type is lambda, the default is 5. *

* * @param unhealthyThresholdCount * The number of consecutive health check failures required before considering a target unhealthy. The range * is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For * target groups with a protocol of GENEVE, the default is 2. If the target type is lambda, the * default is 5. */ public void setUnhealthyThresholdCount(Integer unhealthyThresholdCount) { this.unhealthyThresholdCount = unhealthyThresholdCount; } /** *

* The number of consecutive health check failures required before considering a target unhealthy. The range is * 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups * with a protocol of GENEVE, the default is 2. If the target type is lambda, the default is 5. *

* * @return The number of consecutive health check failures required before considering a target unhealthy. The range * is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For * target groups with a protocol of GENEVE, the default is 2. If the target type is lambda, the * default is 5. */ public Integer getUnhealthyThresholdCount() { return this.unhealthyThresholdCount; } /** *

* The number of consecutive health check failures required before considering a target unhealthy. The range is * 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups * with a protocol of GENEVE, the default is 2. If the target type is lambda, the default is 5. *

* * @param unhealthyThresholdCount * The number of consecutive health check failures required before considering a target unhealthy. The range * is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For * target groups with a protocol of GENEVE, the default is 2. If the target type is lambda, the * default is 5. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withUnhealthyThresholdCount(Integer unhealthyThresholdCount) { setUnhealthyThresholdCount(unhealthyThresholdCount); return this; } /** *

* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target. * For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a * protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is * 200-399. *

* * @param matcher * [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a * target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target * groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of * GENEVE, the range is 200-399. */ public void setMatcher(Matcher matcher) { this.matcher = matcher; } /** *

* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target. * For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a * protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is * 200-399. *

* * @return [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a * target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target * groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of * GENEVE, the range is 200-399. */ public Matcher getMatcher() { return this.matcher; } /** *

* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target. * For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a * protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is * 200-399. *

* * @param matcher * [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a * target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target * groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of * GENEVE, the range is 200-399. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTargetGroupRequest withMatcher(Matcher matcher) { setMatcher(matcher); return this; } /** *

* The type of target that you must specify when registering targets with this target group. You can't specify * targets for a target group using more than one target type. *

* * * @param targetType * The type of target that you must specify when registering targets with this target group. You can't * specify targets for a target group using more than one target type.

*