code: public GetServiceLastAccessedDetailsWithEntitiesResult withEntityDetailsList(EntityDetails... entityDetailsList) {
          if (this.entityDetailsList == null) {
              setEntityDetailsList(new com.amazonaws.internal.SdkInternalList<EntityDetails>(entityDetailsList.length));
          }
          for (EntityDetails ele : entityDetailsList) {
              this.entityDetailsList.add(ele);
          }
          return this;
      }
docs: <p>
  An <code>EntityDetailsList</code> object that contains details about when an IAM entity (user or role) used group
  or policy permissions in an attempt to access the specified AWS service.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEntityDetailsList(java.util.Collection)} or {@link #withEntityDetailsList(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param entityDetailsList
  An <code>EntityDetailsList</code> object that contains details about when an IAM entity (user or role)
  used group or policy permissions in an attempt to access the specified AWS service.
  @return Returns a reference to this object so that method calls can be chained together.