Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure;
import java.util.HashMap;
import com.fasterxml.jackson.databind.JsonNode;
An instance of this class provides Azure policy violation information.
/**
* An instance of this class provides Azure policy violation information.
*/
public class PolicyViolationErrorInfo {
The policy definition id.
/**
* The policy definition id.
*/
private String policyDefinitionId;
The policy set definition id.
/**
* The policy set definition id.
*/
private String policySetDefinitionId;
The policy definition instance id inside a policy set.
/**
* The policy definition instance id inside a policy set.
*/
private String policyDefinitionReferenceId;
The policy set definition name.
/**
* The policy set definition name.
*/
private String policySetDefinitionName;
The policy definition name.
/**
* The policy definition name.
*/
private String policyDefinitionName;
The policy definition action.
/**
* The policy definition action.
*/
private String policyDefinitionEffect;
The policy assignment id.
/**
* The policy assignment id.
*/
private String policyAssignmentId;
The policy assignment name.
/**
* The policy assignment name.
*/
private String policyAssignmentName;
The policy assignment display name.
/**
* The policy assignment display name.
*/
private String policyAssignmentDisplayName;
The policy assignment scope.
/**
* The policy assignment scope.
*/
private String policyAssignmentScope;
The policy assignment parameters.
/**
* The policy assignment parameters.
*/
private HashMap<String, PolicyParameter> policyAssignmentParameters;
The policy definition display name.
/**
* The policy definition display name.
*/
private String policyDefinitionDisplayName;
The policy set definition display name.
/**
* The policy set definition display name.
*/
private String policySetDefinitionDisplayName;
Returns: the policy definition id.
/**
* @return the policy definition id.
*/
public String getPolicyDefinitionId() {
return policyDefinitionId;
}
Returns: the policy set definition id.
/**
* @return the policy set definition id.
*/
public String getPolicySetDefinitionId() {
return policySetDefinitionId;
}
Returns: the policy definition instance id inside a policy set.
/**
* @return the policy definition instance id inside a policy set.
*/
public String getPolicyDefinitionReferenceId() {
return policyDefinitionReferenceId;
}
Returns: the policy set definition name.
/**
* @return the policy set definition name.
*/
public String getPolicySetDefinitionName() {
return policySetDefinitionName;
}
Returns: the policy definition name.
/**
* @return the policy definition name.
*/
public String getPolicyDefinitionName() {
return policyDefinitionName;
}
Returns: the policy definition action.
/**
* @return the policy definition action.
*/
public String getPolicyDefinitionEffect() {
return policyDefinitionEffect;
}
Returns: the policy assignment id.
/**
* @return the policy assignment id.
*/
public String getPolicyAssignmentId() {
return policyAssignmentId;
}
Returns: the policy assignment name.
/**
* @return the policy assignment name.
*/
public String getPolicyAssignmentName() {
return policyAssignmentName;
}
Returns: the policy assignment display name.
/**
* @return the policy assignment display name.
*/
public String getPolicyAssignmentDisplayName() {
return policyAssignmentDisplayName;
}
Returns: the policy assignment scope.
/**
* @return the policy assignment scope.
*/
public String getPolicyAssignmentScope() {
return policyAssignmentScope;
}
Returns: the policy assignment parameters.
/**
* @return the policy assignment parameters.
*/
public HashMap<String, PolicyParameter> getPolicyAssignmentParameters() {
return policyAssignmentParameters;
}
Returns: the policy definition display name.
/**
* @return the policy definition display name.
*/
public String getPolicyDefinitionDisplayName() {
return policyDefinitionDisplayName;
}
Returns: the policy set definition display name.
/**
* @return the policy set definition display name.
*/
public String getPolicySetDefinitionDisplayName() {
return policySetDefinitionDisplayName;
}
An instance of this class provides policy parameter value.
/**
* An instance of this class provides policy parameter value.
*/
public static class PolicyParameter {
private JsonNode value;
Returns: the parameter value.
/**
* @return the parameter value.
*/
public JsonNode getValue() {
return value;
}
}
}