1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetDevice`](crate::operation::get_device::builders::GetDeviceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`device_key(impl Into<String>)`](crate::operation::get_device::builders::GetDeviceFluentBuilder::device_key) / [`set_device_key(Option<String>)`](crate::operation::get_device::builders::GetDeviceFluentBuilder::set_device_key):<br>required: **true**<br><p>The device key.</p><br>
    ///   - [`access_token(impl Into<String>)`](crate::operation::get_device::builders::GetDeviceFluentBuilder::access_token) / [`set_access_token(Option<String>)`](crate::operation::get_device::builders::GetDeviceFluentBuilder::set_access_token):<br>required: **false**<br><p>A valid access token that Amazon Cognito issued to the user whose device information you want to request.</p><br>
    /// - On success, responds with [`GetDeviceOutput`](crate::operation::get_device::GetDeviceOutput) with field(s):
    ///   - [`device(Option<DeviceType>)`](crate::operation::get_device::GetDeviceOutput::device): <p>The device.</p>
    /// - On failure, responds with [`SdkError<GetDeviceError>`](crate::operation::get_device::GetDeviceError)
    pub fn get_device(&self) -> crate::operation::get_device::builders::GetDeviceFluentBuilder {
        crate::operation::get_device::builders::GetDeviceFluentBuilder::new(self.handle.clone())
    }
}