LastAccessTimeTrackingPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.LastAccessTimeTrackingPolicy

public final class LastAccessTimeTrackingPolicy

The blob service properties for Last access time based tracking policy.

Constructor Summary

Constructor Description
LastAccessTimeTrackingPolicy()

Creates an instance of LastAccessTimeTrackingPolicy class.

Method Summary

Modifier and Type Method and Description
List<String> blobType()

Get the blobType property: An array of predefined supported blob types.

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 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.

void validate()

Validates the instance.

LastAccessTimeTrackingPolicy withBlobType(List<String> blobType)

Set the blobType property: An array of predefined supported blob types.

LastAccessTimeTrackingPolicy withEnable(boolean enable)

Set the enable property: When set to true last access time based tracking is enabled.

LastAccessTimeTrackingPolicy withName(Name name)

Set the name property: Name of the policy.

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.

Methods inherited from java.lang.Object

Constructor Details

LastAccessTimeTrackingPolicy

public LastAccessTimeTrackingPolicy()

Creates an instance of LastAccessTimeTrackingPolicy class.

Method Details

blobType

public List 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.

enable

public boolean enable()

Get the enable property: When set to true last access time based tracking is enabled.

Returns:

the enable value.

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.

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.

validate

public void validate()

Validates the instance.

withBlobType

public LastAccessTimeTrackingPolicy withBlobType(List 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.

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.

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.

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.

Applies to