/** * Indicates whether monitoring is enabled for the instance. * * <p>Returns a reference to this object so that method calls can be chained together. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>disabled, enabled, pending * * @param state Indicates whether monitoring is enabled for the instance. * @return A reference to this updated object so that method calls can be chained together. * @see MonitoringState */ public Monitoring withState(MonitoringState state) { this.state = state.toString(); return this; }
/** * Indicates whether monitoring is enabled for the instance. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>disabled, enabled, pending * * @param state Indicates whether monitoring is enabled for the instance. * @see MonitoringState */ public void setState(MonitoringState state) { this.state = state.toString(); }