Delen via


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()

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

abstract ManagementPolicySnapShot actionsOnSnapShot()

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

abstract List<BlobTypes> blobTypesToFilterFor()

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

abstract Float daysAfterBaseBlobModificationUntilArchiving()

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

abstract Float daysAfterBaseBlobModificationUntilCooling()

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

abstract Float daysAfterBaseBlobModificationUntilDeleting()

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

abstract Float daysAfterSnapShotCreationUntilDeleting()

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

abstract boolean deleteActionOnBaseBlobEnabled()

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

abstract boolean deleteActionOnSnapShotEnabled()

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

abstract String name()

Gets the name of the rule.

abstract List<String> prefixesToFilterFor()

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

abstract boolean tierToArchiveActionOnBaseBlobEnabled()

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

abstract boolean tierToCoolActionOnBaseBlobEnabled()

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

abstract RuleType type()

Gets the type of the rule.

Method Details

actionsOnBaseBlob

public abstract ManagementPolicyBaseBlob actionsOnBaseBlob()

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

Returns:

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

actionsOnSnapShot

public abstract ManagementPolicySnapShot actionsOnSnapShot()

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

Returns:

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

blobTypesToFilterFor

public abstract List blobTypesToFilterFor()

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

Returns:

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

daysAfterBaseBlobModificationUntilArchiving

public abstract Float daysAfterBaseBlobModificationUntilArchiving()

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

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()

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

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()

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

Returns:

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

daysAfterSnapShotCreationUntilDeleting

public abstract Float daysAfterSnapShotCreationUntilDeleting()

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

Returns:

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

deleteActionOnBaseBlobEnabled

public abstract boolean deleteActionOnBaseBlobEnabled()

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

Returns:

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

deleteActionOnSnapShotEnabled

public abstract boolean deleteActionOnSnapShotEnabled()

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

Returns:

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

name

public abstract String name()

Gets the name of the rule.

Returns:

the name of the rule

prefixesToFilterFor

public abstract List prefixesToFilterFor()

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

Returns:

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

tierToArchiveActionOnBaseBlobEnabled

public abstract boolean tierToArchiveActionOnBaseBlobEnabled()

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

Returns:

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

tierToCoolActionOnBaseBlobEnabled

public abstract boolean tierToCoolActionOnBaseBlobEnabled()

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

Returns:

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

type

public abstract RuleType type()

Gets the type of the rule.

Returns:

the type of the rule

Applies to