Class PolicyDefinitionProperties
- java.lang.Object
-
- com.azure.resourcemanager.resources.fluent.models.PolicyDefinitionProperties
-
public final class PolicyDefinitionProperties extends Object
The policy definition properties.
-
-
Constructor Summary
Constructors Constructor Description PolicyDefinitionProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: The policy definition description.StringdisplayName()Get the displayName property: The display name of the policy definition.Objectmetadata()Get the metadata property: The policy definition metadata.Stringmode()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.ObjectpolicyRule()Get the policyRule property: The policy rule.PolicyTypepolicyType()Get the policyType property: The type of policy definition.voidvalidate()Validates the instance.PolicyDefinitionPropertieswithDescription(String description)Set the description property: The policy definition description.PolicyDefinitionPropertieswithDisplayName(String displayName)Set the displayName property: The display name of the policy definition.PolicyDefinitionPropertieswithMetadata(Object metadata)Set the metadata property: The policy definition metadata.PolicyDefinitionPropertieswithMode(String mode)Set the mode property: The policy definition mode.PolicyDefinitionPropertieswithParameters(Map<String,ParameterDefinitionsValue> parameters)Set the parameters property: The parameter definitions for parameters used in the policy rule.PolicyDefinitionPropertieswithPolicyRule(Object policyRule)Set the policyRule property: The policy rule.PolicyDefinitionPropertieswithPolicyType(PolicyType policyType)Set the policyType property: The type of policy definition.
-
-
-
Method Detail
-
policyType
public PolicyType policyType()
Get the policyType property: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.- Returns:
- the policyType value.
-
withPolicyType
public PolicyDefinitionProperties withPolicyType(PolicyType policyType)
Set the policyType property: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.- Parameters:
policyType- the policyType value to set.- Returns:
- the PolicyDefinitionProperties object itself.
-
mode
public String mode()
Get the mode property: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.- Returns:
- the mode value.
-
withMode
public PolicyDefinitionProperties withMode(String mode)
Set the mode property: The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.- Parameters:
mode- the mode value to set.- Returns:
- the PolicyDefinitionProperties object itself.
-
displayName
public String displayName()
Get the displayName property: The display name of the policy definition.- Returns:
- the displayName value.
-
withDisplayName
public PolicyDefinitionProperties withDisplayName(String displayName)
Set the displayName property: The display name of the policy definition.- Parameters:
displayName- the displayName value to set.- Returns:
- the PolicyDefinitionProperties object itself.
-
description
public String description()
Get the description property: The policy definition description.- Returns:
- the description value.
-
withDescription
public PolicyDefinitionProperties withDescription(String description)
Set the description property: The policy definition description.- Parameters:
description- the description value to set.- Returns:
- the PolicyDefinitionProperties object itself.
-
policyRule
public Object policyRule()
Get the policyRule property: The policy rule.- Returns:
- the policyRule value.
-
withPolicyRule
public PolicyDefinitionProperties withPolicyRule(Object policyRule)
Set the policyRule property: The policy rule.- Parameters:
policyRule- the policyRule value to set.- Returns:
- the PolicyDefinitionProperties object itself.
-
metadata
public Object metadata()
Get the metadata property: The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.- Returns:
- the metadata value.
-
withMetadata
public PolicyDefinitionProperties withMetadata(Object metadata)
Set the metadata property: The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.- Parameters:
metadata- the metadata value to set.- Returns:
- the PolicyDefinitionProperties object itself.
-
parameters
public Map<String,ParameterDefinitionsValue> parameters()
Get the parameters property: The parameter definitions for parameters used in the policy rule. The keys are the parameter names.- Returns:
- the parameters value.
-
withParameters
public PolicyDefinitionProperties withParameters(Map<String,ParameterDefinitionsValue> parameters)
Set the parameters property: The parameter definitions for parameters used in the policy rule. The keys are the parameter names.- Parameters:
parameters- the parameters value to set.- Returns:
- the PolicyDefinitionProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-