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 Details

  • Constructor Details

    • PublicNetRequest

      public PublicNetRequest()
  • Method Details

    • enableIpv4

      public PublicNetRequest enableIpv4(Boolean enableIpv4)
    • getEnableIpv4

      @Nullable public Boolean getEnableIpv4()
      Attach an IPv4 on the public NIC. If false, no IPv4 address will be attached. Defaults to true.
      Returns:
      enableIpv4
    • setEnableIpv4

      public void setEnableIpv4(Boolean enableIpv4)
    • enableIpv6

      public PublicNetRequest enableIpv6(Boolean enableIpv6)
    • getEnableIpv6

      @Nullable public Boolean getEnableIpv6()
      Attach an IPv6 on the public NIC. If false, no IPv6 address will be attached. Defaults to true.
      Returns:
      enableIpv6
    • setEnableIpv6

      public void setEnableIpv6(Boolean enableIpv6)
    • ipv4

      public PublicNetRequest ipv4(Long ipv4)
    • getIpv4

      @Nullable public Long 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

      public void setIpv4(Long ipv4)
    • ipv6

      public PublicNetRequest ipv6(Long ipv6)
    • getIpv6

      @Nullable public Long 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

      public void setIpv6(Long ipv6)
    • 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