Class ApplicationListenerAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApplicationListenerAttributes>
- Enclosing interface:
ApplicationListenerAttributes
@Stability(Stable)
public static final class ApplicationListenerAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ApplicationListenerAttributes>
A builder for
ApplicationListenerAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.defaultPort
(Number defaultPort) Sets the value ofApplicationListenerAttributes.getDefaultPort()
listenerArn
(String listenerArn) Sets the value ofApplicationListenerAttributes.getListenerArn()
securityGroup
(ISecurityGroup securityGroup) Sets the value ofApplicationListenerAttributes.getSecurityGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
listenerArn
Sets the value ofApplicationListenerAttributes.getListenerArn()
- Parameters:
listenerArn
- ARN of the listener. This parameter is required.- Returns:
this
-
securityGroup
@Stability(Stable) public ApplicationListenerAttributes.Builder securityGroup(ISecurityGroup securityGroup) Sets the value ofApplicationListenerAttributes.getSecurityGroup()
- Parameters:
securityGroup
- Security group of the load balancer this listener is associated with. This parameter is required.- Returns:
this
-
defaultPort
Sets the value ofApplicationListenerAttributes.getDefaultPort()
- Parameters:
defaultPort
- The default port on which this listener is listening.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApplicationListenerAttributes>
- Returns:
- a new instance of
ApplicationListenerAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-