Struct aws_sdk_iotfleetwise::types::builders::ObdInterfaceBuilder
source · #[non_exhaustive]pub struct ObdInterfaceBuilder { /* private fields */ }
Expand description
A builder for ObdInterface
.
Implementations§
source§impl ObdInterfaceBuilder
impl ObdInterfaceBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the interface.
This field is required.sourcepub fn request_message_id(self, input: i32) -> Self
pub fn request_message_id(self, input: i32) -> Self
The ID of the message requesting vehicle data.
This field is required.sourcepub fn set_request_message_id(self, input: Option<i32>) -> Self
pub fn set_request_message_id(self, input: Option<i32>) -> Self
The ID of the message requesting vehicle data.
sourcepub fn get_request_message_id(&self) -> &Option<i32>
pub fn get_request_message_id(&self) -> &Option<i32>
The ID of the message requesting vehicle data.
sourcepub fn obd_standard(self, input: impl Into<String>) -> Self
pub fn obd_standard(self, input: impl Into<String>) -> Self
The standard OBD II PID.
sourcepub fn set_obd_standard(self, input: Option<String>) -> Self
pub fn set_obd_standard(self, input: Option<String>) -> Self
The standard OBD II PID.
sourcepub fn get_obd_standard(&self) -> &Option<String>
pub fn get_obd_standard(&self) -> &Option<String>
The standard OBD II PID.
sourcepub fn pid_request_interval_seconds(self, input: i32) -> Self
pub fn pid_request_interval_seconds(self, input: i32) -> Self
The maximum number message requests per second.
sourcepub fn set_pid_request_interval_seconds(self, input: Option<i32>) -> Self
pub fn set_pid_request_interval_seconds(self, input: Option<i32>) -> Self
The maximum number message requests per second.
sourcepub fn get_pid_request_interval_seconds(&self) -> &Option<i32>
pub fn get_pid_request_interval_seconds(&self) -> &Option<i32>
The maximum number message requests per second.
sourcepub fn dtc_request_interval_seconds(self, input: i32) -> Self
pub fn dtc_request_interval_seconds(self, input: i32) -> Self
The maximum number message requests per diagnostic trouble code per second.
sourcepub fn set_dtc_request_interval_seconds(self, input: Option<i32>) -> Self
pub fn set_dtc_request_interval_seconds(self, input: Option<i32>) -> Self
The maximum number message requests per diagnostic trouble code per second.
sourcepub fn get_dtc_request_interval_seconds(&self) -> &Option<i32>
pub fn get_dtc_request_interval_seconds(&self) -> &Option<i32>
The maximum number message requests per diagnostic trouble code per second.
sourcepub fn use_extended_ids(self, input: bool) -> Self
pub fn use_extended_ids(self, input: bool) -> Self
Whether to use extended IDs in the message.
sourcepub fn set_use_extended_ids(self, input: Option<bool>) -> Self
pub fn set_use_extended_ids(self, input: Option<bool>) -> Self
Whether to use extended IDs in the message.
sourcepub fn get_use_extended_ids(&self) -> &Option<bool>
pub fn get_use_extended_ids(&self) -> &Option<bool>
Whether to use extended IDs in the message.
sourcepub fn has_transmission_ecu(self, input: bool) -> Self
pub fn has_transmission_ecu(self, input: bool) -> Self
Whether the vehicle has a transmission control module (TCM).
sourcepub fn set_has_transmission_ecu(self, input: Option<bool>) -> Self
pub fn set_has_transmission_ecu(self, input: Option<bool>) -> Self
Whether the vehicle has a transmission control module (TCM).
sourcepub fn get_has_transmission_ecu(&self) -> &Option<bool>
pub fn get_has_transmission_ecu(&self) -> &Option<bool>
Whether the vehicle has a transmission control module (TCM).
sourcepub fn build(self) -> Result<ObdInterface, BuildError>
pub fn build(self) -> Result<ObdInterface, BuildError>
Consumes the builder and constructs a ObdInterface
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ObdInterfaceBuilder
impl Clone for ObdInterfaceBuilder
source§fn clone(&self) -> ObdInterfaceBuilder
fn clone(&self) -> ObdInterfaceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ObdInterfaceBuilder
impl Debug for ObdInterfaceBuilder
source§impl Default for ObdInterfaceBuilder
impl Default for ObdInterfaceBuilder
source§fn default() -> ObdInterfaceBuilder
fn default() -> ObdInterfaceBuilder
source§impl PartialEq for ObdInterfaceBuilder
impl PartialEq for ObdInterfaceBuilder
source§fn eq(&self, other: &ObdInterfaceBuilder) -> bool
fn eq(&self, other: &ObdInterfaceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.