Class PolicyAssignmentSummary
java.lang.Object
com.azure.resourcemanager.policyinsights.models.PolicyAssignmentSummary
Policy assignment summary.
-
Constructor Summary
ConstructorDescriptionCreates an instance of PolicyAssignmentSummary class. -
Method Summary
Modifier and TypeMethodDescriptionGet the policyAssignmentId property: Policy assignment ID.Get the policyDefinitions property: Policy definitions summary.Get the policyGroups property: Policy definition group summary.Get the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.results()
Get the results property: Compliance summary for the policy assignment.void
validate()
Validates the instance.withPolicyAssignmentId
(String policyAssignmentId) Set the policyAssignmentId property: Policy assignment ID.withPolicyDefinitions
(List<PolicyDefinitionSummary> policyDefinitions) Set the policyDefinitions property: Policy definitions summary.withPolicyGroups
(List<PolicyGroupSummary> policyGroups) Set the policyGroups property: Policy definition group summary.withPolicySetDefinitionId
(String policySetDefinitionId) Set the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.withResults
(SummaryResults results) Set the results property: Compliance summary for the policy assignment.
-
Constructor Details
-
PolicyAssignmentSummary
public PolicyAssignmentSummary()Creates an instance of PolicyAssignmentSummary class.
-
-
Method Details
-
policyAssignmentId
Get the policyAssignmentId property: Policy assignment ID.- Returns:
- the policyAssignmentId value.
-
withPolicyAssignmentId
Set the policyAssignmentId property: Policy assignment ID.- Parameters:
policyAssignmentId
- the policyAssignmentId value to set.- Returns:
- the PolicyAssignmentSummary object itself.
-
policySetDefinitionId
Get the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionId value.
-
withPolicySetDefinitionId
Set the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.- Parameters:
policySetDefinitionId
- the policySetDefinitionId value to set.- Returns:
- the PolicyAssignmentSummary object itself.
-
results
Get the results property: Compliance summary for the policy assignment.- Returns:
- the results value.
-
withResults
Set the results property: Compliance summary for the policy assignment.- Parameters:
results
- the results value to set.- Returns:
- the PolicyAssignmentSummary object itself.
-
policyDefinitions
Get the policyDefinitions property: Policy definitions summary.- Returns:
- the policyDefinitions value.
-
withPolicyDefinitions
public PolicyAssignmentSummary withPolicyDefinitions(List<PolicyDefinitionSummary> policyDefinitions) Set the policyDefinitions property: Policy definitions summary.- Parameters:
policyDefinitions
- the policyDefinitions value to set.- Returns:
- the PolicyAssignmentSummary object itself.
-
policyGroups
Get the policyGroups property: Policy definition group summary.- Returns:
- the policyGroups value.
-
withPolicyGroups
Set the policyGroups property: Policy definition group summary.- Parameters:
policyGroups
- the policyGroups value to set.- Returns:
- the PolicyAssignmentSummary object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-