Class ManagementPolicyVersion
java.lang.Object
com.azure.resourcemanager.storage.models.ManagementPolicyVersion
Management policy action for blob version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete()Get the delete property: The function to delete the blob version.Get the tierToArchive property: The function to tier blob version to archive storage.Get the tierToCool property: The function to tier blob version to cool storage.voidvalidate()Validates the instance.withDelete(DateAfterCreation delete) Set the delete property: The function to delete the blob version.withTierToArchive(DateAfterCreation tierToArchive) Set the tierToArchive property: The function to tier blob version to archive storage.withTierToCool(DateAfterCreation tierToCool) Set the tierToCool property: The function to tier blob version to cool storage.
-
Constructor Details
-
ManagementPolicyVersion
public ManagementPolicyVersion()
-
-
Method Details
-
tierToCool
Get the tierToCool property: The function to tier blob version to cool storage. Support blob version currently at Hot tier.- Returns:
- the tierToCool value.
-
withTierToCool
Set the tierToCool property: The function to tier blob version to cool storage. Support blob version currently at Hot tier.- Parameters:
tierToCool- the tierToCool value to set.- Returns:
- the ManagementPolicyVersion object itself.
-
tierToArchive
Get the tierToArchive property: The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier.- Returns:
- the tierToArchive value.
-
withTierToArchive
Set the tierToArchive property: The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier.- Parameters:
tierToArchive- the tierToArchive value to set.- Returns:
- the ManagementPolicyVersion object itself.
-
delete
Get the delete property: The function to delete the blob version.- Returns:
- the delete value.
-
withDelete
Set the delete property: The function to delete the blob version.- Parameters:
delete- the delete value to set.- Returns:
- the ManagementPolicyVersion object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-