Class CfnListenerProps.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnListenerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerProps>
- Enclosing interface:
CfnListenerProps
@Stability(Stable)
public static final class CfnListenerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerProps>
A builder for
CfnListenerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultAction(IResolvable defaultAction) Sets the value ofCfnListenerProps.getDefaultAction()defaultAction(CfnListener.DefaultActionProperty defaultAction) Sets the value ofCfnListenerProps.getDefaultAction()Sets the value ofCfnListenerProps.getName()Sets the value ofCfnListenerProps.getPort()Sets the value ofCfnListenerProps.getProtocol()serviceIdentifier(String serviceIdentifier) Sets the value ofCfnListenerProps.getServiceIdentifier()Sets the value ofCfnListenerProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultAction
Sets the value ofCfnListenerProps.getDefaultAction()- Parameters:
defaultAction- The action for the default rule. This parameter is required. Each listener has a default rule. The default rule is used if no other rules match.- Returns:
this
-
defaultAction
@Stability(Stable) public CfnListenerProps.Builder defaultAction(CfnListener.DefaultActionProperty defaultAction) Sets the value ofCfnListenerProps.getDefaultAction()- Parameters:
defaultAction- The action for the default rule. This parameter is required. Each listener has a default rule. The default rule is used if no other rules match.- Returns:
this
-
protocol
Sets the value ofCfnListenerProps.getProtocol()- Parameters:
protocol- The listener protocol. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnListenerProps.getName()- 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.If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
- Returns:
this
-
port
Sets the value ofCfnListenerProps.getPort()- 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:
this
-
serviceIdentifier
Sets the value ofCfnListenerProps.getServiceIdentifier()- Parameters:
serviceIdentifier- The ID or ARN of the service.- Returns:
this
-
tags
Sets the value ofCfnListenerProps.getTags()- Parameters:
tags- The tags for the listener.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnListenerProps>- Returns:
- a new instance of
CfnListenerProps - Throws:
NullPointerException- if any required attribute was not provided
-