@Generated(value="software.amazon.awssdk:codegen") public class TargetDescription extends Object implements ToCopyableBuilder<TargetDescription.Builder,TargetDescription>
Information about a target.
Modifier and Type | Class and Description |
---|---|
static interface |
TargetDescription.Builder |
Modifier and Type | Method and Description |
---|---|
String |
availabilityZone()
An Availability Zone or
all . |
static TargetDescription.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the target.
|
Integer |
port()
The port on which the target is listening.
|
static Class<? extends TargetDescription.Builder> |
serializableBuilderClass() |
TargetDescription.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The ID of the target. If the target type of the target group is instance
, specify an instance ID. If
the target type is ip
, specify an IP address.
instance
, specify an
instance ID. If the target type is ip
, specify an IP address.public Integer port()
The port on which the target is listening.
public String availabilityZone()
An Availability Zone or all
. This determines whether the target receives traffic from the load
balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
This parameter is not supported if the target type of the target group is instance
. If the IP
address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this
parameter is optional. If the IP address is outside the VPC, this parameter is required.
With an Application Load Balancer, if the IP address is outside the VPC for the target group, the only supported
value is all
.
all
. This determines whether the target receives traffic from the
load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the
load balancer.
This parameter is not supported if the target type of the target group is instance
. If the
IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically
detected and this parameter is optional. If the IP address is outside the VPC, this parameter is
required.
With an Application Load Balancer, if the IP address is outside the VPC for the target group, the only
supported value is all
.
public TargetDescription.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TargetDescription.Builder,TargetDescription>
public static TargetDescription.Builder builder()
public static Class<? extends TargetDescription.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.