Class LastAccessTimeTrackingPolicy


  • public final class LastAccessTimeTrackingPolicy
    extends Object
    The blob service properties for Last access time based tracking policy.
    • Constructor Detail

      • LastAccessTimeTrackingPolicy

        public LastAccessTimeTrackingPolicy()
    • Method Detail

      • enable

        public boolean enable()
        Get the enable property: When set to true last access time based tracking is enabled.
        Returns:
        the enable value.
      • withEnable

        public LastAccessTimeTrackingPolicy withEnable​(boolean enable)
        Set the enable property: When set to true last access time based tracking is enabled.
        Parameters:
        enable - the enable value to set.
        Returns:
        the LastAccessTimeTrackingPolicy object itself.
      • name

        public Name name()
        Get the name property: Name of the policy. The valid value is AccessTimeTracking. This field is currently read only.
        Returns:
        the name value.
      • withName

        public LastAccessTimeTrackingPolicy withName​(Name name)
        Set the name property: Name of the policy. The valid value is AccessTimeTracking. This field is currently read only.
        Parameters:
        name - the name value to set.
        Returns:
        the LastAccessTimeTrackingPolicy object itself.
      • trackingGranularityInDays

        public Integer trackingGranularityInDays()
        Get the trackingGranularityInDays property: The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1.
        Returns:
        the trackingGranularityInDays value.
      • withTrackingGranularityInDays

        public LastAccessTimeTrackingPolicy withTrackingGranularityInDays​(Integer trackingGranularityInDays)
        Set the trackingGranularityInDays property: The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1.
        Parameters:
        trackingGranularityInDays - the trackingGranularityInDays value to set.
        Returns:
        the LastAccessTimeTrackingPolicy object itself.
      • blobType

        public List<String> blobType()
        Get the blobType property: An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only.
        Returns:
        the blobType value.
      • withBlobType

        public LastAccessTimeTrackingPolicy withBlobType​(List<String> blobType)
        Set the blobType property: An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only.
        Parameters:
        blobType - the blobType value to set.
        Returns:
        the LastAccessTimeTrackingPolicy object itself.
      • validate

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