aws-sdk-cognitosync 1.99.0

AWS SDK for Amazon Cognito Sync
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListRecords`](crate::operation::list_records::builders::ListRecordsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`identity_pool_id(impl Into<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::identity_pool_id) / [`set_identity_pool_id(Option<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::set_identity_pool_id):<br>required: **true**<br>A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.<br>
    ///   - [`identity_id(impl Into<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::identity_id) / [`set_identity_id(Option<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::set_identity_id):<br>required: **true**<br>A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.<br>
    ///   - [`dataset_name(impl Into<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::dataset_name) / [`set_dataset_name(Option<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::set_dataset_name):<br>required: **true**<br>A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).<br>
    ///   - [`last_sync_count(i64)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::last_sync_count) / [`set_last_sync_count(Option<i64>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::set_last_sync_count):<br>required: **false**<br>The last server sync count for this record.<br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::set_next_token):<br>required: **false**<br>A pagination token for obtaining the next page of results.<br>
    ///   - [`max_results(i32)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::set_max_results):<br>required: **false**<br>The maximum number of results to be returned.<br>
    ///   - [`sync_session_token(impl Into<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::sync_session_token) / [`set_sync_session_token(Option<String>)`](crate::operation::list_records::builders::ListRecordsFluentBuilder::set_sync_session_token):<br>required: **false**<br>A token containing a session ID, identity ID, and expiration.<br>
    /// - On success, responds with [`ListRecordsOutput`](crate::operation::list_records::ListRecordsOutput) with field(s):
    ///   - [`records(Option<Vec::<Record>>)`](crate::operation::list_records::ListRecordsOutput::records): A list of all records.
    ///   - [`next_token(Option<String>)`](crate::operation::list_records::ListRecordsOutput::next_token): A pagination token for obtaining the next page of results.
    ///   - [`count(i32)`](crate::operation::list_records::ListRecordsOutput::count): Total number of records.
    ///   - [`dataset_sync_count(Option<i64>)`](crate::operation::list_records::ListRecordsOutput::dataset_sync_count): Server sync count for this dataset.
    ///   - [`last_modified_by(Option<String>)`](crate::operation::list_records::ListRecordsOutput::last_modified_by): The user/device that made the last change to this record.
    ///   - [`merged_dataset_names(Option<Vec::<String>>)`](crate::operation::list_records::ListRecordsOutput::merged_dataset_names): Names of merged datasets.
    ///   - [`dataset_exists(bool)`](crate::operation::list_records::ListRecordsOutput::dataset_exists): Indicates whether the dataset exists.
    ///   - [`dataset_deleted_after_requested_sync_count(bool)`](crate::operation::list_records::ListRecordsOutput::dataset_deleted_after_requested_sync_count): A boolean value specifying whether to delete the dataset locally.
    ///   - [`sync_session_token(Option<String>)`](crate::operation::list_records::ListRecordsOutput::sync_session_token): A token containing a session ID, identity ID, and expiration.
    /// - On failure, responds with [`SdkError<ListRecordsError>`](crate::operation::list_records::ListRecordsError)
    pub fn list_records(&self) -> crate::operation::list_records::builders::ListRecordsFluentBuilder {
        crate::operation::list_records::builders::ListRecordsFluentBuilder::new(self.handle.clone())
    }
}