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 Details

    • Builder

      public Builder()
  • Method Details

    • code

      @Stability(Stable) public AclIcmp.Builder code(Number code)
      Sets the value of AclIcmp.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

      @Stability(Stable) public AclIcmp.Builder type(Number type)
      Sets the value of AclIcmp.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

      @Stability(Stable) public AclIcmp build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<AclIcmp>
      Returns:
      a new instance of AclIcmp
      Throws:
      NullPointerException - if any required attribute was not provided