Class CfnFirewall.SubnetMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnFirewall.SubnetMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewall.SubnetMappingProperty>
- Enclosing interface:
CfnFirewall.SubnetMappingProperty
@Stability(Stable)
public static final class CfnFirewall.SubnetMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFirewall.SubnetMappingProperty>
A builder for
CfnFirewall.SubnetMappingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ipAddressType(String ipAddressType) Sets the value ofCfnFirewall.SubnetMappingProperty.getIpAddressType()Sets the value ofCfnFirewall.SubnetMappingProperty.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetId
Sets the value ofCfnFirewall.SubnetMappingProperty.getSubnetId()- Parameters:
subnetId- The unique identifier for the subnet. This parameter is required.- Returns:
this
-
ipAddressType
@Stability(Stable) public CfnFirewall.SubnetMappingProperty.Builder ipAddressType(String ipAddressType) Sets the value ofCfnFirewall.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFirewall.SubnetMappingProperty>- Returns:
- a new instance of
CfnFirewall.SubnetMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-