Class RemediationInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.policyinsights.fluent.models.RemediationInner
public final class RemediationInner
extends com.azure.core.management.ProxyResource
The remediation definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the correlationId property: The remediation correlation Id.Get the createdOn property: The time at which the remediation was created.Get the deploymentStatus property: The deployment status summary for all deployments created by the remediation.Get the failureThreshold property: The remediation failure threshold settings.filters()
Get the filters property: The filters that will be applied to determine which resources to remediate.Get the lastUpdatedOn property: The time at which the remediation was last updated.Get the parallelDeployments property: Determines how many resources to remediate at any given time.Get the policyAssignmentId property: The resource ID of the policy assignment that should be remediated.Get the policyDefinitionReferenceId property: The policy definition reference ID of the individual definition that should be remediated.Get the provisioningState property: The status of the remediation.Get the resourceCount property: Determines the max number of resources that can be remediated by the remediation job.Get the resourceDiscoveryMode property: The way resources to remediate are discovered.Get the statusMessage property: The remediation status message.com.azure.core.management.SystemData
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.void
validate()
Validates the instance.withFailureThreshold
(RemediationPropertiesFailureThreshold failureThreshold) Set the failureThreshold property: The remediation failure threshold settings.withFilters
(RemediationFilters filters) Set the filters property: The filters that will be applied to determine which resources to remediate.withParallelDeployments
(Integer parallelDeployments) Set the parallelDeployments property: Determines how many resources to remediate at any given time.withPolicyAssignmentId
(String policyAssignmentId) Set the policyAssignmentId property: The resource ID of the policy assignment that should be remediated.withPolicyDefinitionReferenceId
(String policyDefinitionReferenceId) Set the policyDefinitionReferenceId property: The policy definition reference ID of the individual definition that should be remediated.withResourceCount
(Integer resourceCount) Set the resourceCount property: Determines the max number of resources that can be remediated by the remediation job.withResourceDiscoveryMode
(ResourceDiscoveryMode resourceDiscoveryMode) Set the resourceDiscoveryMode property: The way resources to remediate are discovered.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
RemediationInner
public RemediationInner()Creates an instance of RemediationInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
policyAssignmentId
Get the policyAssignmentId property: The resource ID of the policy assignment that should be remediated.- Returns:
- the policyAssignmentId value.
-
withPolicyAssignmentId
Set the policyAssignmentId property: The resource ID of the policy assignment that should be remediated.- Parameters:
policyAssignmentId
- the policyAssignmentId value to set.- Returns:
- the RemediationInner object itself.
-
policyDefinitionReferenceId
Get the policyDefinitionReferenceId property: The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.- Returns:
- the policyDefinitionReferenceId value.
-
withPolicyDefinitionReferenceId
Set the policyDefinitionReferenceId property: The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.- Parameters:
policyDefinitionReferenceId
- the policyDefinitionReferenceId value to set.- Returns:
- the RemediationInner object itself.
-
resourceDiscoveryMode
Get the resourceDiscoveryMode property: The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.- Returns:
- the resourceDiscoveryMode value.
-
withResourceDiscoveryMode
Set the resourceDiscoveryMode property: The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.- Parameters:
resourceDiscoveryMode
- the resourceDiscoveryMode value to set.- Returns:
- the RemediationInner object itself.
-
provisioningState
Get the provisioningState property: The status of the remediation.- Returns:
- the provisioningState value.
-
createdOn
Get the createdOn property: The time at which the remediation was created.- Returns:
- the createdOn value.
-
lastUpdatedOn
Get the lastUpdatedOn property: The time at which the remediation was last updated.- Returns:
- the lastUpdatedOn value.
-
filters
Get the filters property: The filters that will be applied to determine which resources to remediate.- Returns:
- the filters value.
-
withFilters
Set the filters property: The filters that will be applied to determine which resources to remediate.- Parameters:
filters
- the filters value to set.- Returns:
- the RemediationInner object itself.
-
deploymentStatus
Get the deploymentStatus property: The deployment status summary for all deployments created by the remediation.- Returns:
- the deploymentStatus value.
-
statusMessage
Get the statusMessage property: The remediation status message. Provides additional details regarding the state of the remediation.- Returns:
- the statusMessage value.
-
correlationId
Get the correlationId property: The remediation correlation Id. Can be used to find events related to the remediation in the activity log.- Returns:
- the correlationId value.
-
resourceCount
Get the resourceCount property: Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.- Returns:
- the resourceCount value.
-
withResourceCount
Set the resourceCount property: Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.- Parameters:
resourceCount
- the resourceCount value to set.- Returns:
- the RemediationInner object itself.
-
parallelDeployments
Get the parallelDeployments property: Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.- Returns:
- the parallelDeployments value.
-
withParallelDeployments
Set the parallelDeployments property: Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.- Parameters:
parallelDeployments
- the parallelDeployments value to set.- Returns:
- the RemediationInner object itself.
-
failureThreshold
Get the failureThreshold property: The remediation failure threshold settings.- Returns:
- the failureThreshold value.
-
withFailureThreshold
public RemediationInner withFailureThreshold(RemediationPropertiesFailureThreshold failureThreshold) Set the failureThreshold property: The remediation failure threshold settings.- Parameters:
failureThreshold
- the failureThreshold value to set.- Returns:
- the RemediationInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-