Struct aws_sdk_devicefarm::types::builders::DevicePoolBuilder
source · #[non_exhaustive]pub struct DevicePoolBuilder { /* private fields */ }
Expand description
A builder for DevicePool
.
Implementations§
source§impl DevicePoolBuilder
impl DevicePoolBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The device pool's description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The device pool's description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The device pool's description.
sourcepub fn type(self, input: DevicePoolType) -> Self
pub fn type(self, input: DevicePoolType) -> Self
The device pool's type.
Allowed values include:
-
CURATED: A device pool that is created and managed by AWS Device Farm.
-
PRIVATE: A device pool that is created and managed by the device pool developer.
sourcepub fn set_type(self, input: Option<DevicePoolType>) -> Self
pub fn set_type(self, input: Option<DevicePoolType>) -> Self
The device pool's type.
Allowed values include:
-
CURATED: A device pool that is created and managed by AWS Device Farm.
-
PRIVATE: A device pool that is created and managed by the device pool developer.
sourcepub fn get_type(&self) -> &Option<DevicePoolType>
pub fn get_type(&self) -> &Option<DevicePoolType>
The device pool's type.
Allowed values include:
-
CURATED: A device pool that is created and managed by AWS Device Farm.
-
PRIVATE: A device pool that is created and managed by the device pool developer.
sourcepub fn rules(self, input: Rule) -> Self
pub fn rules(self, input: Rule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
Information about the device pool's rules.
sourcepub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
pub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
Information about the device pool's rules.
sourcepub fn max_devices(self, input: i32) -> Self
pub fn max_devices(self, input: i32) -> Self
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 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.
sourcepub fn set_max_devices(self, input: Option<i32>) -> Self
pub fn set_max_devices(self, input: Option<i32>) -> Self
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 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.
sourcepub fn get_max_devices(&self) -> &Option<i32>
pub fn get_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 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.
sourcepub fn build(self) -> DevicePool
pub fn build(self) -> DevicePool
Consumes the builder and constructs a DevicePool
.
Trait Implementations§
source§impl Clone for DevicePoolBuilder
impl Clone for DevicePoolBuilder
source§fn clone(&self) -> DevicePoolBuilder
fn clone(&self) -> DevicePoolBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DevicePoolBuilder
impl Debug for DevicePoolBuilder
source§impl Default for DevicePoolBuilder
impl Default for DevicePoolBuilder
source§fn default() -> DevicePoolBuilder
fn default() -> DevicePoolBuilder
source§impl PartialEq<DevicePoolBuilder> for DevicePoolBuilder
impl PartialEq<DevicePoolBuilder> for DevicePoolBuilder
source§fn eq(&self, other: &DevicePoolBuilder) -> bool
fn eq(&self, other: &DevicePoolBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.