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 [`CreateDevicePool`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project_arn(impl Into<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::project_arn) / [`set_project_arn(Option<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_project_arn): <p>The ARN of the project for the device pool.</p>
    ///   - [`name(impl Into<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_name): <p>The device pool's name.</p>
    ///   - [`description(impl Into<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_description): <p>The device pool's description.</p>
    ///   - [`rules(Vec<Rule>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::rules) / [`set_rules(Option<Vec<Rule>>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_rules): <p>The device pool's rules.</p>
    ///   - [`max_devices(i32)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::max_devices) / [`set_max_devices(Option<i32>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_max_devices): <p>The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and meet the criteria that you assign for the <code>rules</code> parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.</p>  <p>By specifying the maximum number of devices, you can control the costs that you incur by running tests.</p>
    /// - On success, responds with [`CreateDevicePoolOutput`](crate::operation::create_device_pool::CreateDevicePoolOutput) with field(s):
    ///   - [`device_pool(Option<DevicePool>)`](crate::operation::create_device_pool::CreateDevicePoolOutput::device_pool): <p>The newly created device pool.</p>
    /// - On failure, responds with [`SdkError<CreateDevicePoolError>`](crate::operation::create_device_pool::CreateDevicePoolError)
    pub fn create_device_pool(
        &self,
    ) -> crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder {
        crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::new(
            self.handle.clone(),
        )
    }
}