java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.recoveryservices.models.PatchTrackedResource
com.azure.resourcemanager.recoveryservices.models.PatchVault

public final class PatchVault extends PatchTrackedResource
Patch Resource information, as returned by the resource provider.
  • Constructor Details

    • PatchVault

      public PatchVault()
  • Method Details

    • properties

      public VaultProperties properties()
      Get the properties property: Properties of the vault.
      Returns:
      the properties value.
    • withProperties

      public PatchVault withProperties(VaultProperties properties)
      Set the properties property: Properties of the vault.
      Parameters:
      properties - the properties value to set.
      Returns:
      the PatchVault object itself.
    • sku

      public Sku sku()
      Get the sku property: Identifies the unique system identifier for each Azure resource.
      Returns:
      the sku value.
    • withSku

      public PatchVault withSku(Sku sku)
      Set the sku property: Identifies the unique system identifier for each Azure resource.
      Parameters:
      sku - the sku value to set.
      Returns:
      the PatchVault object itself.
    • identity

      public IdentityData identity()
      Get the identity property: Identity for the resource.
      Returns:
      the identity value.
    • withIdentity

      public PatchVault withIdentity(IdentityData identity)
      Set the identity property: Identity for the resource.
      Parameters:
      identity - the identity value to set.
      Returns:
      the PatchVault object itself.
    • withLocation

      public PatchVault withLocation(String location)
      Set the location property: Resource location.
      Overrides:
      withLocation in class PatchTrackedResource
      Parameters:
      location - the location value to set.
      Returns:
      the PatchTrackedResource object itself.
    • withTags

      public PatchVault withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Overrides:
      withTags in class PatchTrackedResource
      Parameters:
      tags - the tags value to set.
      Returns:
      the PatchTrackedResource object itself.
    • withEtag

      public PatchVault withEtag(String etag)
      Set the etag property: Optional ETag.
      Overrides:
      withEtag in class PatchTrackedResource
      Parameters:
      etag - the etag value to set.
      Returns:
      the PatchTrackedResource object itself.
    • validate

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