Class ManagementPolicyVersion
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.ManagementPolicyVersion
-
public final class ManagementPolicyVersion extends Object
Management policy action for blob version.
-
-
Constructor Summary
Constructors Constructor Description ManagementPolicyVersion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateAfterCreationdelete()Get the delete property: The function to delete the blob version.DateAfterCreationtierToArchive()Get the tierToArchive property: The function to tier blob version to archive storage.DateAfterCreationtierToCool()Get the tierToCool property: The function to tier blob version to cool storage.voidvalidate()Validates the instance.ManagementPolicyVersionwithDelete(DateAfterCreation delete)Set the delete property: The function to delete the blob version.ManagementPolicyVersionwithTierToArchive(DateAfterCreation tierToArchive)Set the tierToArchive property: The function to tier blob version to archive storage.ManagementPolicyVersionwithTierToCool(DateAfterCreation tierToCool)Set the tierToCool property: The function to tier blob version to cool storage.
-
-
-
Method Detail
-
tierToCool
public DateAfterCreation 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
public ManagementPolicyVersion withTierToCool(DateAfterCreation tierToCool)
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
public DateAfterCreation 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
public ManagementPolicyVersion withTierToArchive(DateAfterCreation tierToArchive)
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
public DateAfterCreation delete()
Get the delete property: The function to delete the blob version.- Returns:
- the delete value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-