public DataResource withValues(String... values) {
        if (this.values == null) {
            setValues(new com.amazonaws.internal.SdkInternalList<String>(values.length));
        }
        for (String ele : values) {
            this.values.add(ele);
        }
        return this;
    }
<p>
An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified resource type.
</p>
<ul>
<li>
<p>
To log data events for all objects in all S3 buckets in your Amazon Web Services account, specify the prefix as
<code>arn:aws:s3</code>.
</p>
<note>
<p>
This also enables logging of data event activity performed by any user or role in your Amazon Web Services
account, even if that activity is performed on a bucket that belongs to another Amazon Web Services account.
</p>
</note></li>
<li>
<p>
To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as
<code>arn:aws:s3:::bucket-1/</code>. The trail logs data events for all objects in this S3 bucket.
</p>
</li>
<li>
<p>
To log data events for specific objects, specify the S3 bucket and object prefix such as
<code>arn:aws:s3:::bucket-1/example-images</code>. The trail logs data events for objects in this S3 bucket that
match the prefix.
</p>
</li>
<li>
<p>
To log data events for all Lambda functions in your Amazon Web Services account, specify the prefix as
<code>arn:aws:lambda</code>.
</p>
<note>
<p>
This also enables logging of <code>Invoke</code> activity performed by any user or role in your Amazon Web
Services account, even if that activity is performed on a function that belongs to another Amazon Web Services
account.
</p>
</note></li>
<li>
<p>
To log data events for a specific Lambda function, specify the function ARN.
</p>
<note>
<p>
Lambda function ARNs are exact. For example, if you specify a function ARN
<i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>, data events will only be logged for
<i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>. They will not be logged for
<i>arn:aws:lambda:us-west-2:111111111111:function:helloworld2</i>.
</p>
</note></li>
<li>
<p>
To log data events for all DynamoDB tables in your Amazon Web Services account, specify the prefix as
<code>arn:aws:dynamodb</code>.
</p>
</li>
</ul>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setValues(java.util.Collection)} or {@link #withValues(java.util.Collection)} if you want to override the
existing values.
</p>

@param values
       An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified resource type.</p>
       <ul>
       <li>
       <p>
       To log data events for all objects in all S3 buckets in your Amazon Web Services account, specify the
       prefix as <code>arn:aws:s3</code>.
       </p>
       <note>
       <p>
       This also enables logging of data event activity performed by any user or role in your Amazon Web Services
       account, even if that activity is performed on a bucket that belongs to another Amazon Web Services
       account.
       </p>
       </note></li>
       <li>
       <p>
       To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as
       <code>arn:aws:s3:::bucket-1/</code>. The trail logs data events for all objects in this S3 bucket.
       </p>
       </li>
       <li>
       <p>
       To log data events for specific objects, specify the S3 bucket and object prefix such as
       <code>arn:aws:s3:::bucket-1/example-images</code>. The trail logs data events for objects in this S3
       bucket that match the prefix.
       </p>
       </li>
       <li>
       <p>
       To log data events for all Lambda functions in your Amazon Web Services account, specify the prefix as
       <code>arn:aws:lambda</code>.
       </p>
       <note>
       <p>
       This also enables logging of <code>Invoke</code> activity performed by any user or role in your Amazon Web
       Services account, even if that activity is performed on a function that belongs to another Amazon Web
       Services account.
       </p>
       </note></li>
       <li>
       <p>
       To log data events for a specific Lambda function, specify the function ARN.
       </p>
       <note>
       <p>
       Lambda function ARNs are exact. For example, if you specify a function ARN
       <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>, data events will only be logged for
       <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>. They will not be logged for
       <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld2</i>.
       </p>
       </note></li>
       <li>
       <p>
       To log data events for all DynamoDB tables in your Amazon Web Services account, specify the prefix as
       <code>arn:aws:dynamodb</code>.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/DataResource.java