code: public ListDeviceEventsResult withEvents(DeviceEvent... events) {
          if (this.events == null) {
              setEvents(new java.util.ArrayList<DeviceEvent>(events.length));
          }
          for (DeviceEvent ele : events) {
              this.events.add(ele);
          }
          return this;
      }
docs: <p>
  An array of zero or more elements describing the event(s) associated with the device.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEvents(java.util.Collection)} or {@link #withEvents(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param events
  An array of zero or more elements describing the event(s) associated with the device.
  @return Returns a reference to this object so that method calls can be chained together.