Class FirewallRule

java.lang.Object
cloud.dnation.hetznerclient.FirewallRule

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-09-21T08:14:59.463226706Z[Etc/UTC]") public class FirewallRule extends Object
FirewallRule
  • Field Details

  • Constructor Details

    • FirewallRule

      public FirewallRule()
  • Method Details

    • description

      public FirewallRule description(String description)
    • getDescription

      @Nullable public String getDescription()
      Description of the rule.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • direction

      public FirewallRule direction(String direction)
    • getDirection

      @Nullable public String getDirection()
      Traffic direction in which the rule should be applied to.
      Returns:
      direction
    • setDirection

      public void setDirection(String direction)
    • protocol

      public FirewallRule protocol(String protocol)
    • getProtocol

      @Nullable public String getProtocol()
      Network protocol to apply the rule for.
      Returns:
      protocol
    • setProtocol

      public void setProtocol(String protocol)
    • port

      public FirewallRule port(String port)
    • getPort

      @Nullable public String getPort()
      Port or port range to apply the rule for.
      Returns:
      port
    • setPort

      public void setPort(String port)
    • destinationIps

      public FirewallRule destinationIps(List<String> destinationIps)
    • addDestinationIpsItem

      public FirewallRule addDestinationIpsItem(String destinationIpsItem)
    • getDestinationIps

      @Nullable public List<String> getDestinationIps()
      List of permitted IPv4/IPv6 addresses for outgoing traffic.
      Returns:
      destinationIps
    • setDestinationIps

      public void setDestinationIps(List<String> destinationIps)
    • sourceIps

      public FirewallRule sourceIps(List<String> sourceIps)
    • addSourceIpsItem

      public FirewallRule addSourceIpsItem(String sourceIpsItem)
    • getSourceIps

      @Nullable public List<String> getSourceIps()
      List of permitted IPv4/IPv6 addresses for incoming traffic.
      Returns:
      sourceIps
    • setSourceIps

      public void setSourceIps(List<String> sourceIps)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object