@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetGroupConfig extends Object implements Serializable, Cloneable, StructuredPojo
Describes the configuration of a target group. Lambda functions don't support target group configuration.
Constructor and Description |
---|
TargetGroupConfig() |
Modifier and Type | Method and Description |
---|---|
TargetGroupConfig |
clone() |
boolean |
equals(Object obj) |
HealthCheckConfig |
getHealthCheck()
The health check configuration.
|
String |
getIpAddressType()
The type of IP address used for the target group.
|
String |
getLambdaEventStructureVersion()
Lambda event structure version
|
Integer |
getPort()
The port on which the targets are listening.
|
String |
getProtocol()
The protocol to use for routing traffic to the targets.
|
String |
getProtocolVersion()
The protocol version.
|
String |
getVpcIdentifier()
The ID of the VPC.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHealthCheck(HealthCheckConfig healthCheck)
The health check configuration.
|
void |
setIpAddressType(String ipAddressType)
The type of IP address used for the target group.
|
void |
setLambdaEventStructureVersion(String lambdaEventStructureVersion)
Lambda event structure version
|
void |
setPort(Integer port)
The port on which the targets are listening.
|
void |
setProtocol(String protocol)
The protocol to use for routing traffic to the targets.
|
void |
setProtocolVersion(String protocolVersion)
The protocol version.
|
void |
setVpcIdentifier(String vpcIdentifier)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object.
|
TargetGroupConfig |
withHealthCheck(HealthCheckConfig healthCheck)
The health check configuration.
|
TargetGroupConfig |
withIpAddressType(IpAddressType ipAddressType)
The type of IP address used for the target group.
|
TargetGroupConfig |
withIpAddressType(String ipAddressType)
The type of IP address used for the target group.
|
TargetGroupConfig |
withLambdaEventStructureVersion(LambdaEventStructureVersion lambdaEventStructureVersion)
Lambda event structure version
|
TargetGroupConfig |
withLambdaEventStructureVersion(String lambdaEventStructureVersion)
Lambda event structure version
|
TargetGroupConfig |
withPort(Integer port)
The port on which the targets are listening.
|
TargetGroupConfig |
withProtocol(String protocol)
The protocol to use for routing traffic to the targets.
|
TargetGroupConfig |
withProtocol(TargetGroupProtocol protocol)
The protocol to use for routing traffic to the targets.
|
TargetGroupConfig |
withProtocolVersion(String protocolVersion)
The protocol version.
|
TargetGroupConfig |
withProtocolVersion(TargetGroupProtocolVersion protocolVersion)
The protocol version.
|
TargetGroupConfig |
withVpcIdentifier(String vpcIdentifier)
The ID of the VPC.
|
public void setHealthCheck(HealthCheckConfig healthCheck)
The health check configuration.
healthCheck
- The health check configuration.public HealthCheckConfig getHealthCheck()
The health check configuration.
public TargetGroupConfig withHealthCheck(HealthCheckConfig healthCheck)
The health check configuration.
healthCheck
- The health check configuration.public void setIpAddressType(String ipAddressType)
The type of IP address used for the target group. The possible values are ipv4
and ipv6
. This is an optional parameter. If not specified, the IP address type defaults to ipv4
.
ipAddressType
- The type of IP address used for the target group. The possible values are ipv4
and
ipv6
. This is an optional parameter. If not specified, the IP address type defaults to
ipv4
.IpAddressType
public String getIpAddressType()
The type of IP address used for the target group. The possible values are ipv4
and ipv6
. This is an optional parameter. If not specified, the IP address type defaults to ipv4
.
ipv4
and
ipv6
. This is an optional parameter. If not specified, the IP address type defaults to
ipv4
.IpAddressType
public TargetGroupConfig withIpAddressType(String ipAddressType)
The type of IP address used for the target group. The possible values are ipv4
and ipv6
. This is an optional parameter. If not specified, the IP address type defaults to ipv4
.
ipAddressType
- The type of IP address used for the target group. The possible values are ipv4
and
ipv6
. This is an optional parameter. If not specified, the IP address type defaults to
ipv4
.IpAddressType
public TargetGroupConfig withIpAddressType(IpAddressType ipAddressType)
The type of IP address used for the target group. The possible values are ipv4
and ipv6
. This is an optional parameter. If not specified, the IP address type defaults to ipv4
.
ipAddressType
- The type of IP address used for the target group. The possible values are ipv4
and
ipv6
. This is an optional parameter. If not specified, the IP address type defaults to
ipv4
.IpAddressType
public void setLambdaEventStructureVersion(String lambdaEventStructureVersion)
Lambda event structure version
lambdaEventStructureVersion
- Lambda event structure versionLambdaEventStructureVersion
public String getLambdaEventStructureVersion()
Lambda event structure version
LambdaEventStructureVersion
public TargetGroupConfig withLambdaEventStructureVersion(String lambdaEventStructureVersion)
Lambda event structure version
lambdaEventStructureVersion
- Lambda event structure versionLambdaEventStructureVersion
public TargetGroupConfig withLambdaEventStructureVersion(LambdaEventStructureVersion lambdaEventStructureVersion)
Lambda event structure version
lambdaEventStructureVersion
- Lambda event structure versionLambdaEventStructureVersion
public void setPort(Integer port)
The port on which the targets are listening. For HTTP, the default is 80
. For HTTPS, the default is
443
port
- The port on which the targets are listening. For HTTP, the default is 80
. For HTTPS, the
default is 443
public Integer getPort()
The port on which the targets are listening. For HTTP, the default is 80
. For HTTPS, the default is
443
80
. For HTTPS, the
default is 443
public TargetGroupConfig withPort(Integer port)
The port on which the targets are listening. For HTTP, the default is 80
. For HTTPS, the default is
443
port
- The port on which the targets are listening. For HTTP, the default is 80
. For HTTPS, the
default is 443
public void setProtocol(String protocol)
The protocol to use for routing traffic to the targets. Default is the protocol of a target group.
protocol
- The protocol to use for routing traffic to the targets. Default is the protocol of a target group.TargetGroupProtocol
public String getProtocol()
The protocol to use for routing traffic to the targets. Default is the protocol of a target group.
TargetGroupProtocol
public TargetGroupConfig withProtocol(String protocol)
The protocol to use for routing traffic to the targets. Default is the protocol of a target group.
protocol
- The protocol to use for routing traffic to the targets. Default is the protocol of a target group.TargetGroupProtocol
public TargetGroupConfig withProtocol(TargetGroupProtocol protocol)
The protocol to use for routing traffic to the targets. Default is the protocol of a target group.
protocol
- The protocol to use for routing traffic to the targets. Default is the protocol of a target group.TargetGroupProtocol
public void setProtocolVersion(String protocolVersion)
The protocol version. Default value is HTTP1
.
protocolVersion
- The protocol version. Default value is HTTP1
.TargetGroupProtocolVersion
public String getProtocolVersion()
The protocol version. Default value is HTTP1
.
HTTP1
.TargetGroupProtocolVersion
public TargetGroupConfig withProtocolVersion(String protocolVersion)
The protocol version. Default value is HTTP1
.
protocolVersion
- The protocol version. Default value is HTTP1
.TargetGroupProtocolVersion
public TargetGroupConfig withProtocolVersion(TargetGroupProtocolVersion protocolVersion)
The protocol version. Default value is HTTP1
.
protocolVersion
- The protocol version. Default value is HTTP1
.TargetGroupProtocolVersion
public void setVpcIdentifier(String vpcIdentifier)
The ID of the VPC.
vpcIdentifier
- The ID of the VPC.public String getVpcIdentifier()
The ID of the VPC.
public TargetGroupConfig withVpcIdentifier(String vpcIdentifier)
The ID of the VPC.
vpcIdentifier
- The ID of the VPC.public String toString()
toString
in class Object
Object.toString()
public TargetGroupConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.