Class LocationResource
- java.lang.Object
-
- com.azure.resourcemanager.communication.models.LocationResource
-
public class LocationResource extends Object
An ARM resource with its own location (not a global or an inherited location).
-
-
Constructor Summary
Constructors Constructor Description LocationResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
location()
Get the location property: The Azure location where the CommunicationService is running.void
validate()
Validates the instance.LocationResource
withLocation(String location)
Set the location property: The Azure location where the CommunicationService is running.
-
-
-
Method Detail
-
location
public String location()
Get the location property: The Azure location where the CommunicationService is running.- Returns:
- the location value.
-
withLocation
public LocationResource withLocation(String location)
Set the location property: The Azure location where the CommunicationService is running.- Parameters:
location
- the location value to set.- Returns:
- the LocationResource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-