@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetFailure extends Object implements Serializable, Cloneable, StructuredPojo
Describes a target failure.
Constructor and Description |
---|
TargetFailure() |
Modifier and Type | Method and Description |
---|---|
TargetFailure |
clone() |
boolean |
equals(Object obj) |
String |
getFailureCode()
The failure code.
|
String |
getFailureMessage()
The failure message.
|
String |
getId()
The ID of the target.
|
Integer |
getPort()
The port on which the target is listening.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFailureCode(String failureCode)
The failure code.
|
void |
setFailureMessage(String failureMessage)
The failure message.
|
void |
setId(String id)
The ID of the target.
|
void |
setPort(Integer port)
The port on which the target is listening.
|
String |
toString()
Returns a string representation of this object.
|
TargetFailure |
withFailureCode(String failureCode)
The failure code.
|
TargetFailure |
withFailureMessage(String failureMessage)
The failure message.
|
TargetFailure |
withId(String id)
The ID of the target.
|
TargetFailure |
withPort(Integer port)
The port on which the target is listening.
|
public void setFailureCode(String failureCode)
The failure code.
failureCode
- The failure code.public String getFailureCode()
The failure code.
public TargetFailure withFailureCode(String failureCode)
The failure code.
failureCode
- The failure code.public void setFailureMessage(String failureMessage)
The failure message.
failureMessage
- The failure message.public String getFailureMessage()
The failure message.
public TargetFailure withFailureMessage(String failureMessage)
The failure message.
failureMessage
- The failure message.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 group 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 group 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 group 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 group type is ALB
,
this is the ARN of an Application Load Balancer.public TargetFailure 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 group 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 group 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. This parameter doesn't apply if the target is a Lambda function.
port
- The port on which the target is listening. This parameter doesn't apply if the target is a Lambda
function.public Integer getPort()
The port on which the target is listening. This parameter doesn't apply if the target is a Lambda function.
public TargetFailure withPort(Integer port)
The port on which the target is listening. This parameter doesn't apply if the target is a Lambda function.
port
- The port on which the target is listening. This parameter doesn't apply if the target is a Lambda
function.public String toString()
toString
in class Object
Object.toString()
public TargetFailure clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.