Class ServerVersion

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

public final class ServerVersion extends com.azure.core.util.ExpandableStringEnum<ServerVersion>
Describes the version of the MongoDB account.
  • Field Details

    • THREE_TWO

      public static final ServerVersion THREE_TWO
      Static value 3.2 for ServerVersion.
    • THREE_SIX

      public static final ServerVersion THREE_SIX
      Static value 3.6 for ServerVersion.
    • FOUR_ZERO

      public static final ServerVersion FOUR_ZERO
      Static value 4.0 for ServerVersion.
    • FOUR_TWO

      public static final ServerVersion FOUR_TWO
      Static value 4.2 for ServerVersion.
    • FIVE_ZERO

      public static final ServerVersion FIVE_ZERO
      Static value 5.0 for ServerVersion.
    • SIX_ZERO

      public static final ServerVersion SIX_ZERO
      Static value 6.0 for ServerVersion.
    • SEVEN_ZERO

      public static final ServerVersion SEVEN_ZERO
      Static value 7.0 for ServerVersion.
  • Constructor Details

    • ServerVersion

      @Deprecated public ServerVersion()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of ServerVersion value.
  • Method Details

    • fromString

      public static ServerVersion fromString(String name)
      Creates or finds a ServerVersion from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding ServerVersion.
    • values

      public static Collection<ServerVersion> values()
      Gets known ServerVersion values.
      Returns:
      known ServerVersion values.