Interface CreateTargetGroupRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateTargetGroupRequest.Builder,
,CreateTargetGroupRequest> SdkBuilder<CreateTargetGroupRequest.Builder,
,CreateTargetGroupRequest> SdkPojo
,SdkRequest.Builder
,VpcLatticeRequest.Builder
- Enclosing class:
CreateTargetGroupRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.default CreateTargetGroupRequest.Builder
config
(Consumer<TargetGroupConfig.Builder> config) The target group configuration.config
(TargetGroupConfig config) The target group configuration.The name of the target group.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The tags for the target group.The type of target group.type
(TargetGroupType type) The type of target group.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.services.vpclattice.model.VpcLatticeRequest.Builder
build
-
Method Details
-
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
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
The target group configuration.
This is a convenience method that creates an instance of theTargetGroupConfig.Builder
avoiding the need to create one manually viaTargetGroupConfig.builder()
.When the
Consumer
completes,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:
-
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
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
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:
-
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:
-
overrideConfiguration
CreateTargetGroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateTargetGroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-