#[non_exhaustive]pub struct UpdateDevicePoolInput {
pub arn: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub rules: Option<Vec<Rule>>,
pub max_devices: Option<i32>,
pub clear_max_devices: Option<bool>,
}Expand description
Represents a request to the update device pool operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.arn: Option<String>The Amazon Resource Name (ARN) of the Device Farm device pool to update.
name: Option<String>A string that represents the name of the device pool to update.
description: Option<String>A description of the device pool to update.
rules: Option<Vec<Rule>>Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.
max_devices: Option<i32>The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and that meet the criteria that you assign for the rules parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.
By specifying the maximum number of devices, you can control the costs that you incur by running tests.
If you use this parameter in your request, you cannot use the clearMaxDevices parameter in the same request.
clear_max_devices: Option<bool>Sets whether the maxDevices parameter applies to your device pool. If you set this parameter to true, the maxDevices parameter does not apply, and Device Farm does not limit the number of devices that it adds to your device pool. In this case, Device Farm adds all available devices that meet the criteria specified in the rules parameter.
If you use this parameter in your request, you cannot use the maxDevices parameter in the same request.
Implementations§
source§impl UpdateDevicePoolInput
impl UpdateDevicePoolInput
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Device Farm device pool to update.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A string that represents the name of the device pool to update.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the device pool to update.
sourcepub fn rules(&self) -> &[Rule]
pub fn rules(&self) -> &[Rule]
Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .rules.is_none().
sourcepub fn max_devices(&self) -> Option<i32>
pub fn max_devices(&self) -> Option<i32>
The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and that meet the criteria that you assign for the rules parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.
By specifying the maximum number of devices, you can control the costs that you incur by running tests.
If you use this parameter in your request, you cannot use the clearMaxDevices parameter in the same request.
sourcepub fn clear_max_devices(&self) -> Option<bool>
pub fn clear_max_devices(&self) -> Option<bool>
Sets whether the maxDevices parameter applies to your device pool. If you set this parameter to true, the maxDevices parameter does not apply, and Device Farm does not limit the number of devices that it adds to your device pool. In this case, Device Farm adds all available devices that meet the criteria specified in the rules parameter.
If you use this parameter in your request, you cannot use the maxDevices parameter in the same request.
source§impl UpdateDevicePoolInput
impl UpdateDevicePoolInput
sourcepub fn builder() -> UpdateDevicePoolInputBuilder
pub fn builder() -> UpdateDevicePoolInputBuilder
Creates a new builder-style object to manufacture UpdateDevicePoolInput.
Trait Implementations§
source§impl Clone for UpdateDevicePoolInput
impl Clone for UpdateDevicePoolInput
source§fn clone(&self) -> UpdateDevicePoolInput
fn clone(&self) -> UpdateDevicePoolInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateDevicePoolInput
impl Debug for UpdateDevicePoolInput
source§impl PartialEq for UpdateDevicePoolInput
impl PartialEq for UpdateDevicePoolInput
source§fn eq(&self, other: &UpdateDevicePoolInput) -> bool
fn eq(&self, other: &UpdateDevicePoolInput) -> bool
self and other values to be equal, and is used
by ==.