Interface PolicyRule
-
- All Superinterfaces:
HasInnerModel<ManagementPolicyRule>
public interface PolicyRule extends HasInnerModel<ManagementPolicyRule>
An immutable client-side representation of a rule in an Azure Management Policy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePolicyRule.DefinitionContainer interface for all of the definitions related to a rule in a management policy.static interfacePolicyRule.DefinitionStagesGrouping of management policy rule definition stages.static interfacePolicyRule.UpdateContainer interface for all of the updates related to a rule in a management policy.static interfacePolicyRule.UpdateStagesGrouping of management policy rule update stages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagementPolicyBaseBlobactionsOnBaseBlob()ManagementPolicySnapShotactionsOnSnapShot()List<BlobTypes>blobTypesToFilterFor()FloatdaysAfterBaseBlobModificationUntilArchiving()FloatdaysAfterBaseBlobModificationUntilCooling()FloatdaysAfterBaseBlobModificationUntilDeleting()FloatdaysAfterSnapShotCreationUntilDeleting()booleandeleteActionOnBaseBlobEnabled()booleandeleteActionOnSnapShotEnabled()Stringname()List<String>prefixesToFilterFor()booleantierToArchiveActionOnBaseBlobEnabled()booleantierToCoolActionOnBaseBlobEnabled()RuleTypetype()-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
-
-
-
Method Detail
-
name
String name()
- Returns:
- the name of the rule
-
type
RuleType type()
- Returns:
- the type of the rule
-
blobTypesToFilterFor
List<BlobTypes> blobTypesToFilterFor()
- Returns:
- an unmodifiable list of the blob types this rule will apply for
-
prefixesToFilterFor
List<String> prefixesToFilterFor()
- Returns:
- an unmodifiable list of the prefixes of the blob types this rule will apply for
-
actionsOnBaseBlob
ManagementPolicyBaseBlob actionsOnBaseBlob()
- Returns:
- an object describing the actions to take on the filtered base blobs in this rule
-
actionsOnSnapShot
ManagementPolicySnapShot actionsOnSnapShot()
- Returns:
- an object describing the actions to take on the filtered snapshot in this rule
-
tierToCoolActionOnBaseBlobEnabled
boolean tierToCoolActionOnBaseBlobEnabled()
- Returns:
- whether there is a tier to cool action specified for the filtered base blobs in this rule
-
tierToArchiveActionOnBaseBlobEnabled
boolean tierToArchiveActionOnBaseBlobEnabled()
- Returns:
- whether there is a tier to archive action specified for the filtered base blobs in this rule
-
deleteActionOnBaseBlobEnabled
boolean deleteActionOnBaseBlobEnabled()
- Returns:
- whether there is a delete action specified for the filtered base blobs in this rule
-
deleteActionOnSnapShotEnabled
boolean deleteActionOnSnapShotEnabled()
- Returns:
- whether there is a delete action specified for the filtered snapshots in this rule
-
daysAfterBaseBlobModificationUntilCooling
Float daysAfterBaseBlobModificationUntilCooling()
- Returns:
- the number of days after a filtered base blob is last modified when the tier to cool action is enacted
-
daysAfterBaseBlobModificationUntilArchiving
Float daysAfterBaseBlobModificationUntilArchiving()
- Returns:
- the number of days after a filtered base blob is last modified when the tier to archive action is enacted
-
daysAfterBaseBlobModificationUntilDeleting
Float daysAfterBaseBlobModificationUntilDeleting()
- Returns:
- the number of days after a filtered base blob is last modified when the delete action is enacted
-
daysAfterSnapShotCreationUntilDeleting
Float daysAfterSnapShotCreationUntilDeleting()
- Returns:
- the number of days after a filtered snapshot is created when the delete action is enacted
-
-