Interface CreateListenerRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>,SdkBuilder<CreateListenerRequest.Builder,CreateListenerRequest>,SdkPojo,SdkRequest.Builder,VpcLatticeRequest.Builder
- Enclosing class:
- CreateListenerRequest
public static interface CreateListenerRequest.Builder extends VpcLatticeRequest.Builder, SdkPojo, CopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>
-
-
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
CreateListenerRequest.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.
-
defaultAction
CreateListenerRequest.Builder defaultAction(RuleAction defaultAction)
The action for the default rule. Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. 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:
defaultAction- The action for the default rule. Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. 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.
-
defaultAction
default CreateListenerRequest.Builder defaultAction(Consumer<RuleAction.Builder> defaultAction)
The action for the default rule. Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. 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 todefaultAction(RuleAction).- Parameters:
defaultAction- 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:
defaultAction(RuleAction)
-
name
CreateListenerRequest.Builder name(String name)
The name of the listener. A listener name must be unique within a service. 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 listener. A listener name must be unique within a service. 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.
-
port
CreateListenerRequest.Builder port(Integer port)
The listener port. You can specify a value from
1to65535. For HTTP, the default is80. For HTTPS, the default is443.- Parameters:
port- The listener port. You can specify a value from1to65535. For HTTP, the default is80. For HTTPS, the default is443.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
CreateListenerRequest.Builder protocol(String protocol)
The listener protocol HTTP or HTTPS.
- Parameters:
protocol- The listener protocol HTTP or HTTPS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ListenerProtocol,ListenerProtocol
-
protocol
CreateListenerRequest.Builder protocol(ListenerProtocol protocol)
The listener protocol HTTP or HTTPS.
- Parameters:
protocol- The listener protocol HTTP or HTTPS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ListenerProtocol,ListenerProtocol
-
serviceIdentifier
CreateListenerRequest.Builder serviceIdentifier(String 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
CreateListenerRequest.Builder tags(Map<String,String> tags)
The tags for the listener.
- Parameters:
tags- The tags for the listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateListenerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateListenerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-