PolicyDefinitionReference Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. PolicyDefinitionReference
- com.
Implements
public final class PolicyDefinitionReference
implements JsonSerializable<PolicyDefinitionReference>
The policy definition reference.
Constructor Summary
Constructor | Description |
---|---|
PolicyDefinitionReference() |
Creates an instance of Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
definitionVersion()
Get the definition |
String |
effectiveDefinitionVersion()
Get the effective |
static
Policy |
fromJson(JsonReader jsonReader)
Reads an instance of Policy |
List<String> |
groupNames()
Get the group |
String |
latestDefinitionVersion()
Get the latest |
Map<String,Parameter |
parameters()
Get the parameters property: The parameter values for the referenced policy rule. |
String |
policyDefinitionId()
Get the policy |
String |
policyDefinitionReferenceId()
Get the policy |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Policy |
withDefinitionVersion(String definitionVersion)
Set the definition |
Policy |
withGroupNames(List<String> groupNames)
Set the group |
Policy |
withParameters(Map<String,ParameterValuesValue> parameters)
Set the parameters property: The parameter values for the referenced policy rule. |
Policy |
withPolicyDefinitionId(String policyDefinitionId)
Set the policy |
Policy |
withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)
Set the policy |
Methods inherited from java.lang.Object
Constructor Details
PolicyDefinitionReference
public PolicyDefinitionReference()
Creates an instance of PolicyDefinitionReference class.
Method Details
definitionVersion
public String definitionVersion()
Get the definitionVersion property: The version of the policy definition to use.
Returns:
effectiveDefinitionVersion
public String effectiveDefinitionVersion()
Get the effectiveDefinitionVersion property: The effective version of the policy definition in use. This is only present if requested via the $expand query parameter.
Returns:
fromJson
public static PolicyDefinitionReference fromJson(JsonReader jsonReader)
Reads an instance of PolicyDefinitionReference from the JsonReader.
Parameters:
Returns:
Throws:
groupNames
public List
Get the groupNames property: The name of the groups that this policy definition reference belongs to.
Returns:
latestDefinitionVersion
public String latestDefinitionVersion()
Get the latestDefinitionVersion property: The latest version of the policy definition available. This is only present if requested via the $expand query parameter.
Returns:
parameters
public Map
Get the parameters property: The parameter values for the referenced policy rule. The keys are the parameter names.
Returns:
policyDefinitionId
public String policyDefinitionId()
Get the policyDefinitionId property: The ID of the policy definition or policy set definition.
Returns:
policyDefinitionReferenceId
public String policyDefinitionReferenceId()
Get the policyDefinitionReferenceId property: A unique id (within the policy set definition) for this policy definition reference.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDefinitionVersion
public PolicyDefinitionReference withDefinitionVersion(String definitionVersion)
Set the definitionVersion property: The version of the policy definition to use.
Parameters:
Returns:
withGroupNames
public PolicyDefinitionReference withGroupNames(List
Set the groupNames property: The name of the groups that this policy definition reference belongs to.
Parameters:
Returns:
withParameters
public PolicyDefinitionReference withParameters(Map
Set the parameters property: The parameter values for the referenced policy rule. The keys are the parameter names.
Parameters:
Returns:
withPolicyDefinitionId
public PolicyDefinitionReference withPolicyDefinitionId(String policyDefinitionId)
Set the policyDefinitionId property: The ID of the policy definition or policy set definition.
Parameters:
Returns:
withPolicyDefinitionReferenceId
public PolicyDefinitionReference withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)
Set the policyDefinitionReferenceId property: A unique id (within the policy set definition) for this policy definition reference.
Parameters:
Returns: