#[non_exhaustive]pub struct UpdateDeviceInputBuilder { /* private fields */ }
Expand description
A builder for UpdateDeviceInput
.
Implementations§
source§impl UpdateDeviceInputBuilder
impl UpdateDeviceInputBuilder
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.
This field is required.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 device_id(self, input: impl Into<String>) -> Self
pub fn device_id(self, input: impl Into<String>) -> Self
The ID of the device.
This field is required.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 aws_location(self, input: AwsLocation) -> Self
pub fn aws_location(self, input: AwsLocation) -> Self
The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.
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, if applicable. For an on-premises device, you can omit this parameter.
sourcepub fn get_aws_location(&self) -> &Option<AwsLocation>
pub fn get_aws_location(&self) -> &Option<AwsLocation>
The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the device.
Constraints: Maximum length of 256 characters.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the device.
Constraints: Maximum length of 256 characters.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the device.
Constraints: Maximum length of 256 characters.
sourcepub fn vendor(self, input: impl Into<String>) -> Self
pub fn vendor(self, input: impl Into<String>) -> Self
The vendor of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn set_vendor(self, input: Option<String>) -> Self
pub fn set_vendor(self, input: Option<String>) -> Self
The vendor of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn get_vendor(&self) -> &Option<String>
pub fn get_vendor(&self) -> &Option<String>
The vendor of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn model(self, input: impl Into<String>) -> Self
pub fn model(self, input: impl Into<String>) -> Self
The model of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn set_model(self, input: Option<String>) -> Self
pub fn set_model(self, input: Option<String>) -> Self
The model of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn get_model(&self) -> &Option<String>
pub fn get_model(&self) -> &Option<String>
The model of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn serial_number(self, input: impl Into<String>) -> Self
pub fn serial_number(self, input: impl Into<String>) -> Self
The serial number of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn set_serial_number(self, input: Option<String>) -> Self
pub fn set_serial_number(self, input: Option<String>) -> Self
The serial number of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn get_serial_number(&self) -> &Option<String>
pub fn get_serial_number(&self) -> &Option<String>
The serial number of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn set_location(self, input: Option<Location>) -> Self
pub fn set_location(self, input: Option<Location>) -> Self
Describes a location.
sourcepub fn get_location(&self) -> &Option<Location>
pub fn get_location(&self) -> &Option<Location>
Describes a location.
sourcepub fn set_site_id(self, input: Option<String>) -> Self
pub fn set_site_id(self, input: Option<String>) -> Self
The ID of the site.
sourcepub fn get_site_id(&self) -> &Option<String>
pub fn get_site_id(&self) -> &Option<String>
The ID of the site.
sourcepub fn build(self) -> Result<UpdateDeviceInput, BuildError>
pub fn build(self) -> Result<UpdateDeviceInput, BuildError>
Consumes the builder and constructs a UpdateDeviceInput
.
source§impl UpdateDeviceInputBuilder
impl UpdateDeviceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateDeviceOutput, SdkError<UpdateDeviceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateDeviceOutput, SdkError<UpdateDeviceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateDeviceInputBuilder
impl Clone for UpdateDeviceInputBuilder
source§fn clone(&self) -> UpdateDeviceInputBuilder
fn clone(&self) -> UpdateDeviceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateDeviceInputBuilder
impl Debug for UpdateDeviceInputBuilder
source§impl Default for UpdateDeviceInputBuilder
impl Default for UpdateDeviceInputBuilder
source§fn default() -> UpdateDeviceInputBuilder
fn default() -> UpdateDeviceInputBuilder
source§impl PartialEq for UpdateDeviceInputBuilder
impl PartialEq for UpdateDeviceInputBuilder
source§fn eq(&self, other: &UpdateDeviceInputBuilder) -> bool
fn eq(&self, other: &UpdateDeviceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateDeviceInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateDeviceInputBuilder
impl RefUnwindSafe for UpdateDeviceInputBuilder
impl Send for UpdateDeviceInputBuilder
impl Sync for UpdateDeviceInputBuilder
impl Unpin for UpdateDeviceInputBuilder
impl UnwindSafe for UpdateDeviceInputBuilder
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