@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Target extends Object implements Serializable, Cloneable, StructuredPojo
Describes a target.
Constructor and Description |
---|
Target() |
Modifier and Type | Method and Description |
---|---|
Target |
clone() |
boolean |
equals(Object obj) |
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 |
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.
|
Target |
withId(String id)
The ID of the target.
|
Target |
withPort(Integer port)
The port on which the target is listening.
|
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 Target 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. For HTTP, the default is 80. For HTTPS, the default is 443.
port
- The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443.public Integer getPort()
The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443.
public Target withPort(Integer port)
The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443.
port
- The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.