SummaryResults Class

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

public final class SummaryResults

Compliance summary on a particular summary level.

Constructor Summary

Constructor Description
SummaryResults()

Creates an instance of SummaryResults class.

Method Summary

Modifier and Type Method and Description
Integer nonCompliantPolicies()

Get the nonCompliantPolicies property: Number of non-compliant policies.

Integer nonCompliantResources()

Get the nonCompliantResources property: Number of non-compliant resources.

List<ComplianceDetail> policyDetails()

Get the policyDetails property: The policy artifact summary at this level.

List<ComplianceDetail> policyGroupDetails()

Get the policyGroupDetails property: The policy definition group summary at this level.

String queryResultsUri()

Get the queryResultsUri property: HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary.

List<ComplianceDetail> resourceDetails()

Get the resourceDetails property: The resources summary at this level.

void validate()

Validates the instance.

SummaryResults withNonCompliantPolicies(Integer nonCompliantPolicies)

Set the nonCompliantPolicies property: Number of non-compliant policies.

SummaryResults withNonCompliantResources(Integer nonCompliantResources)

Set the nonCompliantResources property: Number of non-compliant resources.

SummaryResults withPolicyDetails(List<ComplianceDetail> policyDetails)

Set the policyDetails property: The policy artifact summary at this level.

SummaryResults withPolicyGroupDetails(List<ComplianceDetail> policyGroupDetails)

Set the policyGroupDetails property: The policy definition group summary at this level.

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.

SummaryResults withResourceDetails(List<ComplianceDetail> resourceDetails)

Set the resourceDetails property: The resources summary at this level.

Methods inherited from java.lang.Object

Constructor Details

SummaryResults

public SummaryResults()

Creates an instance of SummaryResults class.

Method Details

nonCompliantPolicies

public Integer nonCompliantPolicies()

Get the nonCompliantPolicies property: Number of non-compliant policies.

Returns:

the nonCompliantPolicies value.

nonCompliantResources

public Integer nonCompliantResources()

Get the nonCompliantResources property: Number of non-compliant resources.

Returns:

the nonCompliantResources value.

policyDetails

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

policyGroupDetails

public List policyGroupDetails()

Get the policyGroupDetails property: The policy definition group summary at this level.

Returns:

the policyGroupDetails value.

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.

resourceDetails

public List resourceDetails()

Get the resourceDetails property: The resources summary at this level.

Returns:

the resourceDetails value.

validate

public void validate()

Validates the instance.

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.

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.

withPolicyDetails

public SummaryResults withPolicyDetails(List 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.

withPolicyGroupDetails

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

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.

withResourceDetails

public SummaryResults withResourceDetails(List resourceDetails)

Set the resourceDetails property: The resources summary at this level.

Parameters:

resourceDetails - the resourceDetails value to set.

Returns:

the SummaryResults object itself.

Applies to