Interface CreateRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateRuleRequest.Builder,
,CreateRuleRequest> ElasticLoadBalancingV2Request.Builder
,SdkBuilder<CreateRuleRequest.Builder,
,CreateRuleRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<Action> actions) The actions.actions
(Consumer<Action.Builder>... actions) The actions.The actions.conditions
(Collection<RuleCondition> conditions) The conditions.conditions
(Consumer<RuleCondition.Builder>... conditions) The conditions.conditions
(RuleCondition... conditions) The conditions.listenerArn
(String listenerArn) The Amazon Resource Name (ARN) of the listener.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The rule priority.tags
(Collection<Tag> tags) The tags to assign to the rule.tags
(Consumer<Tag.Builder>... tags) The tags to assign to the rule.The tags to assign to the rule.transforms
(Collection<RuleTransform> transforms) The transforms to apply to requests that match this rule.transforms
(Consumer<RuleTransform.Builder>... transforms) The transforms to apply to requests that match this rule.transforms
(RuleTransform... transforms) The transforms to apply to requests that match this 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.services.elasticloadbalancingv2.model.ElasticLoadBalancingV2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
listenerArn
The Amazon Resource Name (ARN) of the listener.
- Parameters:
listenerArn
- The Amazon Resource Name (ARN) of the listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions.
- Parameters:
conditions
- The conditions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions.
- Parameters:
conditions
- The conditions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions.
This is a convenience method that creates an instance of theRuleCondition.Builder
avoiding the need to create one manually viaRuleCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconditions(List<RuleCondition>)
.- Parameters:
conditions
- a consumer that will call methods onRuleCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
priority
The rule priority. A listener can't have multiple rules with the same priority.
- Parameters:
priority
- The rule priority. A listener can't have multiple rules with the same priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions.
- Parameters:
actions
- The actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions.
- Parameters:
actions
- The actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions.
This is a convenience method that creates an instance of theAction.Builder
avoiding the need to create one manually viaAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(List<Action>)
.- Parameters:
actions
- a consumer that will call methods onAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to assign to the rule.
- Parameters:
tags
- The tags to assign to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to assign to the rule.
- Parameters:
tags
- The tags to assign to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to assign to the rule.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
transforms
The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform.
- Parameters:
transforms
- The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transforms
The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform.
- Parameters:
transforms
- The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transforms
The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform.
This is a convenience method that creates an instance of theRuleTransform.Builder
avoiding the need to create one manually viaRuleTransform.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totransforms(List<RuleTransform>)
.- Parameters:
transforms
- a consumer that will call methods onRuleTransform.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-