Class IpAllowlist.Builder

  • Enclosing class:
    IpAllowlist

    public static final class IpAllowlist.Builder
    extends java.lang.Object
    • Method Detail

      • type

        public IpAllowlist.Builder type​(java.util.Optional<java.lang.String> type)

        String representing the object's type. Always has the value ip_allowlist.

      • enabled

        public IpAllowlist.Builder enabled​(java.util.Optional<java.lang.Boolean> enabled)

        Whether the IP allowlist is enabled for the workspace.

      • ipAllowlist

        public IpAllowlist.Builder ipAllowlist​(java.util.Optional<java.util.List<java.lang.String>> ipAllowlist)

        List of allowed IP addresses and/or IP ranges in CIDR notation. Examples:

        • Single IP: 192.168.0.1
        • IP range: 192.168.0.1/24 (allows 192.168.0.0 - 192.168.0.255)
      • ipAllowlist

        public IpAllowlist.Builder ipAllowlist​(java.util.List<java.lang.String> ipAllowlist)