Interface CreateRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateRuleRequest.Builder,
,CreateRuleRequest> SdkBuilder<CreateRuleRequest.Builder,
,CreateRuleRequest> SdkPojo
,SdkRequest.Builder
,VpcLatticeRequest.Builder
- Enclosing class:
CreateRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateRuleRequest.Builder
action
(Consumer<RuleAction.Builder> action) The action for the default rule.action
(RuleAction action) The action for the default rule.clientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.listenerIdentifier
(String listenerIdentifier) The ID or Amazon Resource Name (ARN) of the listener.default CreateRuleRequest.Builder
match
(Consumer<RuleMatch.Builder> match) The rule match.The rule match.The name of the rule.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The priority assigned to the rule.serviceIdentifier
(String serviceIdentifier) The ID or Amazon Resource Name (ARN) of the service.The tags for the rule.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 Details
-
action
The action for the default rule.
- Parameters:
action
- The action for the default rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The action for the default rule.
This is a convenience method that creates an instance of theRuleAction.Builder
avoiding the need to create one manually viaRuleAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaction(RuleAction)
.- Parameters:
action
- a consumer that will call methods onRuleAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
listenerIdentifier
The ID or Amazon Resource Name (ARN) of the listener.
- Parameters:
listenerIdentifier
- The ID or Amazon Resource Name (ARN) of the listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
match
The rule match.
- Parameters:
match
- The rule match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
match
The rule match.
This is a convenience method that creates an instance of theRuleMatch.Builder
avoiding the need to create one manually viaRuleMatch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomatch(RuleMatch)
.- Parameters:
match
- a consumer that will call methods onRuleMatch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the rule. The name must be unique within the listener. 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 rule. The name must be unique within the listener. 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.
-
priority
The priority assigned to the rule. Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority.
- Parameters:
priority
- The priority assigned to the rule. Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceIdentifier
The ID or Amazon Resource Name (ARN) of the service.
- Parameters:
serviceIdentifier
- The ID or Amazon Resource Name (ARN) of the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the rule.
- Parameters:
tags
- The tags for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateRuleRequest.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
CreateRuleRequest.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.
-