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. The default rule is used if no other rules match.
- Parameters:
defaultAction- The action for the default rule. Each listener has a default rule. The default rule is used if no other rules match.- 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. The default rule is used if no other rules match.
This is a convenience method that creates an instance of theRuleAction.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 1 to 65535. For HTTP, the default is 80. For HTTPS, the default is 443.
- Parameters:
port- The listener port. You can specify a value from 1 to 65535. For HTTP, the default is 80. For HTTPS, the default is 443.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
CreateListenerRequest.Builder protocol(String protocol)
The listener protocol.
- Parameters:
protocol- The listener protocol.- 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.
- Parameters:
protocol- The listener protocol.- 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
-
-