Interface PolicyRule
- All Superinterfaces:
HasInnerModel<ManagementPolicyRule>
An immutable client-side representation of a rule in an Azure Management Policy.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContainer interface for all of the definitions related to a rule in a management policy.static interfaceGrouping of management policy rule definition stages.static interfaceContainer interface for all of the updates related to a rule in a management policy.static interfaceGrouping of management policy rule update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets an object describing the actions to take on the filtered base blobs in this rule.Gets an object describing the actions to take on the filtered snapshot in this rule.Gets an unmodifiable list of the blob types this rule will apply for.Gets the number of days after a filtered base blob is last modified when the tier to archive action is enacted.Gets the number of days after a filtered base blob is last modified when the tier to cool action is enacted.Gets the number of days after a filtered base blob is last modified when the delete action is enacted.Gets the number of days after a filtered snapshot is created when the delete action is enacted.booleanChecks whether there is a delete action specified for the filtered base blobs in this rule.booleanChecks whether there is a delete action specified for the filtered snapshots in this rule.name()Gets the name of the rule.Gets an unmodifiable list of the prefixes of the blob types this rule will apply for.booleanChecks whether there is a tier to archive action specified for the filtered base blobs in this rule.booleanChecks whether there is a tier to cool action specified for the filtered base blobs in this rule.type()Gets the type of the rule.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
Method Details
-
name
String name()Gets the name of the rule.- Returns:
- the name of the rule
-
type
RuleType type()Gets the type of the rule.- Returns:
- the type of the rule
-
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
-
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
-
actionsOnBaseBlob
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
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
-
tierToCoolActionOnBaseBlobEnabled
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
-
tierToArchiveActionOnBaseBlobEnabled
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
-
deleteActionOnBaseBlobEnabled
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
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
-
daysAfterBaseBlobModificationUntilCooling
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
-
daysAfterBaseBlobModificationUntilArchiving
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
-
daysAfterBaseBlobModificationUntilDeleting
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
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
-