Class TargetGroupConfig
- java.lang.Object
-
- software.amazon.awssdk.services.vpclattice.model.TargetGroupConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetGroupConfig.Builder,TargetGroupConfig>
@Generated("software.amazon.awssdk:codegen") public final class TargetGroupConfig extends Object implements SdkPojo, Serializable, 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetGroupConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetGroupConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()HealthCheckConfighealthCheck()The health check configuration.IpAddressTypeipAddressType()The type of IP address used for the target group.StringipAddressTypeAsString()The type of IP address used for the target group.LambdaEventStructureVersionlambdaEventStructureVersion()The version of the event structure that your Lambda function receives.StringlambdaEventStructureVersionAsString()The version of the event structure that your Lambda function receives.Integerport()The port on which the targets are listening.TargetGroupProtocolprotocol()The protocol to use for routing traffic to the targets.StringprotocolAsString()The protocol to use for routing traffic to the targets.TargetGroupProtocolVersionprotocolVersion()The protocol version.StringprotocolVersionAsString()The protocol version.List<SdkField<?>>sdkFields()static Class<? extends TargetGroupConfig.Builder>serializableBuilderClass()TargetGroupConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvpcIdentifier()The ID of the VPC.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
healthCheck
public final HealthCheckConfig healthCheck()
The health check configuration. Not supported if the target group type is
LAMBDAorALB.- Returns:
- The health check configuration. Not supported if the target group type is
LAMBDAorALB.
-
ipAddressType
public final IpAddressType 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,
ipAddressTypewill 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:
IpAddressType
-
ipAddressTypeAsString
public final String 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,
ipAddressTypewill 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:
IpAddressType
-
lambdaEventStructureVersion
public final LambdaEventStructureVersion 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,
lambdaEventStructureVersionwill 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:
LambdaEventStructureVersion
-
lambdaEventStructureVersionAsString
public final String 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,
lambdaEventStructureVersionwill 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:
LambdaEventStructureVersion
-
port
public final 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.- 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
public final 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.If the service returns an enum value that is not available in the current SDK version,
protocolwill 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:
TargetGroupProtocol
-
protocolAsString
public final String 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,
protocolwill 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:
TargetGroupProtocol
-
protocolVersion
public final TargetGroupProtocolVersion 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,
protocolVersionwill 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:
TargetGroupProtocolVersion
-
protocolVersionAsString
public final String 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,
protocolVersionwill 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:
TargetGroupProtocolVersion
-
vpcIdentifier
public final String 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
public TargetGroupConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetGroupConfig.Builder,TargetGroupConfig>
-
builder
public static TargetGroupConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetGroupConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-