Partilhar via


IpVersions Class

public final class IpVersions
extends ExpandableStringEnum<IpVersions>

Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.

Field Summary

Modifier and Type Field and Description
static final IpVersions IPV4

Static value IPv4 for IpVersions.

static final IpVersions IPV6

Static value IPv6 for IpVersions.

Constructor Summary

Constructor Description
IpVersions()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of IpVersions value.

Method Summary

Modifier and Type Method and Description
static IpVersions fromString(String name)

Creates or finds a IpVersions from its string representation.

static Collection<IpVersions> values()

Gets known IpVersions values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

IPV4

public static final IpVersions IPV4

Static value IPv4 for IpVersions.

IPV6

public static final IpVersions IPV6

Static value IPv6 for IpVersions.

Constructor Details

IpVersions

@Deprecated
public IpVersions()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of IpVersions value.

Method Details

fromString

public static IpVersions fromString(String name)

Creates or finds a IpVersions from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding IpVersions.

values

public static Collection values()

Gets known IpVersions values.

Returns:

known IpVersions values.

Applies to