Class IpBlock.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<IpBlock>
    Enclosing interface:
    IpBlock

    @Stability(Stable)
    public static final class IpBlock.Builder
    extends Object
    implements software.amazon.jsii.Builder<IpBlock>
    A builder for IpBlock
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • cidr

        @Stability(Stable)
        public IpBlock.Builder cidr​(String cidr)
        Sets the value of IpBlock.getCidr()
        Parameters:
        cidr - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64". This parameter is required.
        Returns:
        this
      • except

        @Stability(Stable)
        public IpBlock.Builder except​(List<String> except)
        Sets the value of IpBlock.getExcept()
        Parameters:
        except - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range.
        Returns:
        this
      • build

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