/** * The states of the listed Reserved Instances. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>available, sold, cancelled, pending * * @param state The states of the listed Reserved Instances. * @see ListingState */ public void setState(ListingState state) { this.state = state.toString(); }
/** * The states of the listed Reserved Instances. * * <p>Returns a reference to this object so that method calls can be chained together. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>available, sold, cancelled, pending * * @param state The states of the listed Reserved Instances. * @return A reference to this updated object so that method calls can be chained together. * @see ListingState */ public InstanceCount withState(ListingState state) { this.state = state.toString(); return this; }