public class PolicyDefinitionInner
extends com.azure.core.management.ProxyResource
| Constructor and Description |
|---|
PolicyDefinitionInner() |
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Get the description property: The policy definition description.
|
String |
displayName()
Get the displayName property: The display name of the policy definition.
|
Object |
metadata()
Get the metadata property: The policy definition metadata.
|
String |
mode()
Get the mode property: The policy definition mode.
|
Map<String,ParameterDefinitionsValue> |
parameters()
Get the parameters property: The parameter definitions for parameters used in the policy rule.
|
Object |
policyRule()
Get the policyRule property: The policy rule.
|
PolicyType |
policyType()
Get the policyType property: The type of policy definition.
|
void |
validate()
Validates the instance.
|
PolicyDefinitionInner |
withDescription(String description)
Set the description property: The policy definition description.
|
PolicyDefinitionInner |
withDisplayName(String displayName)
Set the displayName property: The display name of the policy definition.
|
PolicyDefinitionInner |
withMetadata(Object metadata)
Set the metadata property: The policy definition metadata.
|
PolicyDefinitionInner |
withMode(String mode)
Set the mode property: The policy definition mode.
|
PolicyDefinitionInner |
withParameters(Map<String,ParameterDefinitionsValue> parameters)
Set the parameters property: The parameter definitions for parameters used in the policy rule.
|
PolicyDefinitionInner |
withPolicyRule(Object policyRule)
Set the policyRule property: The policy rule.
|
PolicyDefinitionInner |
withPolicyType(PolicyType policyType)
Set the policyType property: The type of policy definition.
|
public PolicyType policyType()
public PolicyDefinitionInner withPolicyType(PolicyType policyType)
policyType - the policyType value to set.public String mode()
public PolicyDefinitionInner withMode(String mode)
mode - the mode value to set.public String displayName()
public PolicyDefinitionInner withDisplayName(String displayName)
displayName - the displayName value to set.public String description()
public PolicyDefinitionInner withDescription(String description)
description - the description value to set.public Object policyRule()
public PolicyDefinitionInner withPolicyRule(Object policyRule)
policyRule - the policyRule value to set.public Object metadata()
public PolicyDefinitionInner withMetadata(Object metadata)
metadata - the metadata value to set.public Map<String,ParameterDefinitionsValue> parameters()
public PolicyDefinitionInner withParameters(Map<String,ParameterDefinitionsValue> parameters)
parameters - the parameters value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.