Interface CreateRuleResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateRuleResponse.Builder,CreateRuleResponse>,SdkBuilder<CreateRuleResponse.Builder,CreateRuleResponse>,SdkPojo,SdkResponse.Builder,VpcLatticeResponse.Builder
- Enclosing class:
- CreateRuleResponse
public static interface CreateRuleResponse.Builder extends VpcLatticeResponse.Builder, SdkPojo, CopyableBuilder<CreateRuleResponse.Builder,CreateRuleResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateRuleResponse.Builderaction(Consumer<RuleAction.Builder> action)The rule action.CreateRuleResponse.Builderaction(RuleAction action)The rule action.CreateRuleResponse.Builderarn(String arn)The Amazon Resource Name (ARN) of the rule.CreateRuleResponse.Builderid(String id)The ID of the rule.default CreateRuleResponse.Buildermatch(Consumer<RuleMatch.Builder> match)The rule match.CreateRuleResponse.Buildermatch(RuleMatch match)The rule match.CreateRuleResponse.Buildername(String name)The name of the rule.CreateRuleResponse.Builderpriority(Integer priority)The priority assigned to the rule.-
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.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.vpclattice.model.VpcLatticeResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
action
CreateRuleResponse.Builder action(RuleAction action)
The rule action. Each rule must include exactly one of the following types of actions:
forwardorfixed-response, and it must be the last action to be performed.- Parameters:
action- The rule action. Each rule must include exactly one of the following types of actions:forwardorfixed-response, and it must be the last action to be performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
default CreateRuleResponse.Builder action(Consumer<RuleAction.Builder> action)
The rule action. Each rule must include exactly one of the following types of actions:
This is a convenience method that creates an instance of theforwardorfixed-response, and it must be the last action to be performed.RuleAction.Builderavoiding the need to create one manually viaRuleAction.builder().When the
Consumercompletes,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:
action(RuleAction)
-
arn
CreateRuleResponse.Builder arn(String arn)
The Amazon Resource Name (ARN) of the rule.
- Parameters:
arn- The Amazon Resource Name (ARN) of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
CreateRuleResponse.Builder id(String id)
The ID of the rule.
- Parameters:
id- The ID of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
match
CreateRuleResponse.Builder match(RuleMatch match)
The rule match. The
RuleMatchmust be anHttpMatch. This means that the rule should be an exact match on HTTP constraints which are made up of the HTTP method, path, and header.- Parameters:
match- The rule match. TheRuleMatchmust be anHttpMatch. This means that the rule should be an exact match on HTTP constraints which are made up of the HTTP method, path, and header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
match
default CreateRuleResponse.Builder match(Consumer<RuleMatch.Builder> match)
The rule match. The
This is a convenience method that creates an instance of theRuleMatchmust be anHttpMatch. This means that the rule should be an exact match on HTTP constraints which are made up of the HTTP method, path, and header.RuleMatch.Builderavoiding the need to create one manually viaRuleMatch.builder().When the
Consumercompletes,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:
match(RuleMatch)
-
name
CreateRuleResponse.Builder name(String name)
The name of the rule.
- Parameters:
name- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priority
CreateRuleResponse.Builder priority(Integer priority)
The priority assigned to the rule. The lower the priority number the higher the priority.
- Parameters:
priority- The priority assigned to the rule. The lower the priority number the higher the priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-