Struct aws_sdk_devicefarm::operation::create_device_pool::builders::CreateDevicePoolInputBuilder
source · #[non_exhaustive]pub struct CreateDevicePoolInputBuilder { /* private fields */ }Expand description
A builder for CreateDevicePoolInput.
Implementations§
source§impl CreateDevicePoolInputBuilder
impl CreateDevicePoolInputBuilder
sourcepub fn project_arn(self, input: impl Into<String>) -> Self
pub fn project_arn(self, input: impl Into<String>) -> Self
The ARN of the project for the device pool.
This field is required.sourcepub fn set_project_arn(self, input: Option<String>) -> Self
pub fn set_project_arn(self, input: Option<String>) -> Self
The ARN of the project for the device pool.
sourcepub fn get_project_arn(&self) -> &Option<String>
pub fn get_project_arn(&self) -> &Option<String>
The ARN of the project for the device pool.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The device pool's name.
This field is required.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 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.
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) -> Result<CreateDevicePoolInput, BuildError>
pub fn build(self) -> Result<CreateDevicePoolInput, BuildError>
Consumes the builder and constructs a CreateDevicePoolInput.
source§impl CreateDevicePoolInputBuilder
impl CreateDevicePoolInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDevicePoolOutput, SdkError<CreateDevicePoolError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDevicePoolOutput, SdkError<CreateDevicePoolError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDevicePoolInputBuilder
impl Clone for CreateDevicePoolInputBuilder
source§fn clone(&self) -> CreateDevicePoolInputBuilder
fn clone(&self) -> CreateDevicePoolInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateDevicePoolInputBuilder
impl Debug for CreateDevicePoolInputBuilder
source§impl Default for CreateDevicePoolInputBuilder
impl Default for CreateDevicePoolInputBuilder
source§fn default() -> CreateDevicePoolInputBuilder
fn default() -> CreateDevicePoolInputBuilder
source§impl PartialEq for CreateDevicePoolInputBuilder
impl PartialEq for CreateDevicePoolInputBuilder
source§fn eq(&self, other: &CreateDevicePoolInputBuilder) -> bool
fn eq(&self, other: &CreateDevicePoolInputBuilder) -> bool
self and other values to be equal, and is used
by ==.