code: public ListEventSourceMappingsResult withEventSourceMappings(EventSourceMappingConfiguration... eventSourceMappings) {
          if (this.eventSourceMappings == null) {
              setEventSourceMappings(new com.amazonaws.internal.SdkInternalList<EventSourceMappingConfiguration>(eventSourceMappings.length));
          }
          for (EventSourceMappingConfiguration ele : eventSourceMappings) {
              this.eventSourceMappings.add(ele);
          }
          return this;
      }
docs: <p>
  A list of event source mappings.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEventSourceMappings(java.util.Collection)} or {@link #withEventSourceMappings(java.util.Collection)}
  if you want to override the existing values.
  </p>
  
  @param eventSourceMappings
  A list of event source mappings.
  @return Returns a reference to this object so that method calls can be chained together.