@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetGroup extends Object implements Serializable, Cloneable
Information about a target group.
Constructor and Description |
---|
TargetGroup() |
Modifier and Type | Method and Description |
---|---|
TargetGroup |
clone() |
boolean |
equals(Object obj) |
Integer |
getHealthCheckIntervalSeconds()
The approximate amount of time, in seconds, between health checks of an individual target.
|
String |
getHealthCheckPath()
The destination for the health check request.
|
String |
getHealthCheckPort()
The port to use to connect with the target.
|
String |
getHealthCheckProtocol()
The protocol to use to connect with the target.
|
Integer |
getHealthCheckTimeoutSeconds()
The amount of time, in seconds, during which no response means a failed health check.
|
Integer |
getHealthyThresholdCount()
The number of consecutive health checks successes required before considering an unhealthy target healthy.
|
List<String> |
getLoadBalancerArns()
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
|
Matcher |
getMatcher()
The HTTP codes to use when checking for a successful response from a target.
|
Integer |
getPort()
The port on which the targets are listening.
|
String |
getProtocol()
The protocol to use for routing traffic to the targets.
|
String |
getTargetGroupArn()
The Amazon Resource Name (ARN) of the target group.
|
String |
getTargetGroupName()
The name of the target group.
|
String |
getTargetType()
The type of target that you must specify when registering targets with this target group.
|
Integer |
getUnhealthyThresholdCount()
The number of consecutive health check failures required before considering the target unhealthy.
|
String |
getVpcId()
The ID of the VPC for the targets.
|
int |
hashCode() |
void |
setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
|
void |
setHealthCheckPath(String healthCheckPath)
The destination for the health check request.
|
void |
setHealthCheckPort(String healthCheckPort)
The port to use to connect with the target.
|
void |
setHealthCheckProtocol(ProtocolEnum healthCheckProtocol)
The protocol to use to connect with the target.
|
void |
setHealthCheckProtocol(String healthCheckProtocol)
The protocol to use to connect with the target.
|
void |
setHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, during which no response means a failed health check.
|
void |
setHealthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive health checks successes required before considering an unhealthy target healthy.
|
void |
setLoadBalancerArns(Collection<String> loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
|
void |
setMatcher(Matcher matcher)
The HTTP codes to use when checking for a successful response from a target.
|
void |
setPort(Integer port)
The port on which the targets are listening.
|
void |
setProtocol(ProtocolEnum protocol)
The protocol to use for routing traffic to the targets.
|
void |
setProtocol(String protocol)
The protocol to use for routing traffic to the targets.
|
void |
setTargetGroupArn(String targetGroupArn)
The Amazon Resource Name (ARN) of the target group.
|
void |
setTargetGroupName(String targetGroupName)
The name of the target group.
|
void |
setTargetType(String targetType)
The type of target that you must specify when registering targets with this target group.
|
void |
setTargetType(TargetTypeEnum targetType)
The type of target that you must specify when registering targets with this target group.
|
void |
setUnhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive health check failures required before considering the target unhealthy.
|
void |
setVpcId(String vpcId)
The ID of the VPC for the targets.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TargetGroup |
withHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
|
TargetGroup |
withHealthCheckPath(String healthCheckPath)
The destination for the health check request.
|
TargetGroup |
withHealthCheckPort(String healthCheckPort)
The port to use to connect with the target.
|
TargetGroup |
withHealthCheckProtocol(ProtocolEnum healthCheckProtocol)
The protocol to use to connect with the target.
|
TargetGroup |
withHealthCheckProtocol(String healthCheckProtocol)
The protocol to use to connect with the target.
|
TargetGroup |
withHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, during which no response means a failed health check.
|
TargetGroup |
withHealthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive health checks successes required before considering an unhealthy target healthy.
|
TargetGroup |
withLoadBalancerArns(Collection<String> loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
|
TargetGroup |
withLoadBalancerArns(String... loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
|
TargetGroup |
withMatcher(Matcher matcher)
The HTTP codes to use when checking for a successful response from a target.
|
TargetGroup |
withPort(Integer port)
The port on which the targets are listening.
|
TargetGroup |
withProtocol(ProtocolEnum protocol)
The protocol to use for routing traffic to the targets.
|
TargetGroup |
withProtocol(String protocol)
The protocol to use for routing traffic to the targets.
|
TargetGroup |
withTargetGroupArn(String targetGroupArn)
The Amazon Resource Name (ARN) of the target group.
|
TargetGroup |
withTargetGroupName(String targetGroupName)
The name of the target group.
|
TargetGroup |
withTargetType(String targetType)
The type of target that you must specify when registering targets with this target group.
|
TargetGroup |
withTargetType(TargetTypeEnum targetType)
The type of target that you must specify when registering targets with this target group.
|
TargetGroup |
withUnhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive health check failures required before considering the target unhealthy.
|
TargetGroup |
withVpcId(String vpcId)
The ID of the VPC for the targets.
|
public void setTargetGroupArn(String targetGroupArn)
The Amazon Resource Name (ARN) of the target group.
targetGroupArn
- The Amazon Resource Name (ARN) of the target group.public String getTargetGroupArn()
The Amazon Resource Name (ARN) of the target group.
public TargetGroup withTargetGroupArn(String targetGroupArn)
The Amazon Resource Name (ARN) of the target group.
targetGroupArn
- The Amazon Resource Name (ARN) of the target group.public void setTargetGroupName(String targetGroupName)
The name of the target group.
targetGroupName
- The name of the target group.public String getTargetGroupName()
The name of the target group.
public TargetGroup withTargetGroupName(String targetGroupName)
The name of the target group.
targetGroupName
- The name of the target group.public void setProtocol(String protocol)
The protocol to use for routing traffic to the targets.
protocol
- The protocol to use for routing traffic to the targets.ProtocolEnum
public String getProtocol()
The protocol to use for routing traffic to the targets.
ProtocolEnum
public TargetGroup withProtocol(String protocol)
The protocol to use for routing traffic to the targets.
protocol
- The protocol to use for routing traffic to the targets.ProtocolEnum
public void setProtocol(ProtocolEnum protocol)
The protocol to use for routing traffic to the targets.
protocol
- The protocol to use for routing traffic to the targets.ProtocolEnum
public TargetGroup withProtocol(ProtocolEnum protocol)
The protocol to use for routing traffic to the targets.
protocol
- The protocol to use for routing traffic to the targets.ProtocolEnum
public void setPort(Integer port)
The port on which the targets are listening.
port
- The port on which the targets are listening.public Integer getPort()
The port on which the targets are listening.
public TargetGroup withPort(Integer port)
The port on which the targets are listening.
port
- The port on which the targets are listening.public void setVpcId(String vpcId)
The ID of the VPC for the targets.
vpcId
- The ID of the VPC for the targets.public String getVpcId()
The ID of the VPC for the targets.
public TargetGroup withVpcId(String vpcId)
The ID of the VPC for the targets.
vpcId
- The ID of the VPC for the targets.public void setHealthCheckProtocol(String healthCheckProtocol)
The protocol to use to connect with the target.
healthCheckProtocol
- The protocol to use to connect with the target.ProtocolEnum
public String getHealthCheckProtocol()
The protocol to use to connect with the target.
ProtocolEnum
public TargetGroup withHealthCheckProtocol(String healthCheckProtocol)
The protocol to use to connect with the target.
healthCheckProtocol
- The protocol to use to connect with the target.ProtocolEnum
public void setHealthCheckProtocol(ProtocolEnum healthCheckProtocol)
The protocol to use to connect with the target.
healthCheckProtocol
- The protocol to use to connect with the target.ProtocolEnum
public TargetGroup withHealthCheckProtocol(ProtocolEnum healthCheckProtocol)
The protocol to use to connect with the target.
healthCheckProtocol
- The protocol to use to connect with the target.ProtocolEnum
public void setHealthCheckPort(String healthCheckPort)
The port to use to connect with the target.
healthCheckPort
- The port to use to connect with the target.public String getHealthCheckPort()
The port to use to connect with the target.
public TargetGroup withHealthCheckPort(String healthCheckPort)
The port to use to connect with the target.
healthCheckPort
- The port to use to connect with the target.public void setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
healthCheckIntervalSeconds
- The approximate amount of time, in seconds, between health checks of an individual target.public Integer getHealthCheckIntervalSeconds()
The approximate amount of time, in seconds, between health checks of an individual target.
public TargetGroup withHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
healthCheckIntervalSeconds
- The approximate amount of time, in seconds, between health checks of an individual target.public void setHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, during which no response means a failed health check.
healthCheckTimeoutSeconds
- The amount of time, in seconds, during which no response means a failed health check.public Integer getHealthCheckTimeoutSeconds()
The amount of time, in seconds, during which no response means a failed health check.
public TargetGroup withHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, during which no response means a failed health check.
healthCheckTimeoutSeconds
- The amount of time, in seconds, during which no response means a failed health check.public void setHealthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive health checks successes required before considering an unhealthy target healthy.
healthyThresholdCount
- The number of consecutive health checks successes required before considering an unhealthy target healthy.public Integer getHealthyThresholdCount()
The number of consecutive health checks successes required before considering an unhealthy target healthy.
public TargetGroup withHealthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive health checks successes required before considering an unhealthy target healthy.
healthyThresholdCount
- The number of consecutive health checks successes required before considering an unhealthy target healthy.public void setUnhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive health check failures required before considering the target unhealthy.
unhealthyThresholdCount
- The number of consecutive health check failures required before considering the target unhealthy.public Integer getUnhealthyThresholdCount()
The number of consecutive health check failures required before considering the target unhealthy.
public TargetGroup withUnhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive health check failures required before considering the target unhealthy.
unhealthyThresholdCount
- The number of consecutive health check failures required before considering the target unhealthy.public void setHealthCheckPath(String healthCheckPath)
The destination for the health check request.
healthCheckPath
- The destination for the health check request.public String getHealthCheckPath()
The destination for the health check request.
public TargetGroup withHealthCheckPath(String healthCheckPath)
The destination for the health check request.
healthCheckPath
- The destination for the health check request.public void setMatcher(Matcher matcher)
The HTTP codes to use when checking for a successful response from a target.
matcher
- The HTTP codes to use when checking for a successful response from a target.public Matcher getMatcher()
The HTTP codes to use when checking for a successful response from a target.
public TargetGroup withMatcher(Matcher matcher)
The HTTP codes to use when checking for a successful response from a target.
matcher
- The HTTP codes to use when checking for a successful response from a target.public List<String> getLoadBalancerArns()
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
public void setLoadBalancerArns(Collection<String> loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
loadBalancerArns
- The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.public TargetGroup withLoadBalancerArns(String... loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
NOTE: This method appends the values to the existing list (if any). Use
setLoadBalancerArns(java.util.Collection)
or withLoadBalancerArns(java.util.Collection)
if you
want to override the existing values.
loadBalancerArns
- The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.public TargetGroup withLoadBalancerArns(Collection<String> loadBalancerArns)
The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
loadBalancerArns
- The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.public void setTargetType(String targetType)
The type of target that you must specify when registering targets with this target group. The possible values are
instance
(targets are specified by instance ID) or ip
(targets are specified by IP
address).
targetType
- The type of target that you must specify when registering targets with this target group. The possible
values are instance
(targets are specified by instance ID) or ip
(targets are
specified by IP address).TargetTypeEnum
public String getTargetType()
The type of target that you must specify when registering targets with this target group. The possible values are
instance
(targets are specified by instance ID) or ip
(targets are specified by IP
address).
instance
(targets are specified by instance ID) or ip
(targets are
specified by IP address).TargetTypeEnum
public TargetGroup withTargetType(String targetType)
The type of target that you must specify when registering targets with this target group. The possible values are
instance
(targets are specified by instance ID) or ip
(targets are specified by IP
address).
targetType
- The type of target that you must specify when registering targets with this target group. The possible
values are instance
(targets are specified by instance ID) or ip
(targets are
specified by IP address).TargetTypeEnum
public void setTargetType(TargetTypeEnum targetType)
The type of target that you must specify when registering targets with this target group. The possible values are
instance
(targets are specified by instance ID) or ip
(targets are specified by IP
address).
targetType
- The type of target that you must specify when registering targets with this target group. The possible
values are instance
(targets are specified by instance ID) or ip
(targets are
specified by IP address).TargetTypeEnum
public TargetGroup withTargetType(TargetTypeEnum targetType)
The type of target that you must specify when registering targets with this target group. The possible values are
instance
(targets are specified by instance ID) or ip
(targets are specified by IP
address).
targetType
- The type of target that you must specify when registering targets with this target group. The possible
values are instance
(targets are specified by instance ID) or ip
(targets are
specified by IP address).TargetTypeEnum
public String toString()
toString
in class Object
Object.toString()
public TargetGroup clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.