public S3DataAccessAsset withKeyPrefixes(String... keyPrefixes) {
        if (this.keyPrefixes == null) {
            setKeyPrefixes(new java.util.ArrayList<String>(keyPrefixes.length));
        }
        for (String ele : keyPrefixes) {
            this.keyPrefixes.add(ele);
        }
        return this;
    }
<p>
The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setKeyPrefixes(java.util.Collection)} or {@link #withKeyPrefixes(java.util.Collection)} if you want to
override the existing values.
</p>

@param keyPrefixes
       The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dataexchange/src/main/java/com/amazonaws/services/dataexchange/model/S3DataAccessAsset.java