Interface PolicyDefinition
- All Superinterfaces:
HasId,HasInnerModel<PolicyDefinitionInner>,HasName,Indexable,Refreshable<PolicyDefinition>,Updatable<PolicyDefinition.Update>
public interface PolicyDefinition
extends HasName, HasId, Indexable, Refreshable<PolicyDefinition>, Updatable<PolicyDefinition.Update>, HasInnerModel<PolicyDefinitionInner>
An immutable client-side representation of an Azure policy.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContainer interface for all the definitions that need to be implemented.static interfaceGrouping of all the policy definition stages.static interfaceThe template for a policy update operation, containing all the settings that can be modified.static interfaceGrouping of all the policy update stages. -
Method Summary
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModelMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
nameMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Method Details
-
policyType
PolicyType policyType()- Returns:
- the type of the policy definition
-
displayName
String displayName()- Returns:
- the policy definition display name
-
description
String description()- Returns:
- the policy definition description
-
policyRule
Object policyRule()- Returns:
- the policy rule
-
parameters
Map<String,ParameterDefinitionsValue> parameters()- Returns:
- the parameters of the policy definition
-
mode
String mode()Gets the policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.- Returns:
- the policy definition mode.
-
metadata
Object metadata()Gets the policy definition metadata. Metadata is an open-ended object and is typically a collection of key value pairs.- Returns:
- the policy definition metadata.
-