Class AclIcmp.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.AclIcmp.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AclIcmp>
- Enclosing interface:
- AclIcmp
@Stability(Stable)
public static final class AclIcmp.Builder
extends Object
implements software.amazon.jsii.Builder<AclIcmp>
A builder for
AclIcmp-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAclIcmp.getCode()Sets the value ofAclIcmp.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofAclIcmp.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 ofAclIcmp.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 the CreateNetworkAclEntry protocol parameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AclIcmp>- Returns:
- a new instance of
AclIcmp - Throws:
NullPointerException- if any required attribute was not provided
-