Class CfnFirewallPropsMixin.SubnetMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.networkfirewall.CfnFirewallPropsMixin.SubnetMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewallPropsMixin.SubnetMappingProperty>
- Enclosing interface:
CfnFirewallPropsMixin.SubnetMappingProperty
@Stability(Stable)
public static final class CfnFirewallPropsMixin.SubnetMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFirewallPropsMixin.SubnetMappingProperty>
A builder for
CfnFirewallPropsMixin.SubnetMappingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ipAddressType(String ipAddressType) Sets the value ofCfnFirewallPropsMixin.SubnetMappingProperty.getIpAddressType()Sets the value ofCfnFirewallPropsMixin.SubnetMappingProperty.getSubnetId()subnetId(ISubnetRef subnetId) Sets the value ofCfnFirewallPropsMixin.SubnetMappingProperty.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipAddressType
@Stability(Stable) public CfnFirewallPropsMixin.SubnetMappingProperty.Builder ipAddressType(String ipAddressType) Sets the value ofCfnFirewallPropsMixin.SubnetMappingProperty.getIpAddressType()- Parameters:
ipAddressType- The subnet's IP address type. You can't change the IP address type after you create the subnet.- Returns:
this
-
subnetId
@Stability(Stable) public CfnFirewallPropsMixin.SubnetMappingProperty.Builder subnetId(String subnetId) Sets the value ofCfnFirewallPropsMixin.SubnetMappingProperty.getSubnetId()- Parameters:
subnetId- The unique identifier for the subnet.- Returns:
this
-
subnetId
@Stability(Stable) public CfnFirewallPropsMixin.SubnetMappingProperty.Builder subnetId(ISubnetRef subnetId) Sets the value ofCfnFirewallPropsMixin.SubnetMappingProperty.getSubnetId()- Parameters:
subnetId- The unique identifier for the subnet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFirewallPropsMixin.SubnetMappingProperty>- Returns:
- a new instance of
CfnFirewallPropsMixin.SubnetMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-