Class CosmosExcludedRegions

java.lang.Object
com.azure.cosmos.CosmosExcludedRegions

public final class CosmosExcludedRegions extends Object
A class which encapsulates a set of excluded regions.
  • Constructor Details

    • CosmosExcludedRegions

      public CosmosExcludedRegions(Set<String> excludedRegions)
      Instantiates CosmosExcludedRegions.
      Parameters:
      excludedRegions - the set of regions to exclude.
      Throws:
      IllegalArgumentException - if excludedRegions is set as null.
  • Method Details

    • getExcludedRegions

      public Set<String> getExcludedRegions()
      Gets the immutable set of excluded regions.
      Returns:
      an immutable set of excluded regions.
    • toString

      public String toString()
      Overrides:
      toString in class Object