Class AdditionalEgressRule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • description

        public AdditionalEgressRule.Builder description​(String description)
        Rule description.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • destinationCidr

        public AdditionalEgressRule.Builder destinationCidr​(String destinationCidr)
        Specifies the destination CIDR block the port should be opened for.

        Must be IPv4 only, and cannot be part of any private range from RFC 1918.

        Parameters:
        destinationCidr - the value to set
        Returns:
        this builder
      • maxDestinationPort

        public AdditionalEgressRule.Builder maxDestinationPort​(Integer maxDestinationPort)
        The maximum port number, which must not be less than the minimum port number.

        To specify a single port number, set both the min and max to the same value.

        Parameters:
        maxDestinationPort - the value to set
        Returns:
        this builder
      • minDestinationPort

        public AdditionalEgressRule.Builder minDestinationPort​(Integer minDestinationPort)
        The minimum port number, which must not be greater than the maximum port number.
        Parameters:
        minDestinationPort - the value to set
        Returns:
        this builder