Class IpVersions

java.lang.Object
com.azure.core.util.ExpandableStringEnum<IpVersions>
com.azure.resourcemanager.compute.models.IpVersions
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class IpVersions extends com.azure.core.util.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

    Fields
    Modifier and Type
    Field
    Description
    static final IpVersions
    Static value IPv4 for IpVersions.
    static final IpVersions
    Static value IPv6 for IpVersions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static IpVersions
    Creates or finds a IpVersions from its string representation.
    Gets known IpVersions values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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

  • 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<IpVersions> values()
      Gets known IpVersions values.
      Returns:
      known IpVersions values.