public Trail withRegions(java.util.Collection<String> regions) {
        setRegions(regions);
        return this;
    }
<p>
A list of regions to get CloudTrail data from and analyze to generate a policy.
</p>

@param regions
       A list of regions to get CloudTrail data from and analyze to generate a policy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/Trail.java