Struct aws_sdk_devicefarm::input::UpdateDevicePoolInput
source · [−]#[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
sourceimpl UpdateDevicePoolInput
impl UpdateDevicePoolInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateDevicePool, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateDevicePool, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<UpdateDevicePool>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateDevicePoolInput
sourceimpl 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) -> Option<&[Rule]>
pub fn rules(&self) -> Option<&[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.
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.
Trait Implementations
sourceimpl Clone for UpdateDevicePoolInput
impl Clone for UpdateDevicePoolInput
sourcefn clone(&self) -> UpdateDevicePoolInput
fn clone(&self) -> UpdateDevicePoolInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UpdateDevicePoolInput
impl Debug for UpdateDevicePoolInput
sourceimpl PartialEq<UpdateDevicePoolInput> for UpdateDevicePoolInput
impl PartialEq<UpdateDevicePoolInput> for UpdateDevicePoolInput
sourcefn eq(&self, other: &UpdateDevicePoolInput) -> bool
fn eq(&self, other: &UpdateDevicePoolInput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &UpdateDevicePoolInput) -> bool
fn ne(&self, other: &UpdateDevicePoolInput) -> bool
This method tests for !=.
impl StructuralPartialEq for UpdateDevicePoolInput
Auto Trait Implementations
impl RefUnwindSafe for UpdateDevicePoolInput
impl Send for UpdateDevicePoolInput
impl Sync for UpdateDevicePoolInput
impl Unpin for UpdateDevicePoolInput
impl UnwindSafe for UpdateDevicePoolInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more