Package cloud.dnation.hetznerclient
Class PublicNetRequest
- java.lang.Object
-
- cloud.dnation.hetznerclient.PublicNetRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-08-17T03:32:29.204871Z[Etc/UTC]") public class PublicNetRequest extends ObjectPublicNetRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ENABLE_IPV4static StringSERIALIZED_NAME_ENABLE_IPV6static StringSERIALIZED_NAME_IPV4static StringSERIALIZED_NAME_IPV6
-
Constructor Summary
Constructors Constructor Description PublicNetRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicNetRequestenableIpv4(Boolean enableIpv4)PublicNetRequestenableIpv6(Boolean enableIpv6)booleanequals(Object o)BooleangetEnableIpv4()Attach an IPv4 on the public NIC.BooleangetEnableIpv6()Attach an IPv6 on the public NIC.LonggetIpv4()ID of the ipv4 Primary IP to use.LonggetIpv6()ID of the ipv6 Primary IP to use.inthashCode()PublicNetRequestipv4(Long ipv4)PublicNetRequestipv6(Long ipv6)voidsetEnableIpv4(Boolean enableIpv4)voidsetEnableIpv6(Boolean enableIpv6)voidsetIpv4(Long ipv4)voidsetIpv6(Long ipv6)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_ENABLE_IPV4
public static final String SERIALIZED_NAME_ENABLE_IPV4
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLE_IPV6
public static final String SERIALIZED_NAME_ENABLE_IPV6
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IPV4
public static final String SERIALIZED_NAME_IPV4
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IPV6
public static final String SERIALIZED_NAME_IPV6
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
-