Class PolicyDefinitionReference
java.lang.Object
com.azure.resourcemanager.resources.models.PolicyDefinitionReference
The policy definition reference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the groupNames property: The name of the groups that this policy definition reference belongs to.Get the parameters property: The parameter values for the referenced policy rule.Get the policyDefinitionId property: The ID of the policy definition or policy set definition.Get the policyDefinitionReferenceId property: A unique id (within the policy set definition) for this policy definition reference.voidvalidate()Validates the instance.withGroupNames(List<String> groupNames) Set the groupNames property: The name of the groups that this policy definition reference belongs to.withParameters(Map<String, ParameterValuesValue> parameters) Set the parameters property: The parameter values for the referenced policy rule.withPolicyDefinitionId(String policyDefinitionId) Set the policyDefinitionId property: The ID of the policy definition or policy set definition.withPolicyDefinitionReferenceId(String policyDefinitionReferenceId) Set the policyDefinitionReferenceId property: A unique id (within the policy set definition) for this policy definition reference.
-
Constructor Details
-
PolicyDefinitionReference
public PolicyDefinitionReference()
-
-
Method Details
-
policyDefinitionId
Get the policyDefinitionId property: The ID of the policy definition or policy set definition.- Returns:
- the policyDefinitionId value.
-
withPolicyDefinitionId
Set the policyDefinitionId property: The ID of the policy definition or policy set definition.- Parameters:
policyDefinitionId- the policyDefinitionId value to set.- Returns:
- the PolicyDefinitionReference object itself.
-
parameters
Get the parameters property: The parameter values for the referenced policy rule. The keys are the parameter names.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: The parameter values for the referenced policy rule. The keys are the parameter names.- Parameters:
parameters- the parameters value to set.- Returns:
- the PolicyDefinitionReference object itself.
-
policyDefinitionReferenceId
Get the policyDefinitionReferenceId property: A unique id (within the policy set definition) for this policy definition reference.- Returns:
- the policyDefinitionReferenceId value.
-
withPolicyDefinitionReferenceId
public PolicyDefinitionReference withPolicyDefinitionReferenceId(String policyDefinitionReferenceId) Set the policyDefinitionReferenceId property: A unique id (within the policy set definition) for this policy definition reference.- Parameters:
policyDefinitionReferenceId- the policyDefinitionReferenceId value to set.- Returns:
- the PolicyDefinitionReference object itself.
-
groupNames
Get the groupNames property: The name of the groups that this policy definition reference belongs to.- Returns:
- the groupNames value.
-
withGroupNames
Set the groupNames property: The name of the groups that this policy definition reference belongs to.- Parameters:
groupNames- the groupNames value to set.- Returns:
- the PolicyDefinitionReference object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-