#[non_exhaustive]pub struct DeviceSelectionConfigBuilder { /* private fields */ }
Expand description
A builder for DeviceSelectionConfig
.
Implementations§
source§impl DeviceSelectionConfigBuilder
impl DeviceSelectionConfigBuilder
sourcepub fn device_subset_type(self, input: DeviceSubsetType) -> Self
pub fn device_subset_type(self, input: DeviceSubsetType) -> Self
Type of device subsets to deploy to the current stage.
This field is required.sourcepub fn set_device_subset_type(self, input: Option<DeviceSubsetType>) -> Self
pub fn set_device_subset_type(self, input: Option<DeviceSubsetType>) -> Self
Type of device subsets to deploy to the current stage.
sourcepub fn get_device_subset_type(&self) -> &Option<DeviceSubsetType>
pub fn get_device_subset_type(&self) -> &Option<DeviceSubsetType>
Type of device subsets to deploy to the current stage.
sourcepub fn percentage(self, input: i32) -> Self
pub fn percentage(self, input: i32) -> Self
Percentage of devices in the fleet to deploy to the current stage.
sourcepub fn set_percentage(self, input: Option<i32>) -> Self
pub fn set_percentage(self, input: Option<i32>) -> Self
Percentage of devices in the fleet to deploy to the current stage.
sourcepub fn get_percentage(&self) -> &Option<i32>
pub fn get_percentage(&self) -> &Option<i32>
Percentage of devices in the fleet to deploy to the current stage.
sourcepub fn device_names(self, input: impl Into<String>) -> Self
pub fn device_names(self, input: impl Into<String>) -> Self
Appends an item to device_names
.
To override the contents of this collection use set_device_names
.
List of devices chosen to deploy.
sourcepub fn set_device_names(self, input: Option<Vec<String>>) -> Self
pub fn set_device_names(self, input: Option<Vec<String>>) -> Self
List of devices chosen to deploy.
sourcepub fn get_device_names(&self) -> &Option<Vec<String>>
pub fn get_device_names(&self) -> &Option<Vec<String>>
List of devices chosen to deploy.
sourcepub fn device_name_contains(self, input: impl Into<String>) -> Self
pub fn device_name_contains(self, input: impl Into<String>) -> Self
A filter to select devices with names containing this name.
sourcepub fn set_device_name_contains(self, input: Option<String>) -> Self
pub fn set_device_name_contains(self, input: Option<String>) -> Self
A filter to select devices with names containing this name.
sourcepub fn get_device_name_contains(&self) -> &Option<String>
pub fn get_device_name_contains(&self) -> &Option<String>
A filter to select devices with names containing this name.
sourcepub fn build(self) -> DeviceSelectionConfig
pub fn build(self) -> DeviceSelectionConfig
Consumes the builder and constructs a DeviceSelectionConfig
.
Trait Implementations§
source§impl Clone for DeviceSelectionConfigBuilder
impl Clone for DeviceSelectionConfigBuilder
source§fn clone(&self) -> DeviceSelectionConfigBuilder
fn clone(&self) -> DeviceSelectionConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceSelectionConfigBuilder
impl Debug for DeviceSelectionConfigBuilder
source§impl Default for DeviceSelectionConfigBuilder
impl Default for DeviceSelectionConfigBuilder
source§fn default() -> DeviceSelectionConfigBuilder
fn default() -> DeviceSelectionConfigBuilder
source§impl PartialEq for DeviceSelectionConfigBuilder
impl PartialEq for DeviceSelectionConfigBuilder
source§fn eq(&self, other: &DeviceSelectionConfigBuilder) -> bool
fn eq(&self, other: &DeviceSelectionConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeviceSelectionConfigBuilder
Auto Trait Implementations§
impl Freeze for DeviceSelectionConfigBuilder
impl RefUnwindSafe for DeviceSelectionConfigBuilder
impl Send for DeviceSelectionConfigBuilder
impl Sync for DeviceSelectionConfigBuilder
impl Unpin for DeviceSelectionConfigBuilder
impl UnwindSafe for DeviceSelectionConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more