Class RegionForOnlineOffline


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

      • RegionForOnlineOffline

        public RegionForOnlineOffline()
    • Method Detail

      • 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.