@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetSummary extends Object implements Serializable, Cloneable, StructuredPojo
Summary information about a target.
Constructor and Description |
---|
TargetSummary() |
Modifier and Type | Method and Description |
---|---|
TargetSummary |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The ID of the target.
|
Integer |
getPort()
The port on which the target is listening.
|
String |
getReasonCode()
The code for why the target status is what it is.
|
String |
getStatus()
The status of the target.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The ID of the target.
|
void |
setPort(Integer port)
The port on which the target is listening.
|
void |
setReasonCode(String reasonCode)
The code for why the target status is what it is.
|
void |
setStatus(String status)
The status of the target.
|
String |
toString()
Returns a string representation of this object.
|
TargetSummary |
withId(String id)
The ID of the target.
|
TargetSummary |
withPort(Integer port)
The port on which the target is listening.
|
TargetSummary |
withReasonCode(String reasonCode)
The code for why the target status is what it is.
|
TargetSummary |
withStatus(String status)
The status of the target.
|
TargetSummary |
withStatus(TargetStatus status)
The status of the target.
|
public void setId(String id)
The ID of the target. If the target group type is INSTANCE
, this is an instance ID. If the target
group type is IP
, this is an IP address. If the target group type is LAMBDA
, this is
the ARN of a Lambda function. If the target type is ALB
, this is the ARN of an Application Load
Balancer.
id
- The ID of the target. If the target group type is INSTANCE
, this is an instance ID. If the
target group type is IP
, this is an IP address. If the target group type is
LAMBDA
, this is the ARN of a Lambda function. If the target type is ALB
, this is
the ARN of an Application Load Balancer.public String getId()
The ID of the target. If the target group type is INSTANCE
, this is an instance ID. If the target
group type is IP
, this is an IP address. If the target group type is LAMBDA
, this is
the ARN of a Lambda function. If the target type is ALB
, this is the ARN of an Application Load
Balancer.
INSTANCE
, this is an instance ID. If the
target group type is IP
, this is an IP address. If the target group type is
LAMBDA
, this is the ARN of a Lambda function. If the target type is ALB
, this
is the ARN of an Application Load Balancer.public TargetSummary withId(String id)
The ID of the target. If the target group type is INSTANCE
, this is an instance ID. If the target
group type is IP
, this is an IP address. If the target group type is LAMBDA
, this is
the ARN of a Lambda function. If the target type is ALB
, this is the ARN of an Application Load
Balancer.
id
- The ID of the target. If the target group type is INSTANCE
, this is an instance ID. If the
target group type is IP
, this is an IP address. If the target group type is
LAMBDA
, this is the ARN of a Lambda function. If the target type is ALB
, this is
the ARN of an Application Load Balancer.public void setPort(Integer port)
The port on which the target is listening.
port
- The port on which the target is listening.public Integer getPort()
The port on which the target is listening.
public TargetSummary withPort(Integer port)
The port on which the target is listening.
port
- The port on which the target is listening.public void setReasonCode(String reasonCode)
The code for why the target status is what it is.
reasonCode
- The code for why the target status is what it is.public String getReasonCode()
The code for why the target status is what it is.
public TargetSummary withReasonCode(String reasonCode)
The code for why the target status is what it is.
reasonCode
- The code for why the target status is what it is.public void setStatus(String status)
The status of the target.
DRAINING
: The target is being deregistered. No new connections are sent to this target while current
connections are being drained. The default draining time is 5 minutes.
UNAVAILABLE
: Health checks are unavailable for the target group.
HEALTHY
: The target is healthy.
UNHEALTHY
: The target is unhealthy.
INITIAL
: Initial health checks on the target are being performed.
UNUSED
: Target group is not used in a service.
status
- The status of the target.
DRAINING
: The target is being deregistered. No new connections are sent to this target while
current connections are being drained. The default draining time is 5 minutes.
UNAVAILABLE
: Health checks are unavailable for the target group.
HEALTHY
: The target is healthy.
UNHEALTHY
: The target is unhealthy.
INITIAL
: Initial health checks on the target are being performed.
UNUSED
: Target group is not used in a service.
TargetStatus
public String getStatus()
The status of the target.
DRAINING
: The target is being deregistered. No new connections are sent to this target while current
connections are being drained. The default draining time is 5 minutes.
UNAVAILABLE
: Health checks are unavailable for the target group.
HEALTHY
: The target is healthy.
UNHEALTHY
: The target is unhealthy.
INITIAL
: Initial health checks on the target are being performed.
UNUSED
: Target group is not used in a service.
DRAINING
: The target is being deregistered. No new connections are sent to this target while
current connections are being drained. The default draining time is 5 minutes.
UNAVAILABLE
: Health checks are unavailable for the target group.
HEALTHY
: The target is healthy.
UNHEALTHY
: The target is unhealthy.
INITIAL
: Initial health checks on the target are being performed.
UNUSED
: Target group is not used in a service.
TargetStatus
public TargetSummary withStatus(String status)
The status of the target.
DRAINING
: The target is being deregistered. No new connections are sent to this target while current
connections are being drained. The default draining time is 5 minutes.
UNAVAILABLE
: Health checks are unavailable for the target group.
HEALTHY
: The target is healthy.
UNHEALTHY
: The target is unhealthy.
INITIAL
: Initial health checks on the target are being performed.
UNUSED
: Target group is not used in a service.
status
- The status of the target.
DRAINING
: The target is being deregistered. No new connections are sent to this target while
current connections are being drained. The default draining time is 5 minutes.
UNAVAILABLE
: Health checks are unavailable for the target group.
HEALTHY
: The target is healthy.
UNHEALTHY
: The target is unhealthy.
INITIAL
: Initial health checks on the target are being performed.
UNUSED
: Target group is not used in a service.
TargetStatus
public TargetSummary withStatus(TargetStatus status)
The status of the target.
DRAINING
: The target is being deregistered. No new connections are sent to this target while current
connections are being drained. The default draining time is 5 minutes.
UNAVAILABLE
: Health checks are unavailable for the target group.
HEALTHY
: The target is healthy.
UNHEALTHY
: The target is unhealthy.
INITIAL
: Initial health checks on the target are being performed.
UNUSED
: Target group is not used in a service.
status
- The status of the target.
DRAINING
: The target is being deregistered. No new connections are sent to this target while
current connections are being drained. The default draining time is 5 minutes.
UNAVAILABLE
: Health checks are unavailable for the target group.
HEALTHY
: The target is healthy.
UNHEALTHY
: The target is unhealthy.
INITIAL
: Initial health checks on the target are being performed.
UNUSED
: Target group is not used in a service.
TargetStatus
public String toString()
toString
in class Object
Object.toString()
public TargetSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.