#[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 ==
.