public PolicyDetails withResourceLocations(String... resourceLocations) {
        if (this.resourceLocations == null) {
            setResourceLocations(new java.util.ArrayList<String>(resourceLocations.length));
        }
        for (String ele : resourceLocations) {
            this.resourceLocations.add(ele);
        }
        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>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourceLocations(java.util.Collection)} or {@link #withResourceLocations(java.util.Collection)} if
you want to override the existing values.
</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