Class ApiProperties

java.lang.Object
com.azure.resourcemanager.cosmos.models.ApiProperties

public final class ApiProperties extends Object
The ApiProperties model.
  • Constructor Details

    • ApiProperties

      public ApiProperties()
      Creates an instance of ApiProperties class.
  • Method Details

    • serverVersion

      public ServerVersion serverVersion()
      Get the serverVersion property: Describes the ServerVersion of an a MongoDB account.
      Returns:
      the serverVersion value.
    • withServerVersion

      public ApiProperties withServerVersion(ServerVersion serverVersion)
      Set the serverVersion property: Describes the ServerVersion of an a MongoDB account.
      Parameters:
      serverVersion - the serverVersion value to set.
      Returns:
      the ApiProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.