1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListDatasetEntries`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`dataset_arn(impl Into<String>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::dataset_arn) / [`set_dataset_arn(Option<String>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::set_dataset_arn):<br>required: **true**<br><p> The Amazon Resource Name (ARN) for the dataset that you want to use. </p><br>
    ///   - [`contains_labels(impl Into<String>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::contains_labels) / [`set_contains_labels(Option<Vec::<String>>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::set_contains_labels):<br>required: **false**<br><p>Specifies a label filter for the response. The response includes an entry only if one or more of the labels in <code>ContainsLabels</code> exist in the entry. </p><br>
    ///   - [`labeled(bool)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::labeled) / [`set_labeled(Option<bool>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::set_labeled):<br>required: **false**<br><p> Specify <code>true</code> to get only the JSON Lines where the image is labeled. Specify <code>false</code> to get only the JSON Lines where the image isn't labeled. If you don't specify <code>Labeled</code>, <code>ListDatasetEntries</code> returns JSON Lines for labeled and unlabeled images. </p><br>
    ///   - [`source_ref_contains(impl Into<String>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::source_ref_contains) / [`set_source_ref_contains(Option<String>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::set_source_ref_contains):<br>required: **false**<br><p>If specified, <code>ListDatasetEntries</code> only returns JSON Lines where the value of <code>SourceRefContains</code> is part of the <code>source-ref</code> field. The <code>source-ref</code> field contains the Amazon S3 location of the image. You can use <code>SouceRefContains</code> for tasks such as getting the JSON Line for a single image, or gettting JSON Lines for all images within a specific folder.</p><br>
    ///   - [`has_errors(bool)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::has_errors) / [`set_has_errors(Option<bool>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::set_has_errors):<br>required: **false**<br><p>Specifies an error filter for the response. Specify <code>True</code> to only include entries that have errors. </p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::set_next_token):<br>required: **false**<br><p>If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results. </p><br>
    ///   - [`max_results(i32)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100. </p><br>
    /// - On success, responds with [`ListDatasetEntriesOutput`](crate::operation::list_dataset_entries::ListDatasetEntriesOutput) with field(s):
    ///   - [`dataset_entries(Option<Vec::<String>>)`](crate::operation::list_dataset_entries::ListDatasetEntriesOutput::dataset_entries): <p> A list of entries (images) in the dataset. </p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_dataset_entries::ListDatasetEntriesOutput::next_token): <p>If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results. </p>
    /// - On failure, responds with [`SdkError<ListDatasetEntriesError>`](crate::operation::list_dataset_entries::ListDatasetEntriesError)
    pub fn list_dataset_entries(&self) -> crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder {
        crate::operation::list_dataset_entries::builders::ListDatasetEntriesFluentBuilder::new(self.handle.clone())
    }
}