#[non_exhaustive]pub struct CreateDeviceInput {
pub global_network_id: Option<String>,
pub aws_location: Option<AwsLocation>,
pub description: Option<String>,
pub type: Option<String>,
pub vendor: Option<String>,
pub model: Option<String>,
pub serial_number: Option<String>,
pub location: Option<Location>,
pub site_id: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.global_network_id: Option<String>
The ID of the global network.
aws_location: Option<AwsLocation>
The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.
description: Option<String>
A description of the device.
Constraints: Maximum length of 256 characters.
type: Option<String>
The type of the device.
vendor: Option<String>
The vendor of the device.
Constraints: Maximum length of 128 characters.
model: Option<String>
The model of the device.
Constraints: Maximum length of 128 characters.
serial_number: Option<String>
The serial number of the device.
Constraints: Maximum length of 128 characters.
location: Option<Location>
The location of the device.
site_id: Option<String>
The ID of the site.
The tags to apply to the resource during creation.
Implementations§
source§impl CreateDeviceInput
impl CreateDeviceInput
sourcepub fn global_network_id(&self) -> Option<&str>
pub fn global_network_id(&self) -> Option<&str>
The ID of the global network.
sourcepub fn aws_location(&self) -> Option<&AwsLocation>
pub fn 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) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the device.
Constraints: Maximum length of 256 characters.
sourcepub fn vendor(&self) -> Option<&str>
pub fn vendor(&self) -> Option<&str>
The vendor of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn model(&self) -> Option<&str>
pub fn model(&self) -> Option<&str>
The model of the device.
Constraints: Maximum length of 128 characters.
sourcepub fn serial_number(&self) -> Option<&str>
pub fn serial_number(&self) -> Option<&str>
The serial number of the device.
Constraints: Maximum length of 128 characters.
The tags to apply to the resource during creation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateDeviceInput
impl CreateDeviceInput
sourcepub fn builder() -> CreateDeviceInputBuilder
pub fn builder() -> CreateDeviceInputBuilder
Creates a new builder-style object to manufacture CreateDeviceInput
.
Trait Implementations§
source§impl Clone for CreateDeviceInput
impl Clone for CreateDeviceInput
source§fn clone(&self) -> CreateDeviceInput
fn clone(&self) -> CreateDeviceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDeviceInput
impl Debug for CreateDeviceInput
source§impl PartialEq for CreateDeviceInput
impl PartialEq for CreateDeviceInput
source§fn eq(&self, other: &CreateDeviceInput) -> bool
fn eq(&self, other: &CreateDeviceInput) -> bool
self
and other
values to be equal, and is used
by ==
.