aws_sdk_iotfleetwise/client/
list_fleets_for_vehicle.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListFleetsForVehicle`](crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`vehicle_name(impl Into<String>)`](crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder::vehicle_name) / [`set_vehicle_name(Option<String>)`](crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder::set_vehicle_name):<br>required: **true**<br><p>The ID of the vehicle to retrieve information about.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder::set_next_token):<br>required: **false**<br><p>A pagination token for the next set of results.</p> <p>If the results of a search are large, only a portion of the results are returned, and a <code>nextToken</code> pagination token is returned in the response. To retrieve the next set of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return, between 1 and 100, inclusive.</p><br>
    /// - On success, responds with [`ListFleetsForVehicleOutput`](crate::operation::list_fleets_for_vehicle::ListFleetsForVehicleOutput) with field(s):
    ///   - [`fleets(Option<Vec::<String>>)`](crate::operation::list_fleets_for_vehicle::ListFleetsForVehicleOutput::fleets): <p>A list of fleet IDs that the vehicle is associated with.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_fleets_for_vehicle::ListFleetsForVehicleOutput::next_token): <p>The token to retrieve the next set of results, or <code>null</code> if there are no more results.</p>
    /// - On failure, responds with [`SdkError<ListFleetsForVehicleError>`](crate::operation::list_fleets_for_vehicle::ListFleetsForVehicleError)
    pub fn list_fleets_for_vehicle(&self) -> crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder {
        crate::operation::list_fleets_for_vehicle::builders::ListFleetsForVehicleFluentBuilder::new(self.handle.clone())
    }
}