Package cloud.dnation.hetznerclient
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDestinationIpsItem(String destinationIpsItem) addSourceIpsItem(String sourceIpsItem) description(String description) destinationIps(List<String> destinationIps) booleanDescription of the rule.List of permitted IPv4/IPv6 addresses for outgoing traffic.Traffic direction in which the rule should be applied to.getPort()Port or port range to apply the rule for.Network protocol to apply the rule for.List of permitted IPv4/IPv6 addresses for incoming traffic.inthashCode()voidsetDescription(String description) voidsetDestinationIps(List<String> destinationIps) voidsetDirection(String direction) voidvoidsetProtocol(String protocol) voidsetSourceIps(List<String> sourceIps) toString()
-
Field Details
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DIRECTION
- See Also:
-
SERIALIZED_NAME_PROTOCOL
- See Also:
-
SERIALIZED_NAME_PORT
- See Also:
-
SERIALIZED_NAME_DESTINATION_IPS
- See Also:
-
SERIALIZED_NAME_SOURCE_IPS
- See Also:
-
-
Constructor Details
-
FirewallRule
public FirewallRule()
-
-
Method Details
-
description
-
getDescription
Description of the rule.- Returns:
- description
-
setDescription
-
direction
-
getDirection
Traffic direction in which the rule should be applied to.- Returns:
- direction
-
setDirection
-
protocol
-
getProtocol
Network protocol to apply the rule for.- Returns:
- protocol
-
setProtocol
-
port
-
getPort
Port or port range to apply the rule for.- Returns:
- port
-
setPort
-
destinationIps
-
addDestinationIpsItem
-
getDestinationIps
List of permitted IPv4/IPv6 addresses for outgoing traffic.- Returns:
- destinationIps
-
setDestinationIps
-
sourceIps
-
addSourceIpsItem
-
getSourceIps
List of permitted IPv4/IPv6 addresses for incoming traffic.- Returns:
- sourceIps
-
setSourceIps
-
equals
-
hashCode
public int hashCode() -
toString
-