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()
securityGroupAllowsAllOutbound
(Boolean securityGroupAllowsAllOutbound) Deprecated.use `securityGroup` insteadsecurityGroupId
(String securityGroupId) Deprecated.use `securityGroup` instead
-
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
-
defaultPort
Sets the value ofApplicationListenerAttributes.getDefaultPort()
- Parameters:
defaultPort
- The default port on which this listener is listening.- 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.- Returns:
this
-
securityGroupAllowsAllOutbound
@Stability(Deprecated) @Deprecated public ApplicationListenerAttributes.Builder securityGroupAllowsAllOutbound(Boolean securityGroupAllowsAllOutbound) Deprecated.use `securityGroup` insteadSets the value ofApplicationListenerAttributes.getSecurityGroupAllowsAllOutbound()
- Parameters:
securityGroupAllowsAllOutbound
- Whether the imported security group allows all outbound traffic or not when imported using `securityGroupId`. Unless set tofalse
, no egress rules will be added to the security group.- Returns:
this
-
securityGroupId
@Stability(Deprecated) @Deprecated public ApplicationListenerAttributes.Builder securityGroupId(String securityGroupId) Deprecated.use `securityGroup` insteadSets the value ofApplicationListenerAttributes.getSecurityGroupId()
- Parameters:
securityGroupId
- Security group ID of the load balancer this listener is associated with.- 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
-