Freigeben über


PolicyRule Interface

Implements

public interface PolicyRule
extends HasInnerModel<ManagementPolicyRule>

An immutable client-side representation of a rule in an Azure Management Policy.

Method Summary

Modifier and Type Method and Description
abstract ManagementPolicyBaseBlob actionsOnBaseBlob()
abstract ManagementPolicySnapShot actionsOnSnapShot()
abstract List<BlobTypes> blobTypesToFilterFor()
abstract Float daysAfterBaseBlobModificationUntilArchiving()
abstract Float daysAfterBaseBlobModificationUntilCooling()
abstract Float daysAfterBaseBlobModificationUntilDeleting()
abstract Float daysAfterSnapShotCreationUntilDeleting()
abstract boolean deleteActionOnBaseBlobEnabled()
abstract boolean deleteActionOnSnapShotEnabled()
abstract String name()
abstract List<String> prefixesToFilterFor()
abstract boolean tierToArchiveActionOnBaseBlobEnabled()
abstract boolean tierToCoolActionOnBaseBlobEnabled()
abstract RuleType type()

Method Details

actionsOnBaseBlob

public abstract ManagementPolicyBaseBlob actionsOnBaseBlob()

Returns:

an object describing the actions to take on the filtered base blobs in this rule

actionsOnSnapShot

public abstract ManagementPolicySnapShot actionsOnSnapShot()

Returns:

an object describing the actions to take on the filtered snapshot in this rule

blobTypesToFilterFor

public abstract List blobTypesToFilterFor()

Returns:

an unmodifiable list of the blob types this rule will apply for

daysAfterBaseBlobModificationUntilArchiving

public abstract Float daysAfterBaseBlobModificationUntilArchiving()

Returns:

the number of days after a filtered base blob is last modified when the tier to archive action is enacted

daysAfterBaseBlobModificationUntilCooling

public abstract Float daysAfterBaseBlobModificationUntilCooling()

Returns:

the number of days after a filtered base blob is last modified when the tier to cool action is enacted

daysAfterBaseBlobModificationUntilDeleting

public abstract Float daysAfterBaseBlobModificationUntilDeleting()

Returns:

the number of days after a filtered base blob is last modified when the delete action is enacted

daysAfterSnapShotCreationUntilDeleting

public abstract Float daysAfterSnapShotCreationUntilDeleting()

Returns:

the number of days after a filtered snapshot is created when the delete action is enacted

deleteActionOnBaseBlobEnabled

public abstract boolean deleteActionOnBaseBlobEnabled()

Returns:

whether there is a delete action specified for the filtered base blobs in this rule

deleteActionOnSnapShotEnabled

public abstract boolean deleteActionOnSnapShotEnabled()

Returns:

whether there is a delete action specified for the filtered snapshots in this rule

name

public abstract String name()

Returns:

the name of the rule

prefixesToFilterFor

public abstract List prefixesToFilterFor()

Returns:

an unmodifiable list of the prefixes of the blob types this rule will apply for

tierToArchiveActionOnBaseBlobEnabled

public abstract boolean tierToArchiveActionOnBaseBlobEnabled()

Returns:

whether there is a tier to archive action specified for the filtered base blobs in this rule

tierToCoolActionOnBaseBlobEnabled

public abstract boolean tierToCoolActionOnBaseBlobEnabled()

Returns:

whether there is a tier to cool action specified for the filtered base blobs in this rule

type

public abstract RuleType type()

Returns:

the type of the rule

Applies to