LastAccessTimeTrackingPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. LastAccessTimeTrackingPolicy
- com.
Implements
public final class LastAccessTimeTrackingPolicy
implements JsonSerializable<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. |
static
Last |
fromJson(JsonReader jsonReader)
Reads an instance of Last |
Name |
name()
Get the name property: Name of the policy. |
Json |
toJson(JsonWriter jsonWriter) |
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:
fromJson
public static LastAccessTimeTrackingPolicy fromJson(JsonReader jsonReader)
Reads an instance of LastAccessTimeTrackingPolicy from the JsonReader.
Parameters:
Returns:
Throws:
name
public Name name()
Get the name property: Name of the policy. The valid value is AccessTimeTracking. This field is currently read only.
Returns:
toJson
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