Class ResourceCore

  • Direct Known Subclasses:
    LocationBasedResource

    public class ResourceCore
    extends com.azure.core.management.ProxyResource
    The common properties for any resource, tracked or proxy.
    • Constructor Detail

      • ResourceCore

        public ResourceCore()
    • 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.