Class LocationBasedResource
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.healthcareapis.models.ResourceCore
-
- com.azure.resourcemanager.healthcareapis.models.LocationBasedResource
-
- Direct Known Subclasses:
IotFhirDestinationInner
,TaggedResource
public class LocationBasedResource extends ResourceCore
The common properties for any location based resource, tracked or proxy.
-
-
Constructor Summary
Constructors Constructor Description LocationBasedResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
location()
Get the location property: The resource location.void
validate()
Validates the instance.LocationBasedResource
withEtag(String etag)
Set the etag property: An etag associated with the resource, used for optimistic concurrency when editing it.LocationBasedResource
withLocation(String location)
Set the location property: The resource location.-
Methods inherited from class com.azure.resourcemanager.healthcareapis.models.ResourceCore
etag
-
-
-
-
Method Detail
-
location
public String location()
Get the location property: The resource location.- Returns:
- the location value.
-
withLocation
public LocationBasedResource withLocation(String location)
Set the location property: The resource location.- Parameters:
location
- the location value to set.- Returns:
- the LocationBasedResource object itself.
-
withEtag
public LocationBasedResource withEtag(String etag)
Set the etag property: An etag associated with the resource, used for optimistic concurrency when editing it.- Overrides:
withEtag
in classResourceCore
- Parameters:
etag
- the etag value to set.- Returns:
- the ResourceCore object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classResourceCore
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-