code: public GetDeviceMethodsResult withDeviceMethods(DeviceMethod... deviceMethods) {
          if (this.deviceMethods == null) {
              setDeviceMethods(new java.util.ArrayList<DeviceMethod>(deviceMethods.length));
          }
          for (DeviceMethod ele : deviceMethods) {
              this.deviceMethods.add(ele);
          }
          return this;
      }
docs: <p>
  List of available device APIs.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDeviceMethods(java.util.Collection)} or {@link #withDeviceMethods(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param deviceMethods
  List of available device APIs.
  @return Returns a reference to this object so that method calls can be chained together.