public PolicyDetails withResourceLocations(java.util.Collection<String> resourceLocations) {
        setResourceLocations(resourceLocations);
        return this;
    }
<p>
<b>[Custom snapshot and AMI policies only]</b> The location of the resources to backup. If the source resources
are located in an Amazon Web Services Region, specify <code>CLOUD</code>. If the source resources are located on
an Outpost in your account, specify <code>OUTPOST</code>.
</p>
<p>
If you specify <code>OUTPOST</code>, Amazon Data Lifecycle Manager backs up all resources of the specified type
with matching target tags across all of the Outposts in your account.
</p>

@param resourceLocations
       <b>[Custom snapshot and AMI policies only]</b> The location of the resources to backup. If the source
       resources are located in an Amazon Web Services Region, specify <code>CLOUD</code>. If the source
       resources are located on an Outpost in your account, specify <code>OUTPOST</code>.</p>
       <p>
       If you specify <code>OUTPOST</code>, Amazon Data Lifecycle Manager backs up all resources of the specified
       type with matching target tags across all of the Outposts in your account.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceLocationValues
aws-java-sdk-dlm/src/main/java/com/amazonaws/services/dlm/model/PolicyDetails.java