public ListObjectsRequest withPrefix(String prefix) {
        setPrefix(prefix);
        return this;
    }
Sets the optional prefix parameter restricting the response to keys that
begin with the specified prefix.
Returns this {@link ListObjectsRequest}, enabling additional method
calls to be chained together.

@param prefix
           The optional prefix parameter restricting the response to keys
           that begin with the specified prefix.

@return This {@link ListObjectsRequest}, enabling additional method
        calls to be chained together.

@see ListObjectsRequest#getPrefix()
@see ListObjectsRequest#setPrefix(String)
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ListObjectsRequest.java