@Generated(value="software.amazon.awssdk:codegen") public final class TargetGroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetGroup.Builder,TargetGroup>
Information about a target group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TargetGroup.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TargetGroup.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasLoadBalancerArns()
For responses, this returns true if the service returned a value for the LoadBalancerArns property.
|
Boolean |
healthCheckEnabled()
Indicates whether health checks are enabled.
|
Integer |
healthCheckIntervalSeconds()
The approximate amount of time, in seconds, between health checks of an individual target.
|
String |
healthCheckPath()
The destination for health checks on the targets.
|
String |
healthCheckPort()
The port to use to connect with the target.
|
ProtocolEnum |
healthCheckProtocol()
The protocol to use to connect with the target.
|
String |
healthCheckProtocolAsString()
The protocol to use to connect with the target.
|
Integer |
healthCheckTimeoutSeconds()
The amount of time, in seconds, during which no response means a failed health check.
|
Integer |
healthyThresholdCount()
The number of consecutive health checks successes required before considering an unhealthy target healthy.
|
TargetGroupIpAddressTypeEnum |
ipAddressType()
The type of IP address used for this target group.
|
String |
ipAddressTypeAsString()
The type of IP address used for this target group.
|
List<String> |
loadBalancerArns()
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
|
Matcher |
matcher()
The HTTP or gRPC codes to use when checking for a successful response from a target.
|
Integer |
port()
The port on which the targets are listening.
|
ProtocolEnum |
protocol()
The protocol to use for routing traffic to the targets.
|
String |
protocolAsString()
The protocol to use for routing traffic to the targets.
|
String |
protocolVersion()
[HTTP/HTTPS protocol] The protocol version.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TargetGroup.Builder> |
serializableBuilderClass() |
String |
targetGroupArn()
The Amazon Resource Name (ARN) of the target group.
|
String |
targetGroupName()
The name of the target group.
|
TargetTypeEnum |
targetType()
The type of target that you must specify when registering targets with this target group.
|
String |
targetTypeAsString()
The type of target that you must specify when registering targets with this target group.
|
TargetGroup.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
unhealthyThresholdCount()
The number of consecutive health check failures required before considering the target unhealthy.
|
String |
vpcId()
The ID of the VPC for the targets.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String targetGroupArn()
The Amazon Resource Name (ARN) of the target group.
public final String targetGroupName()
The name of the target group.
public final ProtocolEnum protocol()
The protocol to use for routing traffic to the targets.
If the service returns an enum value that is not available in the current SDK version, protocol will
return ProtocolEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
ProtocolEnumpublic final String protocolAsString()
The protocol to use for routing traffic to the targets.
If the service returns an enum value that is not available in the current SDK version, protocol will
return ProtocolEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
ProtocolEnumpublic final Integer port()
The port on which the targets are listening. Not used if the target is a Lambda function.
public final String vpcId()
The ID of the VPC for the targets.
public final ProtocolEnum healthCheckProtocol()
The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
If the service returns an enum value that is not available in the current SDK version,
healthCheckProtocol will return ProtocolEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from healthCheckProtocolAsString().
ProtocolEnumpublic final String healthCheckProtocolAsString()
The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
If the service returns an enum value that is not available in the current SDK version,
healthCheckProtocol will return ProtocolEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from healthCheckProtocolAsString().
ProtocolEnumpublic final String healthCheckPort()
The port to use to connect with the target.
public final Boolean healthCheckEnabled()
Indicates whether health checks are enabled.
public final Integer healthCheckIntervalSeconds()
The approximate amount of time, in seconds, between health checks of an individual target.
public final Integer healthCheckTimeoutSeconds()
The amount of time, in seconds, during which no response means a failed health check.
public final Integer healthyThresholdCount()
The number of consecutive health checks successes required before considering an unhealthy target healthy.
public final Integer unhealthyThresholdCount()
The number of consecutive health check failures required before considering the target unhealthy.
public final String healthCheckPath()
The destination for health checks on the targets.
public final Matcher matcher()
The HTTP or gRPC codes to use when checking for a successful response from a target.
public final boolean hasLoadBalancerArns()
isEmpty() 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.public final List<String> loadBalancerArns()
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
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 hasLoadBalancerArns() method.
public final TargetTypeEnum targetType()
The type of target that you must specify when registering targets with this target group. The possible values are
instance (register targets by instance ID), ip (register targets by IP address),
lambda (register a single Lambda function as a target), or alb (register a single
Application Load Balancer as a target).
If the service returns an enum value that is not available in the current SDK version, targetType will
return TargetTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
targetTypeAsString().
instance (register targets by instance ID), ip (register targets by
IP address), lambda (register a single Lambda function as a target), or alb
(register a single Application Load Balancer as a target).TargetTypeEnumpublic final String targetTypeAsString()
The type of target that you must specify when registering targets with this target group. The possible values are
instance (register targets by instance ID), ip (register targets by IP address),
lambda (register a single Lambda function as a target), or alb (register a single
Application Load Balancer as a target).
If the service returns an enum value that is not available in the current SDK version, targetType will
return TargetTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
targetTypeAsString().
instance (register targets by instance ID), ip (register targets by
IP address), lambda (register a single Lambda function as a target), or alb
(register a single Application Load Balancer as a target).TargetTypeEnumpublic final String protocolVersion()
[HTTP/HTTPS protocol] The protocol version. The possible values are GRPC, HTTP1, and
HTTP2.
GRPC, HTTP1
, and HTTP2.public final TargetGroupIpAddressTypeEnum ipAddressType()
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.
If the service returns an enum value that is not available in the current SDK version, ipAddressType
will return TargetGroupIpAddressTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from ipAddressTypeAsString().
ipv4 and
ipv6. This is an optional parameter. If not specified, the IP address type defaults to
ipv4.TargetGroupIpAddressTypeEnumpublic final String ipAddressTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, ipAddressType
will return TargetGroupIpAddressTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from ipAddressTypeAsString().
ipv4 and
ipv6. This is an optional parameter. If not specified, the IP address type defaults to
ipv4.TargetGroupIpAddressTypeEnumpublic TargetGroup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TargetGroup.Builder,TargetGroup>public static TargetGroup.Builder builder()
public static Class<? extends TargetGroup.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.