Class SummaryResults
java.lang.Object
com.azure.resourcemanager.policyinsights.models.SummaryResults
Compliance summary on a particular summary level.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the nonCompliantPolicies property: Number of non-compliant policies.Get the nonCompliantResources property: Number of non-compliant resources.Get the policyDetails property: The policy artifact summary at this level.Get the policyGroupDetails property: The policy definition group summary at this level.Get the queryResultsUri property: HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary.Get the resourceDetails property: The resources summary at this level.void
validate()
Validates the instance.withNonCompliantPolicies
(Integer nonCompliantPolicies) Set the nonCompliantPolicies property: Number of non-compliant policies.withNonCompliantResources
(Integer nonCompliantResources) Set the nonCompliantResources property: Number of non-compliant resources.withPolicyDetails
(List<ComplianceDetail> policyDetails) Set the policyDetails property: The policy artifact summary at this level.withPolicyGroupDetails
(List<ComplianceDetail> policyGroupDetails) Set the policyGroupDetails property: The policy definition group summary at this level.withQueryResultsUri
(String queryResultsUri) Set the queryResultsUri property: HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary.withResourceDetails
(List<ComplianceDetail> resourceDetails) Set the resourceDetails property: The resources summary at this level.
-
Constructor Details
-
SummaryResults
public SummaryResults()Creates an instance of SummaryResults class.
-
-
Method Details
-
queryResultsUri
Get the queryResultsUri property: HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary. This property will not be available by default in future API versions, but could be queried explicitly.- Returns:
- the queryResultsUri value.
-
withQueryResultsUri
Set the queryResultsUri property: HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary. This property will not be available by default in future API versions, but could be queried explicitly.- Parameters:
queryResultsUri
- the queryResultsUri value to set.- Returns:
- the SummaryResults object itself.
-
nonCompliantResources
Get the nonCompliantResources property: Number of non-compliant resources.- Returns:
- the nonCompliantResources value.
-
withNonCompliantResources
Set the nonCompliantResources property: Number of non-compliant resources.- Parameters:
nonCompliantResources
- the nonCompliantResources value to set.- Returns:
- the SummaryResults object itself.
-
nonCompliantPolicies
Get the nonCompliantPolicies property: Number of non-compliant policies.- Returns:
- the nonCompliantPolicies value.
-
withNonCompliantPolicies
Set the nonCompliantPolicies property: Number of non-compliant policies.- Parameters:
nonCompliantPolicies
- the nonCompliantPolicies value to set.- Returns:
- the SummaryResults object itself.
-
resourceDetails
Get the resourceDetails property: The resources summary at this level.- Returns:
- the resourceDetails value.
-
withResourceDetails
Set the resourceDetails property: The resources summary at this level.- Parameters:
resourceDetails
- the resourceDetails value to set.- Returns:
- the SummaryResults object itself.
-
policyDetails
Get the policyDetails property: The policy artifact summary at this level. For query scope level, it represents policy assignment summary. For policy assignment level, it represents policy definitions summary.- Returns:
- the policyDetails value.
-
withPolicyDetails
Set the policyDetails property: The policy artifact summary at this level. For query scope level, it represents policy assignment summary. For policy assignment level, it represents policy definitions summary.- Parameters:
policyDetails
- the policyDetails value to set.- Returns:
- the SummaryResults object itself.
-
policyGroupDetails
Get the policyGroupDetails property: The policy definition group summary at this level.- Returns:
- the policyGroupDetails value.
-
withPolicyGroupDetails
Set the policyGroupDetails property: The policy definition group summary at this level.- Parameters:
policyGroupDetails
- the policyGroupDetails value to set.- Returns:
- the SummaryResults object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-