Struct aws_sdk_networkmanager::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 set_device_id(self, input: Option<String>) -> Self
pub fn set_device_id(self, input: Option<String>) -> Self
The ID of the device.
sourcepub fn get_device_id(&self) -> &Option<String>
pub fn get_device_id(&self) -> &Option<String>
The ID of the device.
sourcepub fn device_arn(self, input: impl Into<String>) -> Self
pub fn device_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the device.
sourcepub fn set_device_arn(self, input: Option<String>) -> Self
pub fn set_device_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the device.
sourcepub fn get_device_arn(&self) -> &Option<String>
pub fn get_device_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the device.
sourcepub fn global_network_id(self, input: impl Into<String>) -> Self
pub fn global_network_id(self, input: impl Into<String>) -> Self
The ID of the global network.
sourcepub fn set_global_network_id(self, input: Option<String>) -> Self
pub fn set_global_network_id(self, input: Option<String>) -> Self
The ID of the global network.
sourcepub fn get_global_network_id(&self) -> &Option<String>
pub fn get_global_network_id(&self) -> &Option<String>
The ID of the global network.
sourcepub fn aws_location(self, input: AwsLocation) -> Self
pub fn aws_location(self, input: AwsLocation) -> Self
The Amazon Web Services location of the device.
sourcepub fn set_aws_location(self, input: Option<AwsLocation>) -> Self
pub fn set_aws_location(self, input: Option<AwsLocation>) -> Self
The Amazon Web Services location of the device.
sourcepub fn get_aws_location(&self) -> &Option<AwsLocation>
pub fn get_aws_location(&self) -> &Option<AwsLocation>
The Amazon Web Services location of the device.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the device.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the device.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the device.
sourcepub fn set_vendor(self, input: Option<String>) -> Self
pub fn set_vendor(self, input: Option<String>) -> Self
The device vendor.
sourcepub fn get_vendor(&self) -> &Option<String>
pub fn get_vendor(&self) -> &Option<String>
The device vendor.
sourcepub fn serial_number(self, input: impl Into<String>) -> Self
pub fn serial_number(self, input: impl Into<String>) -> Self
The device serial number.
sourcepub fn set_serial_number(self, input: Option<String>) -> Self
pub fn set_serial_number(self, input: Option<String>) -> Self
The device serial number.
sourcepub fn get_serial_number(&self) -> &Option<String>
pub fn get_serial_number(&self) -> &Option<String>
The device serial number.
sourcepub fn set_location(self, input: Option<Location>) -> Self
pub fn set_location(self, input: Option<Location>) -> Self
The site location.
sourcepub fn get_location(&self) -> &Option<Location>
pub fn get_location(&self) -> &Option<Location>
The site location.
sourcepub fn set_site_id(self, input: Option<String>) -> Self
pub fn set_site_id(self, input: Option<String>) -> Self
The site ID.
sourcepub fn get_site_id(&self) -> &Option<String>
pub fn get_site_id(&self) -> &Option<String>
The site ID.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The date and time that the site was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The date and time that the site was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The date and time that the site was created.
sourcepub fn state(self, input: DeviceState) -> Self
pub fn state(self, input: DeviceState) -> Self
The device state.
sourcepub fn set_state(self, input: Option<DeviceState>) -> Self
pub fn set_state(self, input: Option<DeviceState>) -> Self
The device state.
sourcepub fn get_state(&self) -> &Option<DeviceState>
pub fn get_state(&self) -> &Option<DeviceState>
The device state.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for the device.
The tags for the device.
The tags for the device.
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 ==
.impl StructuralPartialEq for DeviceBuilder
Auto Trait Implementations§
impl Freeze for DeviceBuilder
impl RefUnwindSafe for DeviceBuilder
impl Send for DeviceBuilder
impl Sync for DeviceBuilder
impl Unpin for DeviceBuilder
impl UnwindSafe for DeviceBuilder
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> 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