public PolicyDetails withResourceTypes(java.util.Collection<String> resourceTypes) {
        setResourceTypes(resourceTypes);
        return this;
    }
<p>
<b>[Custom snapshot policies only]</b> The target resource type for snapshot and AMI lifecycle policies. Use
<code>VOLUME </code>to create snapshots of individual volumes or use <code>INSTANCE</code> to create multi-volume
snapshots from the volumes for an instance.
</p>

@param resourceTypes
       <b>[Custom snapshot policies only]</b> The target resource type for snapshot and AMI lifecycle policies.
       Use <code>VOLUME </code>to create snapshots of individual volumes or use <code>INSTANCE</code> to create
       multi-volume snapshots from the volumes for an instance.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceTypeValues
aws-java-sdk-dlm/src/main/java/com/amazonaws/services/dlm/model/PolicyDetails.java