Interface CreateTargetGroupRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTargetGroupRequest.Builder,CreateTargetGroupRequest>,SdkBuilder<CreateTargetGroupRequest.Builder,CreateTargetGroupRequest>,SdkPojo,SdkRequest.Builder,VpcLatticeRequest.Builder
- Enclosing class:
- CreateTargetGroupRequest
public static interface CreateTargetGroupRequest.Builder extends VpcLatticeRequest.Builder, SdkPojo, CopyableBuilder<CreateTargetGroupRequest.Builder,CreateTargetGroupRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.services.vpclattice.model.VpcLatticeRequest.Builder
build
-
-
-
-
Method Detail
-
clientToken
CreateTargetGroupRequest.Builder clientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
config
CreateTargetGroupRequest.Builder config(TargetGroupConfig config)
The target group configuration.
- Parameters:
config- The target group configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
config
default CreateTargetGroupRequest.Builder config(Consumer<TargetGroupConfig.Builder> config)
The target group configuration.
This is a convenience method that creates an instance of theTargetGroupConfig.Builderavoiding the need to create one manually viaTargetGroupConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfig(TargetGroupConfig).- Parameters:
config- a consumer that will call methods onTargetGroupConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
config(TargetGroupConfig)
-
name
CreateTargetGroupRequest.Builder name(String name)
The name of the target group. The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
- Parameters:
name- The name of the target group. The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateTargetGroupRequest.Builder tags(Map<String,String> tags)
The tags for the target group.
- Parameters:
tags- The tags for the target group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
CreateTargetGroupRequest.Builder type(String type)
The type of target group.
- Parameters:
type- The type of target group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetGroupType,TargetGroupType
-
type
CreateTargetGroupRequest.Builder type(TargetGroupType type)
The type of target group.
- Parameters:
type- The type of target group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetGroupType,TargetGroupType
-
overrideConfiguration
CreateTargetGroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateTargetGroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-