다음을 통해 공유


LastAccessTimeTrackingPolicy Class

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

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

static LastAccessTimeTrackingPolicy fromJson(JsonReader jsonReader)

Reads an instance of LastAccessTimeTrackingPolicy from the JsonReader.

Name name()

Get the name property: Name of the policy.

JsonWriter toJson(JsonWriter jsonWriter)
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.

fromJson

public static LastAccessTimeTrackingPolicy fromJson(JsonReader jsonReader)

Reads an instance of LastAccessTimeTrackingPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LastAccessTimeTrackingPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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