Struct aws_sdk_iotfleetwise::model::network_interface::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for NetworkInterface
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn interface_id(self, input: impl Into<String>) -> Self
pub fn interface_id(self, input: impl Into<String>) -> Self
The ID of the network interface.
sourcepub fn set_interface_id(self, input: Option<String>) -> Self
pub fn set_interface_id(self, input: Option<String>) -> Self
The ID of the network interface.
sourcepub fn type(self, input: NetworkInterfaceType) -> Self
pub fn type(self, input: NetworkInterfaceType) -> Self
The network protocol for the vehicle. For example, CAN_SIGNAL
specifies a protocol that defines how data is communicated between electronic control units (ECUs). OBD_SIGNAL
specifies a protocol that defines how self-diagnostic data is communicated between ECUs.
sourcepub fn set_type(self, input: Option<NetworkInterfaceType>) -> Self
pub fn set_type(self, input: Option<NetworkInterfaceType>) -> Self
The network protocol for the vehicle. For example, CAN_SIGNAL
specifies a protocol that defines how data is communicated between electronic control units (ECUs). OBD_SIGNAL
specifies a protocol that defines how self-diagnostic data is communicated between ECUs.
sourcepub fn can_interface(self, input: CanInterface) -> Self
pub fn can_interface(self, input: CanInterface) -> Self
Information about a network interface specified by the Controller Area Network (CAN) protocol.
sourcepub fn set_can_interface(self, input: Option<CanInterface>) -> Self
pub fn set_can_interface(self, input: Option<CanInterface>) -> Self
Information about a network interface specified by the Controller Area Network (CAN) protocol.
sourcepub fn obd_interface(self, input: ObdInterface) -> Self
pub fn obd_interface(self, input: ObdInterface) -> Self
Information about a network interface specified by the On-board diagnostic (OBD) II protocol.
sourcepub fn set_obd_interface(self, input: Option<ObdInterface>) -> Self
pub fn set_obd_interface(self, input: Option<ObdInterface>) -> Self
Information about a network interface specified by the On-board diagnostic (OBD) II protocol.
sourcepub fn build(self) -> NetworkInterface
pub fn build(self) -> NetworkInterface
Consumes the builder and constructs a NetworkInterface
.