public PathFormat withObjectPrefixes(String... objectPrefixes) {
        if (this.objectPrefixes == null) {
            setObjectPrefixes(new java.util.ArrayList<String>(objectPrefixes.length));
        }
        for (String ele : objectPrefixes) {
            this.objectPrefixes.add(ele);
        }
        return this;
    }
<p>
A list of Amazon S3 prefixes that points to sub-folders in the Amazon S3 bucket. Specify this list if you only
want Lex to read the files under this set of sub-folders.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setObjectPrefixes(java.util.Collection)} or {@link #withObjectPrefixes(java.util.Collection)} if you want
to override the existing values.
</p>

@param objectPrefixes
       A list of Amazon S3 prefixes that points to sub-folders in the Amazon S3 bucket. Specify this list if you
       only want Lex to read the files under this set of sub-folders.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/PathFormat.java