Class SummaryResults

java.lang.Object
com.azure.resourcemanager.policyinsights.models.SummaryResults

public final class SummaryResults extends Object
Compliance summary on a particular summary level.
  • Constructor Details

    • SummaryResults

      public SummaryResults()
      Creates an instance of SummaryResults class.
  • Method Details

    • queryResultsUri

      public String 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

      public SummaryResults withQueryResultsUri(String queryResultsUri)
      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

      public Integer nonCompliantResources()
      Get the nonCompliantResources property: Number of non-compliant resources.
      Returns:
      the nonCompliantResources value.
    • withNonCompliantResources

      public SummaryResults withNonCompliantResources(Integer nonCompliantResources)
      Set the nonCompliantResources property: Number of non-compliant resources.
      Parameters:
      nonCompliantResources - the nonCompliantResources value to set.
      Returns:
      the SummaryResults object itself.
    • nonCompliantPolicies

      public Integer nonCompliantPolicies()
      Get the nonCompliantPolicies property: Number of non-compliant policies.
      Returns:
      the nonCompliantPolicies value.
    • withNonCompliantPolicies

      public SummaryResults withNonCompliantPolicies(Integer nonCompliantPolicies)
      Set the nonCompliantPolicies property: Number of non-compliant policies.
      Parameters:
      nonCompliantPolicies - the nonCompliantPolicies value to set.
      Returns:
      the SummaryResults object itself.
    • resourceDetails

      public List<ComplianceDetail> resourceDetails()
      Get the resourceDetails property: The resources summary at this level.
      Returns:
      the resourceDetails value.
    • withResourceDetails

      public SummaryResults withResourceDetails(List<ComplianceDetail> resourceDetails)
      Set the resourceDetails property: The resources summary at this level.
      Parameters:
      resourceDetails - the resourceDetails value to set.
      Returns:
      the SummaryResults object itself.
    • policyDetails

      public List<ComplianceDetail> 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

      public SummaryResults withPolicyDetails(List<ComplianceDetail> policyDetails)
      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

      public List<ComplianceDetail> policyGroupDetails()
      Get the policyGroupDetails property: The policy definition group summary at this level.
      Returns:
      the policyGroupDetails value.
    • withPolicyGroupDetails

      public SummaryResults withPolicyGroupDetails(List<ComplianceDetail> policyGroupDetails)
      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.