/** * <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. * @see CertificateStatus */ public void setNewStatus(CertificateStatus newStatus) { withNewStatus(newStatus); }
/** * <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. * @see CertificateStatus */ public void setNewStatus(CertificateStatus newStatus) { withNewStatus(newStatus); }
try { getClient().updateCertificate(new UpdateCertificateRequest().withCertificateId(certId). withNewStatus(CertificateStatus.INACTIVE)); } catch (Exception e) { } try {
try { getClient().updateCertificate(new UpdateCertificateRequest().withCertificateId(certId). withNewStatus(CertificateStatus.INACTIVE)); } catch (Exception e) { } try {