code: public void setDataResources(java.util.Collection<DataResource> dataResources) {
          if (dataResources == null) {
              this.dataResources = null;
              return;
          }
  
          this.dataResources = new com.amazonaws.internal.SdkInternalList<DataResource>(dataResources);
      }
docs: <p>
  CloudTrail supports data event logging for Amazon S3 objects and AWS Lambda functions. You can specify up to 250
  resources for an individual event selector, but the total number of data resources cannot exceed 250 across all
  event selectors in a trail. This limit does not apply if you configure resource logging for all data events.
  </p>
  <p>
  For more information, see <a href=
  "http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events"
  >Data Events</a> and <a
  href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Limits in AWS
  CloudTrail</a> in the <i>AWS CloudTrail User Guide</i>.
  </p>
  
  @param dataResources
  CloudTrail supports data event logging for Amazon S3 objects and AWS Lambda functions. You can specify up
  to 250 resources for an individual event selector, but the total number of data resources cannot exceed
  250 across all event selectors in a trail. This limit does not apply if you configure resource logging for
  all data events. </p>
  <p>
  For more information, see <a href=
  "http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events"
  >Data Events</a> and <a
  href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Limits in
  AWS CloudTrail</a> in the <i>AWS CloudTrail User Guide</i>.