Class RemediationProperties
java.lang.Object
com.azure.resourcemanager.policyinsights.fluent.models.RemediationProperties
The remediation properties.
-
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.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.
-
Constructor Details
-
RemediationProperties
public RemediationProperties()Creates an instance of RemediationProperties class.
-
-
Method Details
-
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 RemediationProperties 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 RemediationProperties 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 RemediationProperties 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 RemediationProperties 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 RemediationProperties 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 RemediationProperties object itself.
-
failureThreshold
Get the failureThreshold property: The remediation failure threshold settings.- Returns:
- the failureThreshold value.
-
withFailureThreshold
public RemediationProperties withFailureThreshold(RemediationPropertiesFailureThreshold failureThreshold) Set the failureThreshold property: The remediation failure threshold settings.- Parameters:
failureThreshold
- the failureThreshold value to set.- Returns:
- the RemediationProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-