LastAccessTimeTrackingPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. LastAccessTimeTrackingPolicy
- com.
public final class LastAccessTimeTrackingPolicy
The blob service properties for Last access time based tracking policy.
Constructor Summary
Constructor | Description |
---|---|
LastAccessTimeTrackingPolicy() |
Creates an instance of Last |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
blobType()
Get the blob |
boolean |
enable()
Get the enable property: When set to true last access time based tracking is enabled. |
Name |
name()
Get the name property: Name of the policy. |
Integer |
trackingGranularityInDays()
Get the tracking |
void |
validate()
Validates the instance. |
Last |
withBlobType(List<String> blobType)
Set the blob |
Last |
withEnable(boolean enable)
Set the enable property: When set to true last access time based tracking is enabled. |
Last |
withName(Name name)
Set the name property: Name of the policy. |
Last |
withTrackingGranularityInDays(Integer trackingGranularityInDays)
Set the tracking |
Methods inherited from java.lang.Object
Constructor Details
LastAccessTimeTrackingPolicy
public LastAccessTimeTrackingPolicy()
Creates an instance of LastAccessTimeTrackingPolicy class.
Method Details
blobType
public List
Get the blobType property: An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only.
Returns:
enable
public boolean enable()
Get the enable property: When set to true last access time based tracking is enabled.
Returns:
name
public Name name()
Get the name property: Name of the policy. The valid value is AccessTimeTracking. This field is currently read only.
Returns:
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:
validate
public void validate()
Validates the instance.
withBlobType
public LastAccessTimeTrackingPolicy withBlobType(List
Set the blobType property: An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only.
Parameters:
Returns:
withEnable
public LastAccessTimeTrackingPolicy withEnable(boolean enable)
Set the enable property: When set to true last access time based tracking is enabled.
Parameters:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for