@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.
For more information, see Target groups in the Amazon VPC Lattice User Guide.
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()
The version of the event structure that your Lambda function receives.
|
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)
The version of the event structure that your Lambda function receives.
|
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)
The version of the event structure that your Lambda function receives.
|
TargetGroupConfig |
withLambdaEventStructureVersion(String lambdaEventStructureVersion)
The version of the event structure that your Lambda function receives.
|
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. Not supported if the target group type is LAMBDA
or ALB
.
healthCheck
- The health check configuration. Not supported if the target group type is LAMBDA
or
ALB
.public HealthCheckConfig getHealthCheck()
The health check configuration. Not supported if the target group type is LAMBDA
or ALB
.
LAMBDA
or
ALB
.public TargetGroupConfig withHealthCheck(HealthCheckConfig healthCheck)
The health check configuration. Not supported if the target group type is LAMBDA
or ALB
.
healthCheck
- The health check configuration. Not supported if the target group type is LAMBDA
or
ALB
.public void setIpAddressType(String ipAddressType)
The type of IP address used for the target group. Supported only if the target group type is IP
. The
default is IPV4
.
ipAddressType
- The type of IP address used for the target group. Supported only if the target group type is
IP
. The default is IPV4
.IpAddressType
public String getIpAddressType()
The type of IP address used for the target group. Supported only if the target group type is IP
. The
default is IPV4
.
IP
. The default is IPV4
.IpAddressType
public TargetGroupConfig withIpAddressType(String ipAddressType)
The type of IP address used for the target group. Supported only if the target group type is IP
. The
default is IPV4
.
ipAddressType
- The type of IP address used for the target group. Supported only if the target group type is
IP
. The default is IPV4
.IpAddressType
public TargetGroupConfig withIpAddressType(IpAddressType ipAddressType)
The type of IP address used for the target group. Supported only if the target group type is IP
. The
default is IPV4
.
ipAddressType
- The type of IP address used for the target group. Supported only if the target group type is
IP
. The default is IPV4
.IpAddressType
public void setLambdaEventStructureVersion(String lambdaEventStructureVersion)
The version of the event structure that your Lambda function receives. Supported only if the target group type is
LAMBDA
. The default is V1
.
lambdaEventStructureVersion
- The version of the event structure that your Lambda function receives. Supported only if the target group
type is LAMBDA
. The default is V1
.LambdaEventStructureVersion
public String getLambdaEventStructureVersion()
The version of the event structure that your Lambda function receives. Supported only if the target group type is
LAMBDA
. The default is V1
.
LAMBDA
. The default is V1
.LambdaEventStructureVersion
public TargetGroupConfig withLambdaEventStructureVersion(String lambdaEventStructureVersion)
The version of the event structure that your Lambda function receives. Supported only if the target group type is
LAMBDA
. The default is V1
.
lambdaEventStructureVersion
- The version of the event structure that your Lambda function receives. Supported only if the target group
type is LAMBDA
. The default is V1
.LambdaEventStructureVersion
public TargetGroupConfig withLambdaEventStructureVersion(LambdaEventStructureVersion lambdaEventStructureVersion)
The version of the event structure that your Lambda function receives. Supported only if the target group type is
LAMBDA
. The default is V1
.
lambdaEventStructureVersion
- The version of the event structure that your Lambda function receives. Supported only if the target group
type is LAMBDA
. The default is V1
.LambdaEventStructureVersion
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. Not
supported if the target group type is LAMBDA
.
port
- The port on which the targets are listening. For HTTP, the default is 80. For HTTPS, the default is 443.
Not supported if the target group type is LAMBDA
.public Integer getPort()
The port on which the targets are listening. For HTTP, the default is 80. For HTTPS, the default is 443. Not
supported if the target group type is LAMBDA
.
LAMBDA
.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. Not
supported if the target group type is LAMBDA
.
port
- The port on which the targets are listening. For HTTP, the default is 80. For HTTPS, the default is 443.
Not supported if the target group type is LAMBDA
.public void setProtocol(String protocol)
The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not
supported if the target group type is LAMBDA
.
protocol
- The protocol to use for routing traffic to the targets. The default is the protocol of the target group.
Not supported if the target group type is LAMBDA
.TargetGroupProtocol
public String getProtocol()
The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not
supported if the target group type is LAMBDA
.
LAMBDA
.TargetGroupProtocol
public TargetGroupConfig withProtocol(String protocol)
The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not
supported if the target group type is LAMBDA
.
protocol
- The protocol to use for routing traffic to the targets. The default is the protocol of the target group.
Not supported if the target group type is LAMBDA
.TargetGroupProtocol
public TargetGroupConfig withProtocol(TargetGroupProtocol protocol)
The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not
supported if the target group type is LAMBDA
.
protocol
- The protocol to use for routing traffic to the targets. The default is the protocol of the target group.
Not supported if the target group type is LAMBDA
.TargetGroupProtocol
public void setProtocolVersion(String protocolVersion)
The protocol version. The default is HTTP1
. Not supported if the target group type is
LAMBDA
.
protocolVersion
- The protocol version. The default is HTTP1
. Not supported if the target group type is
LAMBDA
.TargetGroupProtocolVersion
public String getProtocolVersion()
The protocol version. The default is HTTP1
. Not supported if the target group type is
LAMBDA
.
HTTP1
. Not supported if the target group type is
LAMBDA
.TargetGroupProtocolVersion
public TargetGroupConfig withProtocolVersion(String protocolVersion)
The protocol version. The default is HTTP1
. Not supported if the target group type is
LAMBDA
.
protocolVersion
- The protocol version. The default is HTTP1
. Not supported if the target group type is
LAMBDA
.TargetGroupProtocolVersion
public TargetGroupConfig withProtocolVersion(TargetGroupProtocolVersion protocolVersion)
The protocol version. The default is HTTP1
. Not supported if the target group type is
LAMBDA
.
protocolVersion
- The protocol version. The default is HTTP1
. Not supported if the target group type is
LAMBDA
.TargetGroupProtocolVersion
public void setVpcIdentifier(String vpcIdentifier)
The ID of the VPC. Not supported if the target group type is LAMBDA
.
vpcIdentifier
- The ID of the VPC. Not supported if the target group type is LAMBDA
.public String getVpcIdentifier()
The ID of the VPC. Not supported if the target group type is LAMBDA
.
LAMBDA
.public TargetGroupConfig withVpcIdentifier(String vpcIdentifier)
The ID of the VPC. Not supported if the target group type is LAMBDA
.
vpcIdentifier
- The ID of the VPC. Not supported if the target group type is LAMBDA
.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.