ManagementPolicyVersion Class

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

Implements

public final class ManagementPolicyVersion
implements JsonSerializable<ManagementPolicyVersion>

Management policy action for blob version.

Constructor Summary

Constructor Description
ManagementPolicyVersion()

Creates an instance of ManagementPolicyVersion class.

Method Summary

Modifier and Type Method and Description
DateAfterCreation delete()

Get the delete property: The function to delete the blob version.

static ManagementPolicyVersion fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicyVersion from the JsonReader.

DateAfterCreation tierToArchive()

Get the tierToArchive property: The function to tier blob version to archive storage.

DateAfterCreation tierToCold()

Get the tierToCold property: The function to tier blobs to cold storage.

DateAfterCreation tierToCool()

Get the tierToCool property: The function to tier blob version to cool storage.

DateAfterCreation tierToHot()

Get the tierToHot property: The function to tier blobs to hot storage.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagementPolicyVersion withDelete(DateAfterCreation delete)

Set the delete property: The function to delete the blob version.

ManagementPolicyVersion withTierToArchive(DateAfterCreation tierToArchive)

Set the tierToArchive property: The function to tier blob version to archive storage.

ManagementPolicyVersion withTierToCold(DateAfterCreation tierToCold)

Set the tierToCold property: The function to tier blobs to cold storage.

ManagementPolicyVersion withTierToCool(DateAfterCreation tierToCool)

Set the tierToCool property: The function to tier blob version to cool storage.

ManagementPolicyVersion withTierToHot(DateAfterCreation tierToHot)

Set the tierToHot property: The function to tier blobs to hot storage.

Methods inherited from java.lang.Object

Constructor Details

ManagementPolicyVersion

public ManagementPolicyVersion()

Creates an instance of ManagementPolicyVersion class.

Method Details

delete

public DateAfterCreation delete()

Get the delete property: The function to delete the blob version.

Returns:

the delete value.

fromJson

public static ManagementPolicyVersion fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicyVersion from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ManagementPolicyVersion.

tierToArchive

public DateAfterCreation tierToArchive()

Get the tierToArchive property: The function to tier blob version to archive storage.

Returns:

the tierToArchive value.

tierToCold

public DateAfterCreation tierToCold()

Get the tierToCold property: The function to tier blobs to cold storage.

Returns:

the tierToCold value.

tierToCool

public DateAfterCreation tierToCool()

Get the tierToCool property: The function to tier blob version to cool storage.

Returns:

the tierToCool value.

tierToHot

public DateAfterCreation tierToHot()

Get the tierToHot property: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts.

Returns:

the tierToHot value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDelete

public ManagementPolicyVersion withDelete(DateAfterCreation delete)

Set the delete property: The function to delete the blob version.

Parameters:

delete - the delete value to set.

Returns:

the ManagementPolicyVersion object itself.

withTierToArchive

public ManagementPolicyVersion withTierToArchive(DateAfterCreation tierToArchive)

Set the tierToArchive property: The function to tier blob version to archive storage.

Parameters:

tierToArchive - the tierToArchive value to set.

Returns:

the ManagementPolicyVersion object itself.

withTierToCold

public ManagementPolicyVersion withTierToCold(DateAfterCreation tierToCold)

Set the tierToCold property: The function to tier blobs to cold storage.

Parameters:

tierToCold - the tierToCold value to set.

Returns:

the ManagementPolicyVersion object itself.

withTierToCool

public ManagementPolicyVersion withTierToCool(DateAfterCreation tierToCool)

Set the tierToCool property: The function to tier blob version to cool storage.

Parameters:

tierToCool - the tierToCool value to set.

Returns:

the ManagementPolicyVersion object itself.

withTierToHot

public ManagementPolicyVersion withTierToHot(DateAfterCreation tierToHot)

Set the tierToHot property: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts.

Parameters:

tierToHot - the tierToHot value to set.

Returns:

the ManagementPolicyVersion object itself.

Applies to