Class ManagementPolicyAction
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.ManagementPolicyAction
-
public final class ManagementPolicyAction extends Object
Actions are applied to the filtered blobs when the execution condition is met.
-
-
Constructor Summary
Constructors Constructor Description ManagementPolicyAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagementPolicyBaseBlobbaseBlob()Get the baseBlob property: The management policy action for base blob.ManagementPolicySnapShotsnapshot()Get the snapshot property: The management policy action for snapshot.voidvalidate()Validates the instance.ManagementPolicyVersionversion()Get the version property: The management policy action for version.ManagementPolicyActionwithBaseBlob(ManagementPolicyBaseBlob baseBlob)Set the baseBlob property: The management policy action for base blob.ManagementPolicyActionwithSnapshot(ManagementPolicySnapShot snapshot)Set the snapshot property: The management policy action for snapshot.ManagementPolicyActionwithVersion(ManagementPolicyVersion version)Set the version property: The management policy action for version.
-
-
-
Method Detail
-
baseBlob
public ManagementPolicyBaseBlob baseBlob()
Get the baseBlob property: The management policy action for base blob.- Returns:
- the baseBlob value.
-
withBaseBlob
public ManagementPolicyAction withBaseBlob(ManagementPolicyBaseBlob baseBlob)
Set the baseBlob property: The management policy action for base blob.- Parameters:
baseBlob- the baseBlob value to set.- Returns:
- the ManagementPolicyAction object itself.
-
snapshot
public ManagementPolicySnapShot snapshot()
Get the snapshot property: The management policy action for snapshot.- Returns:
- the snapshot value.
-
withSnapshot
public ManagementPolicyAction withSnapshot(ManagementPolicySnapShot snapshot)
Set the snapshot property: The management policy action for snapshot.- Parameters:
snapshot- the snapshot value to set.- Returns:
- the ManagementPolicyAction object itself.
-
version
public ManagementPolicyVersion version()
Get the version property: The management policy action for version.- Returns:
- the version value.
-
withVersion
public ManagementPolicyAction withVersion(ManagementPolicyVersion version)
Set the version property: The management policy action for version.- Parameters:
version- the version value to set.- Returns:
- the ManagementPolicyAction object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-