Class ManagementPolicySnapShot
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.ManagementPolicySnapShot
-
public final class ManagementPolicySnapShot extends Object
Management policy action for snapshot.
-
-
Constructor Summary
Constructors Constructor Description ManagementPolicySnapShot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateAfterCreationdelete()Get the delete property: The function to delete the blob snapshot.DateAfterCreationtierToArchive()Get the tierToArchive property: The function to tier blob snapshot to archive storage.DateAfterCreationtierToCool()Get the tierToCool property: The function to tier blob snapshot to cool storage.voidvalidate()Validates the instance.ManagementPolicySnapShotwithDelete(DateAfterCreation delete)Set the delete property: The function to delete the blob snapshot.ManagementPolicySnapShotwithTierToArchive(DateAfterCreation tierToArchive)Set the tierToArchive property: The function to tier blob snapshot to archive storage.ManagementPolicySnapShotwithTierToCool(DateAfterCreation tierToCool)Set the tierToCool property: The function to tier blob snapshot to cool storage.
-
-
-
Method Detail
-
tierToCool
public DateAfterCreation tierToCool()
Get the tierToCool property: The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier.- Returns:
- the tierToCool value.
-
withTierToCool
public ManagementPolicySnapShot withTierToCool(DateAfterCreation tierToCool)
Set the tierToCool property: The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier.- Parameters:
tierToCool- the tierToCool value to set.- Returns:
- the ManagementPolicySnapShot object itself.
-
tierToArchive
public DateAfterCreation tierToArchive()
Get the tierToArchive property: The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier.- Returns:
- the tierToArchive value.
-
withTierToArchive
public ManagementPolicySnapShot withTierToArchive(DateAfterCreation tierToArchive)
Set the tierToArchive property: The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier.- Parameters:
tierToArchive- the tierToArchive value to set.- Returns:
- the ManagementPolicySnapShot object itself.
-
delete
public DateAfterCreation delete()
Get the delete property: The function to delete the blob snapshot.- Returns:
- the delete value.
-
withDelete
public ManagementPolicySnapShot withDelete(DateAfterCreation delete)
Set the delete property: The function to delete the blob snapshot.- Parameters:
delete- the delete value to set.- Returns:
- the ManagementPolicySnapShot object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-