PolicyRule Interface

Implements

public interface PolicyRule
extends HasInner<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 java.util.List<BlobTypes> blobTypesToFilterFor()
abstract java.lang.Double daysAfterBaseBlobModificationUntilArchiving()
abstract java.lang.Double daysAfterBaseBlobModificationUntilCooling()
abstract java.lang.Double daysAfterBaseBlobModificationUntilDeleting()
abstract java.lang.Double daysAfterSnapShotCreationUntilDeleting()
abstract boolean deleteActionOnBaseBlobEnabled()
abstract boolean deleteActionOnSnapShotEnabled()
abstract java.lang.String name()
abstract java.util.List<java.lang.String> prefixesToFilterFor()
abstract boolean tierToArchiveActionOnBaseBlobEnabled()
abstract boolean tierToCoolActionOnBaseBlobEnabled()
abstract java.lang.String 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 Double 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 Double 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 Double daysAfterBaseBlobModificationUntilDeleting()

Returns:

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

daysAfterSnapShotCreationUntilDeleting

public abstract Double 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 String type()

Returns:

the type of the rule

Applies to