Class RegionForOnlineOffline
java.lang.Object
com.azure.resourcemanager.cosmos.models.RegionForOnlineOffline
Cosmos DB region to online or offline.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RegionForOnlineOffline class. -
Method Summary
Modifier and TypeMethodDescriptionregion()Get the region property: Cosmos DB region, with spaces between words and each word capitalized.voidvalidate()Validates the instance.withRegion(String region) Set the region property: Cosmos DB region, with spaces between words and each word capitalized.
-
Constructor Details
-
RegionForOnlineOffline
public RegionForOnlineOffline()Creates an instance of RegionForOnlineOffline class.
-
-
Method Details
-
region
Get the region property: Cosmos DB region, with spaces between words and each word capitalized.- Returns:
- the region value.
-
withRegion
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.
-