/** * The event code. * * <p>Returns a reference to this object so that method calls can be chained together. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>instance-reboot, system-reboot, system-maintenance, instance-retirement, * instance-stop * * @param code The event code. * @return A reference to this updated object so that method calls can be chained together. * @see EventCode */ public InstanceStatusEvent withCode(EventCode code) { this.code = code.toString(); return this; }
/** * Type of event being logged. * * @param eventCode Type of event being logged. * @see EventCode */ public void setEventCode(EventCode eventCode) { this.eventCode = eventCode.toString(); }
/** * The event code. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>instance-reboot, system-reboot, system-maintenance, instance-retirement, * instance-stop * * @param code The event code. * @see EventCode */ public void setCode(EventCode code) { this.code = code.toString(); }