Class NetworkListenerProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.patterns.NetworkListenerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkListenerProps>
- Enclosing interface:
- NetworkListenerProps
@Stability(Stable)
public static final class NetworkListenerProps.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkListenerProps>
A builder for
NetworkListenerProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofNetworkListenerProps.getName()
Sets the value ofNetworkListenerProps.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofNetworkListenerProps.getName()
- Parameters:
name
- Name of the listener. This parameter is required.- Returns:
this
-
port
Sets the value ofNetworkListenerProps.getPort()
- Parameters:
port
- The port on which the listener listens for requests.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NetworkListenerProps>
- Returns:
- a new instance of
NetworkListenerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-