共用方式為


PolicyDefinition Interface

Implements

public interface PolicyDefinition
extends HasName, HasId, Indexable, Refreshable<PolicyDefinition>, Updatable<Update>, HasInnerModel<PolicyDefinitionInner>

An immutable client-side representation of an Azure policy.

Method Summary

Modifier and Type Method and Description
abstract String description()

Gets the policy definition description.

abstract String displayName()

Gets display name of the policy definition.

abstract Object metadata()

Gets the policy definition metadata.

abstract String mode()

Gets the policy definition mode.

abstract Map<String,ParameterDefinitionsValue> parameters()

Gets the parameters of the policy definition.

abstract Object policyRule()

Gets the policy rule.

abstract PolicyType policyType()

Gets the type of the policy definition.

Method Details

description

public abstract String description()

Gets the policy definition description.

Returns:

the policy definition description

displayName

public abstract String displayName()

Gets display name of the policy definition.

Returns:

the policy definition display name

metadata

public abstract 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.

mode

public abstract String mode()

Gets the policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.

Returns:

the policy definition mode.

parameters

public abstract Map parameters()

Gets the parameters of the policy definition.

Returns:

the parameters of the policy definition

policyRule

public abstract Object policyRule()

Gets the policy rule.

Returns:

the policy rule

policyType

public abstract PolicyType policyType()

Gets the type of the policy definition.

Returns:

the type of the policy definition

Applies to