Interface Snapshot


  • public interface Snapshot
    An immutable client-side representation of Snapshot.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  Snapshot.Definition
      The entirety of the Snapshot definition.
      static interface  Snapshot.DefinitionStages
      The Snapshot definition stages.
    • Method Detail

      • id

        String id()
        Gets the id property: Fully qualified resource Id for the resource.
        Returns:
        the id value.
      • name

        String name()
        Gets the name property: The name of the resource.
        Returns:
        the name value.
      • type

        String type()
        Gets the type property: The type of the resource.
        Returns:
        the type value.
      • location

        String location()
        Gets the location property: Resource location.
        Returns:
        the location value.
      • snapshotId

        String snapshotId()
        Gets the snapshotId property: snapshotId UUID v4 used to identify the Snapshot.
        Returns:
        the snapshotId value.
      • created

        OffsetDateTime created()
        Gets the created property: name The creation date of the snapshot.
        Returns:
        the created value.
      • provisioningState

        String provisioningState()
        Gets the provisioningState property: Azure lifecycle management.
        Returns:
        the provisioningState value.
      • region

        com.azure.core.management.Region region()
        Gets the region of the resource.
        Returns:
        the region of the resource.
      • regionName

        String regionName()
        Gets the name of the resource region.
        Returns:
        the name of the resource region.
      • innerModel

        SnapshotInner innerModel()
        Gets the inner com.azure.resourcemanager.netapp.fluent.models.SnapshotInner object.
        Returns:
        the inner object.
      • refresh

        Snapshot refresh()
        Refreshes the resource to sync with Azure.
        Returns:
        the refreshed resource.
      • refresh

        Snapshot refresh​(com.azure.core.util.Context context)
        Refreshes the resource to sync with Azure.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        the refreshed resource.
      • restoreFiles

        void restoreFiles​(SnapshotRestoreFiles body)
        Restore the specified files from the specified snapshot to the active filesystem.
        Parameters:
        body - Restore payload supplied in the body of the operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • restoreFiles

        void restoreFiles​(SnapshotRestoreFiles body,
                          com.azure.core.util.Context context)
        Restore the specified files from the specified snapshot to the active filesystem.
        Parameters:
        body - Restore payload supplied in the body of the operation.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.