return listObjectsV2Paginator(ListObjectsV2Request.builder().applyMutation(listObjectsV2Request).build());
return listObjectsV2Paginator(ListObjectsV2Request.builder().applyMutation(listObjectsV2Request).build());
return listObjectsV2(ListObjectsV2Request.builder().applyMutation(listObjectsV2Request).build());
/** * <p> * Returns some or all (up to 1000) of the objects in a bucket. You can use the request parameters as selection * criteria to return a subset of the objects in a bucket. Note: ListObjectsV2 is the revised List Objects API and * we recommend you use this revised API for new application development. * </p> * <br/> * <p> * This is a convenience which creates an instance of the {@link ListObjectsV2Request.Builder} avoiding the need to * create one manually via {@link ListObjectsV2Request#builder()} * </p> * * @param listObjectsV2Request * A {@link Consumer} that will call methods on {@link ListObjectsV2Request.Builder} to create a request. * @return Result of the ListObjectsV2 operation returned by the service. * @throws NoSuchBucketException * The specified bucket does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws S3Exception * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample S3Client.ListObjectsV2 */ default ListObjectsV2Response listObjectsV2(Consumer<ListObjectsV2Request.Builder> listObjectsV2Request) throws NoSuchBucketException, AwsServiceException, SdkClientException, S3Exception { return listObjectsV2(ListObjectsV2Request.builder().applyMutation(listObjectsV2Request).build()); }