Class TargetGroupConfig
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<TargetGroupConfig.Builder,
TargetGroupConfig>
Describes the configuration of a target group.
For more information, see Target groups in the Amazon VPC Lattice User Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetGroupConfig.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final HealthCheckConfig
The health check configuration.final IpAddressType
The type of IP address used for the target group.final String
The type of IP address used for the target group.The version of the event structure that your Lambda function receives.final String
The version of the event structure that your Lambda function receives.final Integer
port()
The port on which the targets are listening.final TargetGroupProtocol
protocol()
The protocol to use for routing traffic to the targets.final String
The protocol to use for routing traffic to the targets.The protocol version.final String
The protocol version.static Class
<? extends TargetGroupConfig.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
The ID of the VPC.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
healthCheck
The health check configuration. Not supported if the target group type is
LAMBDA
orALB
.- Returns:
- The health check configuration. Not supported if the target group type is
LAMBDA
orALB
.
-
ipAddressType
The type of IP address used for the target group. Supported only if the target group type is
IP
. The default isIPV4
.If the service returns an enum value that is not available in the current SDK version,
ipAddressType
will returnIpAddressType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromipAddressTypeAsString()
.- Returns:
- The type of IP address used for the target group. Supported only if the target group type is
IP
. The default isIPV4
. - See Also:
-
ipAddressTypeAsString
The type of IP address used for the target group. Supported only if the target group type is
IP
. The default isIPV4
.If the service returns an enum value that is not available in the current SDK version,
ipAddressType
will returnIpAddressType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromipAddressTypeAsString()
.- Returns:
- The type of IP address used for the target group. Supported only if the target group type is
IP
. The default isIPV4
. - See Also:
-
lambdaEventStructureVersion
The version of the event structure that your Lambda function receives. Supported only if the target group type is
LAMBDA
. The default isV1
.If the service returns an enum value that is not available in the current SDK version,
lambdaEventStructureVersion
will returnLambdaEventStructureVersion.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlambdaEventStructureVersionAsString()
.- Returns:
- The version of the event structure that your Lambda function receives. Supported only if the target group
type is
LAMBDA
. The default isV1
. - See Also:
-
lambdaEventStructureVersionAsString
The version of the event structure that your Lambda function receives. Supported only if the target group type is
LAMBDA
. The default isV1
.If the service returns an enum value that is not available in the current SDK version,
lambdaEventStructureVersion
will returnLambdaEventStructureVersion.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlambdaEventStructureVersionAsString()
.- Returns:
- The version of the event structure that your Lambda function receives. Supported only if the target group
type is
LAMBDA
. The default isV1
. - See Also:
-
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
.- Returns:
- 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
.
-
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
.If the service returns an enum value that is not available in the current SDK version,
protocol
will returnTargetGroupProtocol.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromprotocolAsString()
.- Returns:
- 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
. - See Also:
-
protocolAsString
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
.If the service returns an enum value that is not available in the current SDK version,
protocol
will returnTargetGroupProtocol.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromprotocolAsString()
.- Returns:
- 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
. - See Also:
-
protocolVersion
The protocol version. The default is
HTTP1
. Not supported if the target group type isLAMBDA
.If the service returns an enum value that is not available in the current SDK version,
protocolVersion
will returnTargetGroupProtocolVersion.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromprotocolVersionAsString()
.- Returns:
- The protocol version. The default is
HTTP1
. Not supported if the target group type isLAMBDA
. - See Also:
-
protocolVersionAsString
The protocol version. The default is
HTTP1
. Not supported if the target group type isLAMBDA
.If the service returns an enum value that is not available in the current SDK version,
protocolVersion
will returnTargetGroupProtocolVersion.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromprotocolVersionAsString()
.- Returns:
- The protocol version. The default is
HTTP1
. Not supported if the target group type isLAMBDA
. - See Also:
-
vpcIdentifier
The ID of the VPC. Not supported if the target group type is
LAMBDA
.- Returns:
- The ID of the VPC. Not supported if the target group type is
LAMBDA
.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<TargetGroupConfig.Builder,
TargetGroupConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-