Class ProtectedItemResourceInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectedItemResourceInner

public final class ProtectedItemResourceInner extends com.azure.core.management.Resource
Base class for backup items.
  • Constructor Details

    • ProtectedItemResourceInner

      public ProtectedItemResourceInner()
      Creates an instance of ProtectedItemResourceInner class.
  • Method Details

    • properties

      public ProtectedItem properties()
      Get the properties property: ProtectedItemResource properties.
      Returns:
      the properties value.
    • withProperties

      public ProtectedItemResourceInner withProperties(ProtectedItem properties)
      Set the properties property: ProtectedItemResource properties.
      Parameters:
      properties - the properties value to set.
      Returns:
      the ProtectedItemResourceInner object itself.
    • etag

      public String etag()
      Get the etag property: Optional ETag.
      Returns:
      the etag value.
    • withEtag

      public ProtectedItemResourceInner withEtag(String etag)
      Set the etag property: Optional ETag.
      Parameters:
      etag - the etag value to set.
      Returns:
      the ProtectedItemResourceInner object itself.
    • withLocation

      public ProtectedItemResourceInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public ProtectedItemResourceInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.