public DataResource withType(String type) {
        setType(type);
        return this;
    }
<p>
The resource type in which you want to log data events. You can specify the following <i>basic</i> event selector
resource types:
</p>
<ul>
<li>
<p>
<code>AWS::DynamoDB::Table</code>
</p>
</li>
<li>
<p>
<code>AWS::Lambda::Function</code>
</p>
</li>
<li>
<p>
<code>AWS::S3::Object</code>
</p>
</li>
</ul>
<p>
Additional resource types are available through <i>advanced</i> event selectors. For more information about these
additional resource types, see <a
href="https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedFieldSelector.html"
>AdvancedFieldSelector</a>.
</p>

@param type
       The resource type in which you want to log data events. You can specify the following <i>basic</i> event
       selector resource types:</p>
       <ul>
       <li>
       <p>
       <code>AWS::DynamoDB::Table</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::Lambda::Function</code>
       </p>
       </li>
       <li>
       <p>
       <code>AWS::S3::Object</code>
       </p>
       </li>
       </ul>
       <p>
       Additional resource types are available through <i>advanced</i> event selectors. For more information
       about these additional resource types, see <a
       href="https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedFieldSelector.html"
       >AdvancedFieldSelector</a>.
@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