@Override
    public SetUnhealthyNodeReplacementResult setUnhealthyNodeReplacement(SetUnhealthyNodeReplacementRequest request) {
        request = beforeClientExecution(request);
        return executeSetUnhealthyNodeReplacement(request);
    }
<p>
Specify whether to enable unhealthy node replacement, which lets Amazon EMR gracefully replace core nodes on a
cluster if any nodes become unhealthy. For example, a node becomes unhealthy if disk usage is above 90%. If
unhealthy node replacement is on and <code>TerminationProtected</code> are off, Amazon EMR immediately terminates
the unhealthy core nodes. To use unhealthy node replacement and retain unhealthy core nodes, use to turn on
termination protection. In such cases, Amazon EMR adds the unhealthy nodes to a denylist, reducing job
interruptions and failures.
</p>
<p>
If unhealthy node replacement is on, Amazon EMR notifies YARN and other applications on the cluster to stop
scheduling tasks with these nodes, moves the data, and then terminates the nodes.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-node-replacement.html">graceful node
replacement</a> in the <i>Amazon EMR Management Guide</i>.
</p>

@param setUnhealthyNodeReplacementRequest
@return Result of the SetUnhealthyNodeReplacement operation returned by the service.
@throws InternalServerErrorException
        Indicates that an error occurred while processing the request and that the request was not completed.
@sample AmazonElasticMapReduce.SetUnhealthyNodeReplacement
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetUnhealthyNodeReplacement"
     target="_top">AWS API Documentation</a>
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/AmazonElasticMapReduceClient.java