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