pub struct Builder { /* private fields */ }Expand description
A builder for ListDatasetEntriesInput.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn dataset_arn(self, input: impl Into<String>) -> Self
pub fn dataset_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the dataset that you want to use.
sourcepub fn set_dataset_arn(self, input: Option<String>) -> Self
pub fn set_dataset_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the dataset that you want to use.
sourcepub fn contains_labels(self, input: impl Into<String>) -> Self
pub fn contains_labels(self, input: impl Into<String>) -> Self
Appends an item to contains_labels.
To override the contents of this collection use set_contains_labels.
Specifies a label filter for the response. The response includes an entry only if one or more of the labels in ContainsLabels exist in the entry.
sourcepub fn set_contains_labels(self, input: Option<Vec<String>>) -> Self
pub fn set_contains_labels(self, input: Option<Vec<String>>) -> Self
Specifies a label filter for the response. The response includes an entry only if one or more of the labels in ContainsLabels exist in the entry.
sourcepub fn labeled(self, input: bool) -> Self
pub fn labeled(self, input: bool) -> Self
Specify true to get only the JSON Lines where the image is labeled. Specify false to get only the JSON Lines where the image isn't labeled. If you don't specify Labeled, ListDatasetEntries returns JSON Lines for labeled and unlabeled images.
sourcepub fn set_labeled(self, input: Option<bool>) -> Self
pub fn set_labeled(self, input: Option<bool>) -> Self
Specify true to get only the JSON Lines where the image is labeled. Specify false to get only the JSON Lines where the image isn't labeled. If you don't specify Labeled, ListDatasetEntries returns JSON Lines for labeled and unlabeled images.
sourcepub fn source_ref_contains(self, input: impl Into<String>) -> Self
pub fn source_ref_contains(self, input: impl Into<String>) -> Self
If specified, ListDatasetEntries only returns JSON Lines where the value of SourceRefContains is part of the source-ref field. The source-ref field contains the Amazon S3 location of the image. You can use SouceRefContains for tasks such as getting the JSON Line for a single image, or gettting JSON Lines for all images within a specific folder.
sourcepub fn set_source_ref_contains(self, input: Option<String>) -> Self
pub fn set_source_ref_contains(self, input: Option<String>) -> Self
If specified, ListDatasetEntries only returns JSON Lines where the value of SourceRefContains is part of the source-ref field. The source-ref field contains the Amazon S3 location of the image. You can use SouceRefContains for tasks such as getting the JSON Line for a single image, or gettting JSON Lines for all images within a specific folder.
sourcepub fn has_errors(self, input: bool) -> Self
pub fn has_errors(self, input: bool) -> Self
Specifies an error filter for the response. Specify True to only include entries that have errors.
sourcepub fn set_has_errors(self, input: Option<bool>) -> Self
pub fn set_has_errors(self, input: Option<bool>) -> Self
Specifies an error filter for the response. Specify True to only include entries that have errors.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
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.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
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.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
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.
sourcepub fn build(self) -> Result<ListDatasetEntriesInput, BuildError>
pub fn build(self) -> Result<ListDatasetEntriesInput, BuildError>
Consumes the builder and constructs a ListDatasetEntriesInput.