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