public ListObjectsRequest withOptionalObjectAttributes(List<String> optionalObjectAttributes) {
        this.optionalObjectAttributes = optionalObjectAttributes != null ? new ArrayList(optionalObjectAttributes) : null;
        return this;
    }
Sets the optional object attribute parameter indicating that customer also need
some extra information about an object in the response like Restore Status.

@param optionalObjectAttributes
                 The optional parameter indicating to include
                 some extra object information in the response.
                 Valid values: null or "RestoreStatus".

@see ListObjectsRequest#getOptionalObjectAttributes()
@see ListObjectsRequest#setOptionalObjectAttributes(List)
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ListObjectsRequest.java