Class ProtectionPolicyResourceInner

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

public final class ProtectionPolicyResourceInner extends com.azure.core.management.Resource
Base class for backup policy. Workload-specific backup policies are derived from this class.
  • Constructor Details

    • ProtectionPolicyResourceInner

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

    • properties

      public ProtectionPolicy properties()
      Get the properties property: ProtectionPolicyResource properties.
      Returns:
      the properties value.
    • withProperties

      public ProtectionPolicyResourceInner withProperties(ProtectionPolicy properties)
      Set the properties property: ProtectionPolicyResource properties.
      Parameters:
      properties - the properties value to set.
      Returns:
      the ProtectionPolicyResourceInner object itself.
    • etag

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

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

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

      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.