Package cloud.dnation.hetznerclient
Class PublicNetRequest
java.lang.Object
cloud.dnation.hetznerclient.PublicNetRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-21T08:14:59.463226706Z[Etc/UTC]")
public class PublicNetRequest
extends Object
PublicNetRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenableIpv4(Boolean enableIpv4) enableIpv6(Boolean enableIpv6) booleanAttach an IPv4 on the public NIC.Attach an IPv6 on the public NIC.getIpv4()ID of the ipv4 Primary IP to use.getIpv6()ID of the ipv6 Primary IP to use.inthashCode()voidsetEnableIpv4(Boolean enableIpv4) voidsetEnableIpv6(Boolean enableIpv6) voidvoidtoString()
-
Field Details
-
SERIALIZED_NAME_ENABLE_IPV4
- See Also:
-
SERIALIZED_NAME_ENABLE_IPV6
- See Also:
-
SERIALIZED_NAME_IPV4
- See Also:
-
SERIALIZED_NAME_IPV6
- See Also:
-
-
Constructor Details
-
PublicNetRequest
public PublicNetRequest()
-
-
Method Details
-
enableIpv4
-
getEnableIpv4
Attach an IPv4 on the public NIC. If false, no IPv4 address will be attached. Defaults to true.- Returns:
- enableIpv4
-
setEnableIpv4
-
enableIpv6
-
getEnableIpv6
Attach an IPv6 on the public NIC. If false, no IPv6 address will be attached. Defaults to true.- Returns:
- enableIpv6
-
setEnableIpv6
-
ipv4
-
getIpv4
ID of the ipv4 Primary IP to use. If omitted and enable_ipv4 is true, a new ipv4 Primary IP will automatically be created.- Returns:
- ipv4
-
setIpv4
-
ipv6
-
getIpv6
ID of the ipv6 Primary IP to use. If omitted and enable_ipv6 is true, a new ipv6 Primary IP will automatically be created.- Returns:
- ipv6
-
setIpv6
-
equals
-
hashCode
public int hashCode() -
toString
-