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 get_manufacturer(&self) -> &Option<String>
pub fn get_manufacturer(&self) -> &Option<String>
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 get_model_id(&self) -> &Option<String>
pub fn get_model_id(&self) -> &Option<String>
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 get_form_factor(&self) -> &Option<DeviceFormFactor>
pub fn get_form_factor(&self) -> &Option<DeviceFormFactor>
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 get_platform(&self) -> &Option<DevicePlatform>
pub fn get_platform(&self) -> &Option<DevicePlatform>
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 get_resolution(&self) -> &Option<Resolution>
pub fn get_resolution(&self) -> &Option<Resolution>
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 get_heap_size(&self) -> &Option<i64>
pub fn get_heap_size(&self) -> &Option<i64>
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 get_memory(&self) -> &Option<i64>
pub fn get_memory(&self) -> &Option<i64>
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 get_carrier(&self) -> &Option<String>
pub fn get_carrier(&self) -> &Option<String>
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 get_remote_access_enabled(&self) -> &Option<bool>
pub fn get_remote_access_enabled(&self) -> &Option<bool>
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 get_remote_debug_enabled(&self) -> &Option<bool>
pub fn get_remote_debug_enabled(&self) -> &Option<bool>
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 get_fleet_type(&self) -> &Option<String>
pub fn get_fleet_type(&self) -> &Option<String>
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 get_fleet_name(&self) -> &Option<String>
pub fn get_fleet_name(&self) -> &Option<String>
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 get_instances(&self) -> &Option<Vec<DeviceInstance>>
pub fn get_instances(&self) -> &Option<Vec<DeviceInstance>>
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.
sourcepub fn get_availability(&self) -> &Option<DeviceAvailability>
pub fn get_availability(&self) -> &Option<DeviceAvailability>
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 for DeviceBuilder
impl PartialEq 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 ==.