Class PolicyStateInner
java.lang.Object
com.azure.resourcemanager.policyinsights.fluent.models.PolicyStateInner
Policy state record.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Policy state record.Get the complianceState property: Compliance state of the resource.Get the components property: Components state compliance records populated only when URL contains $expand=components clause.Get the effectiveParameters property: Effective parameters for the policy assignment.Get the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against.Get the managementGroupIds property: Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.Get the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.odataId()
Get the odataId property: OData entity ID; always set to null since policy state records do not have an entity ID.Get the policyAssignmentId property: Policy assignment ID.Get the policyAssignmentName property: Policy assignment name.Get the policyAssignmentOwner property: Policy assignment owner.Get the policyAssignmentParameters property: Policy assignment parameters.Get the policyAssignmentScope property: Policy assignment scope.Get the policyAssignmentVersion property: Evaluated policy assignment version.Get the policyDefinitionAction property: Policy definition action, i.e.Get the policyDefinitionCategory property: Policy definition category.Get the policyDefinitionGroupNames property: Policy definition group names.Get the policyDefinitionId property: Policy definition ID.Get the policyDefinitionName property: Policy definition name.Get the policyDefinitionReferenceId property: Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.Get the policyDefinitionVersion property: Evaluated policy definition version.Get the policyEvaluationDetails property: Policy evaluation details.Get the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.Get the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.Get the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.Get the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.Get the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.Get the policySetDefinitionVersion property: Evaluated policy set definition version.Get the resourceGroup property: Resource group name.Get the resourceId property: Resource ID.Get the resourceLocation property: Resource location.Get the resourceTags property: List of resource tags.Get the resourceType property: Resource type.Get the subscriptionId property: Subscription ID.Get the timestamp property: Timestamp for the policy state record.void
validate()
Validates the instance.withAdditionalProperties
(Map<String, Object> additionalProperties) Set the additionalProperties property: Policy state record.withComplianceState
(String complianceState) Set the complianceState property: Compliance state of the resource.withComponents
(List<ComponentStateDetails> components) Set the components property: Components state compliance records populated only when URL contains $expand=components clause.withEffectiveParameters
(String effectiveParameters) Set the effectiveParameters property: Effective parameters for the policy assignment.withIsCompliant
(Boolean isCompliant) Set the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against.withManagementGroupIds
(String managementGroupIds) Set the managementGroupIds property: Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.withOdataContext
(String odataContext) Set the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.withOdataId
(String odataId) Set the odataId property: OData entity ID; always set to null since policy state records do not have an entity ID.withPolicyAssignmentId
(String policyAssignmentId) Set the policyAssignmentId property: Policy assignment ID.withPolicyAssignmentName
(String policyAssignmentName) Set the policyAssignmentName property: Policy assignment name.withPolicyAssignmentOwner
(String policyAssignmentOwner) Set the policyAssignmentOwner property: Policy assignment owner.withPolicyAssignmentParameters
(String policyAssignmentParameters) Set the policyAssignmentParameters property: Policy assignment parameters.withPolicyAssignmentScope
(String policyAssignmentScope) Set the policyAssignmentScope property: Policy assignment scope.withPolicyDefinitionAction
(String policyDefinitionAction) Set the policyDefinitionAction property: Policy definition action, i.e.withPolicyDefinitionCategory
(String policyDefinitionCategory) Set the policyDefinitionCategory property: Policy definition category.withPolicyDefinitionGroupNames
(List<String> policyDefinitionGroupNames) Set the policyDefinitionGroupNames property: Policy definition group names.withPolicyDefinitionId
(String policyDefinitionId) Set the policyDefinitionId property: Policy definition ID.withPolicyDefinitionName
(String policyDefinitionName) Set the policyDefinitionName property: Policy definition name.withPolicyDefinitionReferenceId
(String policyDefinitionReferenceId) Set the policyDefinitionReferenceId property: Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.withPolicyEvaluationDetails
(PolicyEvaluationDetails policyEvaluationDetails) Set the policyEvaluationDetails property: Policy evaluation details.withPolicySetDefinitionCategory
(String policySetDefinitionCategory) Set the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.withPolicySetDefinitionId
(String policySetDefinitionId) Set the policySetDefinitionId property: Policy set definition ID, if the policy assignment is for a policy set.withPolicySetDefinitionName
(String policySetDefinitionName) Set the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.withPolicySetDefinitionOwner
(String policySetDefinitionOwner) Set the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.withPolicySetDefinitionParameters
(String policySetDefinitionParameters) Set the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.withResourceGroup
(String resourceGroup) Set the resourceGroup property: Resource group name.withResourceId
(String resourceId) Set the resourceId property: Resource ID.withResourceLocation
(String resourceLocation) Set the resourceLocation property: Resource location.withResourceTags
(String resourceTags) Set the resourceTags property: List of resource tags.withResourceType
(String resourceType) Set the resourceType property: Resource type.withSubscriptionId
(String subscriptionId) Set the subscriptionId property: Subscription ID.withTimestamp
(OffsetDateTime timestamp) Set the timestamp property: Timestamp for the policy state record.
-
Constructor Details
-
PolicyStateInner
public PolicyStateInner()Creates an instance of PolicyStateInner class.
-
-
Method Details
-
odataId
Get the odataId property: OData entity ID; always set to null since policy state records do not have an entity ID.- Returns:
- the odataId value.
-
withOdataId
Set the odataId property: OData entity ID; always set to null since policy state records do not have an entity ID.- Parameters:
odataId
- the odataId value to set.- Returns:
- the PolicyStateInner object itself.
-
odataContext
Get the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.- Returns:
- the odataContext value.
-
withOdataContext
Set the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.- Parameters:
odataContext
- the odataContext value to set.- Returns:
- the PolicyStateInner object itself.
-
timestamp
Get the timestamp property: Timestamp for the policy state record.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: Timestamp for the policy state record.- Parameters:
timestamp
- the timestamp value to set.- Returns:
- the PolicyStateInner object itself.
-
resourceId
Get the resourceId property: Resource ID.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Resource ID.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the PolicyStateInner object itself.
-
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 PolicyStateInner object itself.
-
policyDefinitionId
Get the policyDefinitionId property: Policy definition ID.- Returns:
- the policyDefinitionId value.
-
withPolicyDefinitionId
Set the policyDefinitionId property: Policy definition ID.- Parameters:
policyDefinitionId
- the policyDefinitionId value to set.- Returns:
- the PolicyStateInner object itself.
-
effectiveParameters
Get the effectiveParameters property: Effective parameters for the policy assignment.- Returns:
- the effectiveParameters value.
-
withEffectiveParameters
Set the effectiveParameters property: Effective parameters for the policy assignment.- Parameters:
effectiveParameters
- the effectiveParameters value to set.- Returns:
- the PolicyStateInner object itself.
-
isCompliant
Get the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead.- Returns:
- the isCompliant value.
-
withIsCompliant
Set the isCompliant property: Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead.- Parameters:
isCompliant
- the isCompliant value to set.- Returns:
- the PolicyStateInner object itself.
-
subscriptionId
Get the subscriptionId property: Subscription ID.- Returns:
- the subscriptionId value.
-
withSubscriptionId
Set the subscriptionId property: Subscription ID.- Parameters:
subscriptionId
- the subscriptionId value to set.- Returns:
- the PolicyStateInner object itself.
-
resourceType
Get the resourceType property: Resource type.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: Resource type.- Parameters:
resourceType
- the resourceType value to set.- Returns:
- the PolicyStateInner object itself.
-
resourceLocation
Get the resourceLocation property: Resource location.- Returns:
- the resourceLocation value.
-
withResourceLocation
Set the resourceLocation property: Resource location.- Parameters:
resourceLocation
- the resourceLocation value to set.- Returns:
- the PolicyStateInner object itself.
-
resourceGroup
Get the resourceGroup property: Resource group name.- Returns:
- the resourceGroup value.
-
withResourceGroup
Set the resourceGroup property: Resource group name.- Parameters:
resourceGroup
- the resourceGroup value to set.- Returns:
- the PolicyStateInner object itself.
-
resourceTags
Get the resourceTags property: List of resource tags.- Returns:
- the resourceTags value.
-
withResourceTags
Set the resourceTags property: List of resource tags.- Parameters:
resourceTags
- the resourceTags value to set.- Returns:
- the PolicyStateInner object itself.
-
policyAssignmentName
Get the policyAssignmentName property: Policy assignment name.- Returns:
- the policyAssignmentName value.
-
withPolicyAssignmentName
Set the policyAssignmentName property: Policy assignment name.- Parameters:
policyAssignmentName
- the policyAssignmentName value to set.- Returns:
- the PolicyStateInner object itself.
-
policyAssignmentOwner
Get the policyAssignmentOwner property: Policy assignment owner.- Returns:
- the policyAssignmentOwner value.
-
withPolicyAssignmentOwner
Set the policyAssignmentOwner property: Policy assignment owner.- Parameters:
policyAssignmentOwner
- the policyAssignmentOwner value to set.- Returns:
- the PolicyStateInner object itself.
-
policyAssignmentParameters
Get the policyAssignmentParameters property: Policy assignment parameters.- Returns:
- the policyAssignmentParameters value.
-
withPolicyAssignmentParameters
Set the policyAssignmentParameters property: Policy assignment parameters.- Parameters:
policyAssignmentParameters
- the policyAssignmentParameters value to set.- Returns:
- the PolicyStateInner object itself.
-
policyAssignmentScope
Get the policyAssignmentScope property: Policy assignment scope.- Returns:
- the policyAssignmentScope value.
-
withPolicyAssignmentScope
Set the policyAssignmentScope property: Policy assignment scope.- Parameters:
policyAssignmentScope
- the policyAssignmentScope value to set.- Returns:
- the PolicyStateInner object itself.
-
policyDefinitionName
Get the policyDefinitionName property: Policy definition name.- Returns:
- the policyDefinitionName value.
-
withPolicyDefinitionName
Set the policyDefinitionName property: Policy definition name.- Parameters:
policyDefinitionName
- the policyDefinitionName value to set.- Returns:
- the PolicyStateInner object itself.
-
policyDefinitionAction
Get the policyDefinitionAction property: Policy definition action, i.e. effect.- Returns:
- the policyDefinitionAction value.
-
withPolicyDefinitionAction
Set the policyDefinitionAction property: Policy definition action, i.e. effect.- Parameters:
policyDefinitionAction
- the policyDefinitionAction value to set.- Returns:
- the PolicyStateInner object itself.
-
policyDefinitionCategory
Get the policyDefinitionCategory property: Policy definition category.- Returns:
- the policyDefinitionCategory value.
-
withPolicyDefinitionCategory
Set the policyDefinitionCategory property: Policy definition category.- Parameters:
policyDefinitionCategory
- the policyDefinitionCategory value to set.- Returns:
- the PolicyStateInner 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 PolicyStateInner object itself.
-
policySetDefinitionName
Get the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionName value.
-
withPolicySetDefinitionName
Set the policySetDefinitionName property: Policy set definition name, if the policy assignment is for a policy set.- Parameters:
policySetDefinitionName
- the policySetDefinitionName value to set.- Returns:
- the PolicyStateInner object itself.
-
policySetDefinitionOwner
Get the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionOwner value.
-
withPolicySetDefinitionOwner
Set the policySetDefinitionOwner property: Policy set definition owner, if the policy assignment is for a policy set.- Parameters:
policySetDefinitionOwner
- the policySetDefinitionOwner value to set.- Returns:
- the PolicyStateInner object itself.
-
policySetDefinitionCategory
Get the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionCategory value.
-
withPolicySetDefinitionCategory
Set the policySetDefinitionCategory property: Policy set definition category, if the policy assignment is for a policy set.- Parameters:
policySetDefinitionCategory
- the policySetDefinitionCategory value to set.- Returns:
- the PolicyStateInner object itself.
-
policySetDefinitionParameters
Get the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.- Returns:
- the policySetDefinitionParameters value.
-
withPolicySetDefinitionParameters
Set the policySetDefinitionParameters property: Policy set definition parameters, if the policy assignment is for a policy set.- Parameters:
policySetDefinitionParameters
- the policySetDefinitionParameters value to set.- Returns:
- the PolicyStateInner object itself.
-
managementGroupIds
Get the managementGroupIds property: Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.- Returns:
- the managementGroupIds value.
-
withManagementGroupIds
Set the managementGroupIds property: Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.- Parameters:
managementGroupIds
- the managementGroupIds value to set.- Returns:
- the PolicyStateInner object itself.
-
policyDefinitionReferenceId
Get the policyDefinitionReferenceId property: Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.- Returns:
- the policyDefinitionReferenceId value.
-
withPolicyDefinitionReferenceId
Set the policyDefinitionReferenceId property: Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.- Parameters:
policyDefinitionReferenceId
- the policyDefinitionReferenceId value to set.- Returns:
- the PolicyStateInner object itself.
-
complianceState
Get the complianceState property: Compliance state of the resource.- Returns:
- the complianceState value.
-
withComplianceState
Set the complianceState property: Compliance state of the resource.- Parameters:
complianceState
- the complianceState value to set.- Returns:
- the PolicyStateInner object itself.
-
policyEvaluationDetails
Get the policyEvaluationDetails property: Policy evaluation details.- Returns:
- the policyEvaluationDetails value.
-
withPolicyEvaluationDetails
public PolicyStateInner withPolicyEvaluationDetails(PolicyEvaluationDetails policyEvaluationDetails) Set the policyEvaluationDetails property: Policy evaluation details.- Parameters:
policyEvaluationDetails
- the policyEvaluationDetails value to set.- Returns:
- the PolicyStateInner object itself.
-
policyDefinitionGroupNames
Get the policyDefinitionGroupNames property: Policy definition group names.- Returns:
- the policyDefinitionGroupNames value.
-
withPolicyDefinitionGroupNames
Set the policyDefinitionGroupNames property: Policy definition group names.- Parameters:
policyDefinitionGroupNames
- the policyDefinitionGroupNames value to set.- Returns:
- the PolicyStateInner object itself.
-
components
Get the components property: Components state compliance records populated only when URL contains $expand=components clause.- Returns:
- the components value.
-
withComponents
Set the components property: Components state compliance records populated only when URL contains $expand=components clause.- Parameters:
components
- the components value to set.- Returns:
- the PolicyStateInner object itself.
-
policyDefinitionVersion
Get the policyDefinitionVersion property: Evaluated policy definition version.- Returns:
- the policyDefinitionVersion value.
-
policySetDefinitionVersion
Get the policySetDefinitionVersion property: Evaluated policy set definition version.- Returns:
- the policySetDefinitionVersion value.
-
policyAssignmentVersion
Get the policyAssignmentVersion property: Evaluated policy assignment version.- Returns:
- the policyAssignmentVersion value.
-
additionalProperties
Get the additionalProperties property: Policy state record.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: Policy state record.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the PolicyStateInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-