Class CreateFirewallRule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • tenantId

        public abstract CreateFirewallRule.Builder tenantId​(String tenantId)
        Parameters:
        tenantId - Owner of the firewall. Only admin users can specify a tenant_id other than its own.
        Returns:
        The CreateFirewallRule builder.
      • name

        public abstract CreateFirewallRule.Builder name​(String name)
        Parameters:
        name - Human readable name for the firewall (255 characters limit).
        Returns:
        The CreateFirewallRule builder.
      • description

        public abstract CreateFirewallRule.Builder description​(String description)
        Parameters:
        description - Human readable description for the firewall (1024 characters limit).
        Returns:
        The CreateFirewallRule builder.
      • shared

        public abstract CreateFirewallRule.Builder shared​(Boolean shared)
        Parameters:
        shared - When set to True makes this firewall policy visible to tenants other than its owner and can be used to associate with firewalls not owned by its tenant.
        Returns:
        The CreateFirewallRule builder.
      • firewallPolicyId

        public abstract CreateFirewallRule.Builder firewallPolicyId​(String firewallPolicyId)
        Parameters:
        firewallPolicyId - This is a read-only attribute that gets populated with the uuid of the firewall policy when this firewall rule is associated with a firewall policy. A firewall rule can be associated with only one firewall policy at a time. However, the association can be changed to a different firewall policy.
        Returns:
        The CreateFirewallRule builder.
      • protocol

        public abstract CreateFirewallRule.Builder protocol​(String protocol)
        Parameters:
        protocol - IP protocol (icmp, tcp, udp, None).
        Returns:
        The CreateFirewallRule builder.
      • ipVersion

        public abstract CreateFirewallRule.Builder ipVersion​(IpVersion ipVersion)
        Parameters:
        ipVersion - IP version (4, 6).
        Returns:
        The CreateFirewallRule builder.
      • sourceIpAddress

        public abstract CreateFirewallRule.Builder sourceIpAddress​(String sourceIpAddress)
        Parameters:
        sourceIpAddress - Source IP address or CIDR.
        Returns:
        The CreateFirewallRule builder.
      • destinationIpAddress

        public abstract CreateFirewallRule.Builder destinationIpAddress​(String destinationIpAddress)
        Parameters:
        destinationIpAddress - Destination IP address or CIDR.
        Returns:
        The CreateFirewallRule builder.
      • sourcePort

        public abstract CreateFirewallRule.Builder sourcePort​(String sourcePort)
        Parameters:
        sourcePort - Source port number or a range.
        Returns:
        The CreateFirewallRule builder.
      • destinationPort

        public abstract CreateFirewallRule.Builder destinationPort​(String destinationPort)
        Parameters:
        destinationPort - Destination port number or a range.
        Returns:
        The CreateFirewallRule builder.
      • position

        public abstract CreateFirewallRule.Builder position​(Integer position)
        Parameters:
        position - This is a read-only attribute that gets assigned to this rule when the rule is associated with a firewall policy. It indicates the position of this rule in that firewall policy.
        Returns:
        The CreateFirewallRule builder.
      • action

        public abstract CreateFirewallRule.Builder action​(String action)
        Parameters:
        action - Action to be performed on the traffic matching the rule (allow, deny).
        Returns:
        The CreateFirewallRule builder.
      • enabled

        public abstract CreateFirewallRule.Builder enabled​(Boolean enabled)
        Parameters:
        enabled - When set to False, disables this rule in the firewall policy. Facilitates selectively turning off rules without having to disassociate the rule from the firewall policy.
        Returns:
        The CreateFirewallRule builder.
      • getFirewallPolicyId

        @Nullable
        public abstract String getFirewallPolicyId()
      • getSourceIpAddress

        @Nullable
        public abstract String getSourceIpAddress()
      • getDestinationIpAddress

        @Nullable
        public abstract String getDestinationIpAddress()
      • getDestinationPort

        @Nullable
        public abstract String getDestinationPort()