public UpdateCertificateRequest withNewStatus(CertificateStatus newStatus) {
        this.newStatus = newStatus.toString();
        return this;
    }
<p>
The new status.
</p>
<p>
<b>Note:</b> Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being
thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for
developer use.
</p>
<p>
<b>Note:</b> The status value REGISTER_INACTIVE is deprecated and should not be used.
</p>

@param newStatus
       The new status.</p>
       <p>
       <b>Note:</b> Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception
       being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not
       intended for developer use.
       </p>
       <p>
       <b>Note:</b> The status value REGISTER_INACTIVE is deprecated and should not be used.
@return Returns a reference to this object so that method calls can be chained together.
@see CertificateStatus
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/UpdateCertificateRequest.java