/** * <p> * The new status. * </p> * <p> * <b>Note:</b> Setting the status to PENDING_TRANSFER will result in an exception being thrown. PENDING_TRANSFER is * a status used internally by AWS IoT. It is 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 will result in an exception being thrown. * PENDING_TRANSFER is a status used internally by AWS IoT. It is 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 */ public UpdateCertificateRequest withNewStatus(String newStatus) { setNewStatus(newStatus); return this; }
/** * <p> * The new status. * </p> * <p> * <b>Note:</b> Setting the status to PENDING_TRANSFER will result in an exception being thrown. PENDING_TRANSFER is * a status used internally by AWS IoT. It is 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 will result in an exception being thrown. * PENDING_TRANSFER is a status used internally by AWS IoT. It is 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 */ public UpdateCertificateRequest withNewStatus(String newStatus) { setNewStatus(newStatus); return this; }
updateCertificateRequest.setNewStatus(CertificateStatus.INACTIVE); iotClient.updateCertificate(updateCertificateRequest);
updateCertificateRequest.setNewStatus(CertificateStatus.INACTIVE); iotClient.updateCertificate(updateCertificateRequest);
updateCertificateRequest.setNewStatus(CertificateStatus.INACTIVE); iotClient.updateCertificate(updateCertificateRequest);
updateCertificateRequest.setNewStatus(CertificateStatus.INACTIVE); iotClient.updateCertificate(updateCertificateRequest);
updateCertificateRequest.setNewStatus(CertificateStatus.INACTIVE); iotClient.updateCertificate(updateCertificateRequest);