Class CfnLoadBalancer.PoliciesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.PoliciesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoadBalancer.PoliciesProperty>
- Enclosing interface:
CfnLoadBalancer.PoliciesProperty
@Stability(Stable)
public static final class CfnLoadBalancer.PoliciesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoadBalancer.PoliciesProperty>
A builder for
CfnLoadBalancer.PoliciesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(List<? extends Object> attributes) Sets the value ofCfnLoadBalancer.PoliciesProperty.getAttributes()attributes(IResolvable attributes) Sets the value ofCfnLoadBalancer.PoliciesProperty.getAttributes()build()Builds the configured instance.instancePorts(List<String> instancePorts) Sets the value ofCfnLoadBalancer.PoliciesProperty.getInstancePorts()loadBalancerPorts(List<String> loadBalancerPorts) Sets the value ofCfnLoadBalancer.PoliciesProperty.getLoadBalancerPorts()policyName(String policyName) Sets the value ofCfnLoadBalancer.PoliciesProperty.getPolicyName()policyType(String policyType) Sets the value ofCfnLoadBalancer.PoliciesProperty.getPolicyType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
@Stability(Stable) public CfnLoadBalancer.PoliciesProperty.Builder attributes(List<? extends Object> attributes) Sets the value ofCfnLoadBalancer.PoliciesProperty.getAttributes()- Parameters:
attributes- The policy attributes. This parameter is required.- Returns:
this
-
attributes
@Stability(Stable) public CfnLoadBalancer.PoliciesProperty.Builder attributes(IResolvable attributes) Sets the value ofCfnLoadBalancer.PoliciesProperty.getAttributes()- Parameters:
attributes- The policy attributes. This parameter is required.- Returns:
this
-
policyName
Sets the value ofCfnLoadBalancer.PoliciesProperty.getPolicyName()- Parameters:
policyName- The name of the policy. This parameter is required.- Returns:
this
-
policyType
Sets the value ofCfnLoadBalancer.PoliciesProperty.getPolicyType()- Parameters:
policyType- The name of the policy type. This parameter is required.- Returns:
this
-
instancePorts
@Stability(Stable) public CfnLoadBalancer.PoliciesProperty.Builder instancePorts(List<String> instancePorts) Sets the value ofCfnLoadBalancer.PoliciesProperty.getInstancePorts()- Parameters:
instancePorts- The instance ports for the policy. Required only for some policy types.- Returns:
this
-
loadBalancerPorts
@Stability(Stable) public CfnLoadBalancer.PoliciesProperty.Builder loadBalancerPorts(List<String> loadBalancerPorts) Sets the value ofCfnLoadBalancer.PoliciesProperty.getLoadBalancerPorts()- Parameters:
loadBalancerPorts- The load balancer ports for the policy. Required only for some policy types.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLoadBalancer.PoliciesProperty>- Returns:
- a new instance of
CfnLoadBalancer.PoliciesProperty - Throws:
NullPointerException- if any required attribute was not provided
-