Interface ImmutabilityPolicy

All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel<ImmutabilityPolicyInner>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager<StorageManager>, com.azure.resourcemanager.resources.fluentcore.model.Indexable, com.azure.resourcemanager.resources.fluentcore.model.Refreshable<ImmutabilityPolicy>, com.azure.resourcemanager.resources.fluentcore.model.Updatable<ImmutabilityPolicy.Update>

public interface ImmutabilityPolicy extends com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel<ImmutabilityPolicyInner>, com.azure.resourcemanager.resources.fluentcore.model.Indexable, com.azure.resourcemanager.resources.fluentcore.model.Refreshable<ImmutabilityPolicy>, com.azure.resourcemanager.resources.fluentcore.model.Updatable<ImmutabilityPolicy.Update>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager<StorageManager>
Type representing ImmutabilityPolicy.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The entirety of the ImmutabilityPolicy definition.
    static interface 
    Grouping of ImmutabilityPolicy definition stages.
    static interface 
    The template for a ImmutabilityPolicy update operation, containing all the settings that can be modified.
    static interface 
    Grouping of ImmutabilityPolicy update stages.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the etag.
    void
    extend(int immutabilityPeriodSinceCreationInDays)
    Extends the immutability policy.
    extendAsync(int immutabilityPeriodSinceCreationInDays)
    Extends the immutability policy.
    id()
    Gets resource ID.
    int
    Gets the immutability period since creation in days.
    void
    Locks the immutability policy.
    Locks the immutability policy.
    Gets immutability policy name.
    Gets immutability policy state.
    Gets the type of immutability policy.

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel

    innerModel

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager

    manager

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Indexable

    key

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable

    refresh, refreshAsync

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Updatable

    update
  • Method Details

    • etag

      String etag()
      Gets the etag.
      Returns:
      the etag value.
    • id

      String id()
      Gets resource ID.
      Returns:
      the id value.
    • immutabilityPeriodSinceCreationInDays

      int immutabilityPeriodSinceCreationInDays()
      Gets the immutability period since creation in days.
      Returns:
      the immutabilityPeriodSinceCreationInDays value.
    • name

      String name()
      Gets immutability policy name.
      Returns:
      the name value.
    • state

      Gets immutability policy state.
      Returns:
      the state value.
    • type

      String type()
      Gets the type of immutability policy.
      Returns:
      the type value.
    • lock

      void lock()
      Locks the immutability policy.
    • lockAsync

      Mono<Void> lockAsync()
      Locks the immutability policy.
      Returns:
      the completion
    • extend

      void extend(int immutabilityPeriodSinceCreationInDays)
      Extends the immutability policy.
      Parameters:
      immutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days.
    • extendAsync

      Mono<Void> extendAsync(int immutabilityPeriodSinceCreationInDays)
      Extends the immutability policy.
      Parameters:
      immutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days.
      Returns:
      the completion