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
Management |
actionsOnBaseBlob()
Gets an object describing the actions to take on the filtered base blobs in this rule. |
abstract
Management |
actionsOnSnapShot()
Gets an object describing the actions to take on the filtered snapshot in this rule. |
abstract
List<Blob |
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
Rule |
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:
actionsOnSnapShot
public abstract ManagementPolicySnapShot actionsOnSnapShot()
Gets an object describing the actions to take on the filtered snapshot in this rule.
Returns:
blobTypesToFilterFor
public abstract List
Gets an unmodifiable list of the blob types this rule will apply for.
Returns:
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:
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:
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:
daysAfterSnapShotCreationUntilDeleting
public abstract Float daysAfterSnapShotCreationUntilDeleting()
Gets the number of days after a filtered snapshot is created when the delete action is enacted.
Returns:
deleteActionOnBaseBlobEnabled
public abstract boolean deleteActionOnBaseBlobEnabled()
Checks whether there is a delete action specified for the filtered base blobs in this rule.
Returns:
deleteActionOnSnapShotEnabled
public abstract boolean deleteActionOnSnapShotEnabled()
Checks whether there is a delete action specified for the filtered snapshots in this rule.
Returns:
name
public abstract String name()
Gets the name of the rule.
Returns:
prefixesToFilterFor
public abstract List
Gets an unmodifiable list of the prefixes of the blob types this rule will apply for.
Returns:
tierToArchiveActionOnBaseBlobEnabled
public abstract boolean tierToArchiveActionOnBaseBlobEnabled()
Checks whether there is a tier to archive action specified for the filtered base blobs in this rule.
Returns:
tierToCoolActionOnBaseBlobEnabled
public abstract boolean tierToCoolActionOnBaseBlobEnabled()
Checks whether there is a tier to cool action specified for the filtered base blobs in this rule.
Returns:
type
public abstract RuleType type()
Gets the type of the rule.
Returns:
Applies to
Azure SDK for Java