public ModifyHostsRequest withHostMaintenance(String hostMaintenance) {
        setHostMaintenance(hostMaintenance);
        return this;
    }
<p>
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html">Host maintenance</a>
in the <i>Amazon EC2 User Guide</i>.
</p>

@param hostMaintenance
       Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see
       <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html">Host
       maintenance</a> in the <i>Amazon EC2 User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
@see HostMaintenance
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ModifyHostsRequest.java