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 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

      public String policyAssignmentId()
      Get the policyAssignmentId property: The resource ID of the policy assignment that should be remediated.
      Returns:
      the policyAssignmentId value.
    • withPolicyAssignmentId

      public RemediationInner withPolicyAssignmentId(String policyAssignmentId)
      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

      public String 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

      public RemediationInner withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)
      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

      public ResourceDiscoveryMode resourceDiscoveryMode()
      Get the resourceDiscoveryMode property: The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
      Returns:
      the resourceDiscoveryMode value.
    • withResourceDiscoveryMode

      public RemediationInner withResourceDiscoveryMode(ResourceDiscoveryMode resourceDiscoveryMode)
      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

      public String provisioningState()
      Get the provisioningState property: The status of the remediation.
      Returns:
      the provisioningState value.
    • createdOn

      public OffsetDateTime createdOn()
      Get the createdOn property: The time at which the remediation was created.
      Returns:
      the createdOn value.
    • lastUpdatedOn

      public OffsetDateTime lastUpdatedOn()
      Get the lastUpdatedOn property: The time at which the remediation was last updated.
      Returns:
      the lastUpdatedOn value.
    • filters

      public RemediationFilters filters()
      Get the filters property: The filters that will be applied to determine which resources to remediate.
      Returns:
      the filters value.
    • withFilters

      public RemediationInner withFilters(RemediationFilters filters)
      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

      public RemediationDeploymentSummary deploymentStatus()
      Get the deploymentStatus property: The deployment status summary for all deployments created by the remediation.
      Returns:
      the deploymentStatus value.
    • statusMessage

      public String statusMessage()
      Get the statusMessage property: The remediation status message. Provides additional details regarding the state of the remediation.
      Returns:
      the statusMessage value.
    • correlationId

      public String 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

      public Integer 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

      public RemediationInner withResourceCount(Integer resourceCount)
      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

      public Integer 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

      public RemediationInner withParallelDeployments(Integer parallelDeployments)
      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

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