Class RegionForOnlineOffline

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

public final class RegionForOnlineOffline extends Object
Cosmos DB region to online or offline.
  • Constructor Details

    • RegionForOnlineOffline

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

    • region

      public String region()
      Get the region property: Cosmos DB region, with spaces between words and each word capitalized.
      Returns:
      the region value.
    • withRegion

      public RegionForOnlineOffline withRegion(String region)
      Set the region property: Cosmos DB region, with spaces between words and each word capitalized.
      Parameters:
      region - the region value to set.
      Returns:
      the RegionForOnlineOffline object itself.
    • validate

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