Class ApplicationLoadBalancerAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancerAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApplicationLoadBalancerAttributes>
- Enclosing interface:
ApplicationLoadBalancerAttributes
@Stability(Stable)
public static final class ApplicationLoadBalancerAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ApplicationLoadBalancerAttributes>
A builder for
ApplicationLoadBalancerAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.loadBalancerArn
(String loadBalancerArn) Sets the value ofApplicationLoadBalancerAttributes.getLoadBalancerArn()
loadBalancerCanonicalHostedZoneId
(String loadBalancerCanonicalHostedZoneId) Sets the value ofApplicationLoadBalancerAttributes.getLoadBalancerCanonicalHostedZoneId()
loadBalancerDnsName
(String loadBalancerDnsName) Sets the value ofApplicationLoadBalancerAttributes.getLoadBalancerDnsName()
securityGroupAllowsAllOutbound
(Boolean securityGroupAllowsAllOutbound) Sets the value ofApplicationLoadBalancerAttributes.getSecurityGroupAllowsAllOutbound()
securityGroupId
(String securityGroupId) Sets the value ofApplicationLoadBalancerAttributes.getSecurityGroupId()
Sets the value ofApplicationLoadBalancerAttributes.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
loadBalancerArn
@Stability(Stable) public ApplicationLoadBalancerAttributes.Builder loadBalancerArn(String loadBalancerArn) Sets the value ofApplicationLoadBalancerAttributes.getLoadBalancerArn()
- Parameters:
loadBalancerArn
- ARN of the load balancer. This parameter is required.- Returns:
this
-
securityGroupId
@Stability(Stable) public ApplicationLoadBalancerAttributes.Builder securityGroupId(String securityGroupId) Sets the value ofApplicationLoadBalancerAttributes.getSecurityGroupId()
- Parameters:
securityGroupId
- ID of the load balancer's security group. This parameter is required.- Returns:
this
-
loadBalancerCanonicalHostedZoneId
@Stability(Stable) public ApplicationLoadBalancerAttributes.Builder loadBalancerCanonicalHostedZoneId(String loadBalancerCanonicalHostedZoneId) Sets the value ofApplicationLoadBalancerAttributes.getLoadBalancerCanonicalHostedZoneId()
- Parameters:
loadBalancerCanonicalHostedZoneId
- The canonical hosted zone ID of this load balancer.- Returns:
this
-
loadBalancerDnsName
@Stability(Stable) public ApplicationLoadBalancerAttributes.Builder loadBalancerDnsName(String loadBalancerDnsName) Sets the value ofApplicationLoadBalancerAttributes.getLoadBalancerDnsName()
- Parameters:
loadBalancerDnsName
- The DNS name of this load balancer.- Returns:
this
-
securityGroupAllowsAllOutbound
@Stability(Stable) public ApplicationLoadBalancerAttributes.Builder securityGroupAllowsAllOutbound(Boolean securityGroupAllowsAllOutbound) Sets the value ofApplicationLoadBalancerAttributes.getSecurityGroupAllowsAllOutbound()
- Parameters:
securityGroupAllowsAllOutbound
- Whether the security group allows all outbound traffic or not. Unless set tofalse
, no egress rules will be added to the security group.- Returns:
this
-
vpc
Sets the value ofApplicationLoadBalancerAttributes.getVpc()
- Parameters:
vpc
- The VPC this load balancer has been created in, if available.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApplicationLoadBalancerAttributes>
- Returns:
- a new instance of
ApplicationLoadBalancerAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-