Class PolicyDefinitionInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.resources.fluent.models.PolicyDefinitionInner
-
public final class PolicyDefinitionInner extends com.azure.core.management.ProxyResourceThe policy definition.
-
-
Constructor Summary
Constructors Constructor Description PolicyDefinitionInner()
-
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.com.azure.core.management.SystemDatasystemData()Get the systemData property: The system metadata relating to this resource.voidvalidate()Validates the instance.PolicyDefinitionInnerwithDescription(String description)Set the description property: The policy definition description.PolicyDefinitionInnerwithDisplayName(String displayName)Set the displayName property: The display name of the policy definition.PolicyDefinitionInnerwithMetadata(Object metadata)Set the metadata property: The policy definition metadata.PolicyDefinitionInnerwithMode(String mode)Set the mode property: The policy definition mode.PolicyDefinitionInnerwithParameters(Map<String,ParameterDefinitionsValue> parameters)Set the parameters property: The parameter definitions for parameters used in the policy rule.PolicyDefinitionInnerwithPolicyRule(Object policyRule)Set the policyRule property: The policy rule.PolicyDefinitionInnerwithPolicyType(PolicyType policyType)Set the policyType property: The type of policy definition.
-
-
-
Method Detail
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: The system metadata relating to this resource.- Returns:
- the systemData value.
-
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 PolicyDefinitionInner 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 PolicyDefinitionInner 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 PolicyDefinitionInner 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 PolicyDefinitionInner object itself.
-
displayName
public String displayName()
Get the displayName property: The display name of the policy definition.- Returns:
- the displayName value.
-
withDisplayName
public PolicyDefinitionInner withDisplayName(String displayName)
Set the displayName property: The display name of the policy definition.- Parameters:
displayName- the displayName value to set.- Returns:
- the PolicyDefinitionInner object itself.
-
description
public String description()
Get the description property: The policy definition description.- Returns:
- the description value.
-
withDescription
public PolicyDefinitionInner withDescription(String description)
Set the description property: The policy definition description.- Parameters:
description- the description value to set.- Returns:
- the PolicyDefinitionInner object itself.
-
policyRule
public Object policyRule()
Get the policyRule property: The policy rule.- Returns:
- the policyRule value.
-
withPolicyRule
public PolicyDefinitionInner withPolicyRule(Object policyRule)
Set the policyRule property: The policy rule.- Parameters:
policyRule- the policyRule value to set.- Returns:
- the PolicyDefinitionInner 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 PolicyDefinitionInner 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 PolicyDefinitionInner 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 PolicyDefinitionInner 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 PolicyDefinitionInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-