Class CfnNetworkAclEntry.IcmpProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkAclEntry.IcmpProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkAclEntry.IcmpProperty>
- Enclosing interface:
CfnNetworkAclEntry.IcmpProperty
@Stability(Stable)
public static final class CfnNetworkAclEntry.IcmpProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkAclEntry.IcmpProperty>
A builder for
CfnNetworkAclEntry.IcmpProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnNetworkAclEntry.IcmpProperty.getCode()
Sets the value ofCfnNetworkAclEntry.IcmpProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofCfnNetworkAclEntry.IcmpProperty.getCode()
- Parameters:
code
- The Internet Control Message Protocol (ICMP) code. You can use -1 to specify all ICMP codes for the given ICMP type. Requirement is conditional: Required if you specify 1 (ICMP) for the protocol parameter.- Returns:
this
-
type
Sets the value ofCfnNetworkAclEntry.IcmpProperty.getType()
- Parameters:
type
- The Internet Control Message Protocol (ICMP) type. You can use -1 to specify all ICMP types. Conditional requirement: Required if you specify 1 (ICMP) for theCreateNetworkAclEntry
protocol parameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNetworkAclEntry.IcmpProperty>
- Returns:
- a new instance of
CfnNetworkAclEntry.IcmpProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-