public void setHostRecovery(String hostRecovery) {
        this.hostRecovery = hostRecovery;
    }
<p>
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
default. For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html"> Host recovery</a> in
the <i>Amazon EC2 User Guide</i>.
</p>
<p>
Default: <code>off</code>
</p>

@param hostRecovery
       Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
       default. For more information, see <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html"> Host
       recovery</a> in the <i>Amazon EC2 User Guide</i>.</p>
       <p>
       Default: <code>off</code>
@see HostRecovery
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/AllocateHostsRequest.java