Struct aws_sdk_devicefarm::types::builders::DeviceBuilder
source · #[non_exhaustive]pub struct DeviceBuilder { /* private fields */ }Expand description
A builder for Device.
Implementations§
source§impl DeviceBuilder
impl DeviceBuilder
sourcepub fn manufacturer(self, input: impl Into<String>) -> Self
pub fn manufacturer(self, input: impl Into<String>) -> Self
The device's manufacturer name.
sourcepub fn set_manufacturer(self, input: Option<String>) -> Self
pub fn set_manufacturer(self, input: Option<String>) -> Self
The device's manufacturer name.
sourcepub fn set_model_id(self, input: Option<String>) -> Self
pub fn set_model_id(self, input: Option<String>) -> Self
The device's model ID.
sourcepub fn form_factor(self, input: DeviceFormFactor) -> Self
pub fn form_factor(self, input: DeviceFormFactor) -> Self
The device's form factor.
Allowed values include:
-
PHONE
-
TABLET
sourcepub fn set_form_factor(self, input: Option<DeviceFormFactor>) -> Self
pub fn set_form_factor(self, input: Option<DeviceFormFactor>) -> Self
The device's form factor.
Allowed values include:
-
PHONE
-
TABLET
sourcepub fn platform(self, input: DevicePlatform) -> Self
pub fn platform(self, input: DevicePlatform) -> Self
The device's platform.
Allowed values include:
-
ANDROID
-
IOS
sourcepub fn set_platform(self, input: Option<DevicePlatform>) -> Self
pub fn set_platform(self, input: Option<DevicePlatform>) -> Self
The device's platform.
Allowed values include:
-
ANDROID
-
IOS
sourcepub fn resolution(self, input: Resolution) -> Self
pub fn resolution(self, input: Resolution) -> Self
The resolution of the device.
sourcepub fn set_resolution(self, input: Option<Resolution>) -> Self
pub fn set_resolution(self, input: Option<Resolution>) -> Self
The resolution of the device.
sourcepub fn set_heap_size(self, input: Option<i64>) -> Self
pub fn set_heap_size(self, input: Option<i64>) -> Self
The device's heap size, expressed in bytes.
sourcepub fn set_memory(self, input: Option<i64>) -> Self
pub fn set_memory(self, input: Option<i64>) -> Self
The device's total memory size, expressed in bytes.
sourcepub fn set_carrier(self, input: Option<String>) -> Self
pub fn set_carrier(self, input: Option<String>) -> Self
The device's carrier.
sourcepub fn remote_access_enabled(self, input: bool) -> Self
pub fn remote_access_enabled(self, input: bool) -> Self
Specifies whether remote access has been enabled for the specified device.
sourcepub fn set_remote_access_enabled(self, input: Option<bool>) -> Self
pub fn set_remote_access_enabled(self, input: Option<bool>) -> Self
Specifies whether remote access has been enabled for the specified device.
sourcepub fn remote_debug_enabled(self, input: bool) -> Self
pub fn remote_debug_enabled(self, input: bool) -> Self
This flag is set to true if remote debugging is enabled for the device.
Remote debugging is no longer supported.
sourcepub fn set_remote_debug_enabled(self, input: Option<bool>) -> Self
pub fn set_remote_debug_enabled(self, input: Option<bool>) -> Self
This flag is set to true if remote debugging is enabled for the device.
Remote debugging is no longer supported.
sourcepub fn fleet_type(self, input: impl Into<String>) -> Self
pub fn fleet_type(self, input: impl Into<String>) -> Self
The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC.
sourcepub fn set_fleet_type(self, input: Option<String>) -> Self
pub fn set_fleet_type(self, input: Option<String>) -> Self
The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC.
sourcepub fn fleet_name(self, input: impl Into<String>) -> Self
pub fn fleet_name(self, input: impl Into<String>) -> Self
The name of the fleet to which this device belongs.
sourcepub fn set_fleet_name(self, input: Option<String>) -> Self
pub fn set_fleet_name(self, input: Option<String>) -> Self
The name of the fleet to which this device belongs.
sourcepub fn instances(self, input: DeviceInstance) -> Self
pub fn instances(self, input: DeviceInstance) -> Self
Appends an item to instances.
To override the contents of this collection use set_instances.
The instances that belong to this device.
sourcepub fn set_instances(self, input: Option<Vec<DeviceInstance>>) -> Self
pub fn set_instances(self, input: Option<Vec<DeviceInstance>>) -> Self
The instances that belong to this device.
sourcepub fn availability(self, input: DeviceAvailability) -> Self
pub fn availability(self, input: DeviceAvailability) -> Self
Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.
sourcepub fn set_availability(self, input: Option<DeviceAvailability>) -> Self
pub fn set_availability(self, input: Option<DeviceAvailability>) -> Self
Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.
Trait Implementations§
source§impl Clone for DeviceBuilder
impl Clone for DeviceBuilder
source§fn clone(&self) -> DeviceBuilder
fn clone(&self) -> DeviceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeviceBuilder
impl Debug for DeviceBuilder
source§impl Default for DeviceBuilder
impl Default for DeviceBuilder
source§fn default() -> DeviceBuilder
fn default() -> DeviceBuilder
source§impl PartialEq<DeviceBuilder> for DeviceBuilder
impl PartialEq<DeviceBuilder> for DeviceBuilder
source§fn eq(&self, other: &DeviceBuilder) -> bool
fn eq(&self, other: &DeviceBuilder) -> bool
self and other values to be equal, and is used
by ==.