#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ValidationExceptionField {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ValidationExceptionField {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
pub mod validation_exception_field {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::model::ValidationExceptionField {
crate::model::ValidationExceptionField {
name: self.name,
message: self.message,
}
}
}
}
impl ValidationExceptionField {
pub fn builder() -> crate::model::validation_exception_field::Builder {
crate::model::validation_exception_field::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ValidationExceptionReason {
#[allow(missing_docs)] CannotParse,
#[allow(missing_docs)] FieldValidationFailed,
#[allow(missing_docs)] Other,
#[allow(missing_docs)] UnknownOperation,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ValidationExceptionReason {
fn from(s: &str) -> Self {
match s {
"cannotParse" => ValidationExceptionReason::CannotParse,
"fieldValidationFailed" => ValidationExceptionReason::FieldValidationFailed,
"other" => ValidationExceptionReason::Other,
"unknownOperation" => ValidationExceptionReason::UnknownOperation,
other => ValidationExceptionReason::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for ValidationExceptionReason {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ValidationExceptionReason::from(s))
}
}
impl ValidationExceptionReason {
pub fn as_str(&self) -> &str {
match self {
ValidationExceptionReason::CannotParse => "cannotParse",
ValidationExceptionReason::FieldValidationFailed => "fieldValidationFailed",
ValidationExceptionReason::Other => "other",
ValidationExceptionReason::UnknownOperation => "unknownOperation",
ValidationExceptionReason::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"cannotParse",
"fieldValidationFailed",
"other",
"unknownOperation",
]
}
}
impl AsRef<str> for ValidationExceptionReason {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct VehicleSummary {
#[doc(hidden)]
pub vehicle_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub model_manifest_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub decoder_manifest_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl VehicleSummary {
pub fn vehicle_name(&self) -> std::option::Option<&str> {
self.vehicle_name.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn model_manifest_arn(&self) -> std::option::Option<&str> {
self.model_manifest_arn.as_deref()
}
pub fn decoder_manifest_arn(&self) -> std::option::Option<&str> {
self.decoder_manifest_arn.as_deref()
}
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modification_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_modification_time.as_ref()
}
}
pub mod vehicle_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) vehicle_name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) model_manifest_arn: std::option::Option<std::string::String>,
pub(crate) decoder_manifest_arn: std::option::Option<std::string::String>,
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn vehicle_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vehicle_name = Some(input.into());
self
}
pub fn set_vehicle_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vehicle_name = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn model_manifest_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.model_manifest_arn = Some(input.into());
self
}
pub fn set_model_manifest_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.model_manifest_arn = input;
self
}
pub fn decoder_manifest_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.decoder_manifest_arn = Some(input.into());
self
}
pub fn set_decoder_manifest_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.decoder_manifest_arn = input;
self
}
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn last_modification_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_modification_time = Some(input);
self
}
pub fn set_last_modification_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_modification_time = input;
self
}
pub fn build(self) -> crate::model::VehicleSummary {
crate::model::VehicleSummary {
vehicle_name: self.vehicle_name,
arn: self.arn,
model_manifest_arn: self.model_manifest_arn,
decoder_manifest_arn: self.decoder_manifest_arn,
creation_time: self.creation_time,
last_modification_time: self.last_modification_time,
}
}
}
}
impl VehicleSummary {
pub fn builder() -> crate::model::vehicle_summary::Builder {
crate::model::vehicle_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Tag {
#[doc(hidden)]
pub key: std::option::Option<std::string::String>,
#[doc(hidden)]
pub value: std::option::Option<std::string::String>,
}
impl Tag {
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
pub mod tag {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) key: std::option::Option<std::string::String>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::Tag {
crate::model::Tag {
key: self.key,
value: self.value,
}
}
}
}
impl Tag {
pub fn builder() -> crate::model::tag::Builder {
crate::model::tag::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum VehicleAssociationBehavior {
#[allow(missing_docs)] CreateIotThing,
#[allow(missing_docs)] ValidateIotThingExists,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for VehicleAssociationBehavior {
fn from(s: &str) -> Self {
match s {
"CreateIotThing" => VehicleAssociationBehavior::CreateIotThing,
"ValidateIotThingExists" => VehicleAssociationBehavior::ValidateIotThingExists,
other => VehicleAssociationBehavior::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for VehicleAssociationBehavior {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(VehicleAssociationBehavior::from(s))
}
}
impl VehicleAssociationBehavior {
pub fn as_str(&self) -> &str {
match self {
VehicleAssociationBehavior::CreateIotThing => "CreateIotThing",
VehicleAssociationBehavior::ValidateIotThingExists => "ValidateIotThingExists",
VehicleAssociationBehavior::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["CreateIotThing", "ValidateIotThingExists"]
}
}
impl AsRef<str> for VehicleAssociationBehavior {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum UpdateMode {
#[allow(missing_docs)] Merge,
#[allow(missing_docs)] Overwrite,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for UpdateMode {
fn from(s: &str) -> Self {
match s {
"Merge" => UpdateMode::Merge,
"Overwrite" => UpdateMode::Overwrite,
other => UpdateMode::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for UpdateMode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(UpdateMode::from(s))
}
}
impl UpdateMode {
pub fn as_str(&self) -> &str {
match self {
UpdateMode::Merge => "Merge",
UpdateMode::Overwrite => "Overwrite",
UpdateMode::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["Merge", "Overwrite"]
}
}
impl AsRef<str> for UpdateMode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub enum Node {
Actuator(crate::model::Actuator),
Attribute(crate::model::Attribute),
Branch(crate::model::Branch),
Sensor(crate::model::Sensor),
#[non_exhaustive]
Unknown,
}
impl Node {
pub fn as_actuator(&self) -> std::result::Result<&crate::model::Actuator, &Self> {
if let Node::Actuator(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_actuator(&self) -> bool {
self.as_actuator().is_ok()
}
pub fn as_attribute(&self) -> std::result::Result<&crate::model::Attribute, &Self> {
if let Node::Attribute(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_attribute(&self) -> bool {
self.as_attribute().is_ok()
}
pub fn as_branch(&self) -> std::result::Result<&crate::model::Branch, &Self> {
if let Node::Branch(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_branch(&self) -> bool {
self.as_branch().is_ok()
}
pub fn as_sensor(&self) -> std::result::Result<&crate::model::Sensor, &Self> {
if let Node::Sensor(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_sensor(&self) -> bool {
self.as_sensor().is_ok()
}
pub fn is_unknown(&self) -> bool {
matches!(self, Self::Unknown)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Attribute {
#[doc(hidden)]
pub fully_qualified_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub data_type: std::option::Option<crate::model::NodeDataType>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub unit: std::option::Option<std::string::String>,
#[doc(hidden)]
pub allowed_values: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub min: std::option::Option<f64>,
#[doc(hidden)]
pub max: std::option::Option<f64>,
#[deprecated(note = "assignedValue is no longer in use")]
#[doc(hidden)]
pub assigned_value: std::option::Option<std::string::String>,
#[doc(hidden)]
pub default_value: std::option::Option<std::string::String>,
}
impl Attribute {
pub fn fully_qualified_name(&self) -> std::option::Option<&str> {
self.fully_qualified_name.as_deref()
}
pub fn data_type(&self) -> std::option::Option<&crate::model::NodeDataType> {
self.data_type.as_ref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn unit(&self) -> std::option::Option<&str> {
self.unit.as_deref()
}
pub fn allowed_values(&self) -> std::option::Option<&[std::string::String]> {
self.allowed_values.as_deref()
}
pub fn min(&self) -> std::option::Option<f64> {
self.min
}
pub fn max(&self) -> std::option::Option<f64> {
self.max
}
#[deprecated(note = "assignedValue is no longer in use")]
pub fn assigned_value(&self) -> std::option::Option<&str> {
self.assigned_value.as_deref()
}
pub fn default_value(&self) -> std::option::Option<&str> {
self.default_value.as_deref()
}
}
pub mod attribute {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) fully_qualified_name: std::option::Option<std::string::String>,
pub(crate) data_type: std::option::Option<crate::model::NodeDataType>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) unit: std::option::Option<std::string::String>,
pub(crate) allowed_values: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) min: std::option::Option<f64>,
pub(crate) max: std::option::Option<f64>,
pub(crate) assigned_value: std::option::Option<std::string::String>,
pub(crate) default_value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn fully_qualified_name(mut self, input: impl Into<std::string::String>) -> Self {
self.fully_qualified_name = Some(input.into());
self
}
pub fn set_fully_qualified_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.fully_qualified_name = input;
self
}
pub fn data_type(mut self, input: crate::model::NodeDataType) -> Self {
self.data_type = Some(input);
self
}
pub fn set_data_type(
mut self,
input: std::option::Option<crate::model::NodeDataType>,
) -> Self {
self.data_type = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn unit(mut self, input: impl Into<std::string::String>) -> Self {
self.unit = Some(input.into());
self
}
pub fn set_unit(mut self, input: std::option::Option<std::string::String>) -> Self {
self.unit = input;
self
}
pub fn allowed_values(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.allowed_values.unwrap_or_default();
v.push(input.into());
self.allowed_values = Some(v);
self
}
pub fn set_allowed_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.allowed_values = input;
self
}
pub fn min(mut self, input: f64) -> Self {
self.min = Some(input);
self
}
pub fn set_min(mut self, input: std::option::Option<f64>) -> Self {
self.min = input;
self
}
pub fn max(mut self, input: f64) -> Self {
self.max = Some(input);
self
}
pub fn set_max(mut self, input: std::option::Option<f64>) -> Self {
self.max = input;
self
}
#[deprecated(note = "assignedValue is no longer in use")]
pub fn assigned_value(mut self, input: impl Into<std::string::String>) -> Self {
self.assigned_value = Some(input.into());
self
}
#[deprecated(note = "assignedValue is no longer in use")]
pub fn set_assigned_value(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.assigned_value = input;
self
}
pub fn default_value(mut self, input: impl Into<std::string::String>) -> Self {
self.default_value = Some(input.into());
self
}
pub fn set_default_value(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.default_value = input;
self
}
pub fn build(self) -> crate::model::Attribute {
crate::model::Attribute {
fully_qualified_name: self.fully_qualified_name,
data_type: self.data_type,
description: self.description,
unit: self.unit,
allowed_values: self.allowed_values,
min: self.min,
max: self.max,
assigned_value: self.assigned_value,
default_value: self.default_value,
}
}
}
}
impl Attribute {
pub fn builder() -> crate::model::attribute::Builder {
crate::model::attribute::Builder::default()
}
}
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum NodeDataType {
#[allow(missing_docs)] Boolean,
#[allow(missing_docs)] BooleanArray,
#[allow(missing_docs)] Double,
#[allow(missing_docs)] DoubleArray,
#[allow(missing_docs)] Float,
#[allow(missing_docs)] FloatArray,
#[allow(missing_docs)] Int16,
#[allow(missing_docs)] Int16Array,
#[allow(missing_docs)] Int32,
#[allow(missing_docs)] Int32Array,
#[allow(missing_docs)] Int64,
#[allow(missing_docs)] Int64Array,
#[allow(missing_docs)] Int8,
#[allow(missing_docs)] Int8Array,
#[allow(missing_docs)] String,
#[allow(missing_docs)] StringArray,
#[allow(missing_docs)] Uint16,
#[allow(missing_docs)] Uint16Array,
#[allow(missing_docs)] Uint32,
#[allow(missing_docs)] Uint32Array,
#[allow(missing_docs)] Uint64,
#[allow(missing_docs)] Uint64Array,
#[allow(missing_docs)] Uint8,
#[allow(missing_docs)] Uint8Array,
#[allow(missing_docs)] UnixTimestamp,
#[allow(missing_docs)] UnixTimestampArray,
UnknownValue,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for NodeDataType {
fn from(s: &str) -> Self {
match s {
"BOOLEAN" => NodeDataType::Boolean,
"BOOLEAN_ARRAY" => NodeDataType::BooleanArray,
"DOUBLE" => NodeDataType::Double,
"DOUBLE_ARRAY" => NodeDataType::DoubleArray,
"FLOAT" => NodeDataType::Float,
"FLOAT_ARRAY" => NodeDataType::FloatArray,
"INT16" => NodeDataType::Int16,
"INT16_ARRAY" => NodeDataType::Int16Array,
"INT32" => NodeDataType::Int32,
"INT32_ARRAY" => NodeDataType::Int32Array,
"INT64" => NodeDataType::Int64,
"INT64_ARRAY" => NodeDataType::Int64Array,
"INT8" => NodeDataType::Int8,
"INT8_ARRAY" => NodeDataType::Int8Array,
"STRING" => NodeDataType::String,
"STRING_ARRAY" => NodeDataType::StringArray,
"UINT16" => NodeDataType::Uint16,
"UINT16_ARRAY" => NodeDataType::Uint16Array,
"UINT32" => NodeDataType::Uint32,
"UINT32_ARRAY" => NodeDataType::Uint32Array,
"UINT64" => NodeDataType::Uint64,
"UINT64_ARRAY" => NodeDataType::Uint64Array,
"UINT8" => NodeDataType::Uint8,
"UINT8_ARRAY" => NodeDataType::Uint8Array,
"UNIX_TIMESTAMP" => NodeDataType::UnixTimestamp,
"UNIX_TIMESTAMP_ARRAY" => NodeDataType::UnixTimestampArray,
"UNKNOWN" => NodeDataType::UnknownValue,
other => NodeDataType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for NodeDataType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(NodeDataType::from(s))
}
}
impl NodeDataType {
pub fn as_str(&self) -> &str {
match self {
NodeDataType::Boolean => "BOOLEAN",
NodeDataType::BooleanArray => "BOOLEAN_ARRAY",
NodeDataType::Double => "DOUBLE",
NodeDataType::DoubleArray => "DOUBLE_ARRAY",
NodeDataType::Float => "FLOAT",
NodeDataType::FloatArray => "FLOAT_ARRAY",
NodeDataType::Int16 => "INT16",
NodeDataType::Int16Array => "INT16_ARRAY",
NodeDataType::Int32 => "INT32",
NodeDataType::Int32Array => "INT32_ARRAY",
NodeDataType::Int64 => "INT64",
NodeDataType::Int64Array => "INT64_ARRAY",
NodeDataType::Int8 => "INT8",
NodeDataType::Int8Array => "INT8_ARRAY",
NodeDataType::String => "STRING",
NodeDataType::StringArray => "STRING_ARRAY",
NodeDataType::Uint16 => "UINT16",
NodeDataType::Uint16Array => "UINT16_ARRAY",
NodeDataType::Uint32 => "UINT32",
NodeDataType::Uint32Array => "UINT32_ARRAY",
NodeDataType::Uint64 => "UINT64",
NodeDataType::Uint64Array => "UINT64_ARRAY",
NodeDataType::Uint8 => "UINT8",
NodeDataType::Uint8Array => "UINT8_ARRAY",
NodeDataType::UnixTimestamp => "UNIX_TIMESTAMP",
NodeDataType::UnixTimestampArray => "UNIX_TIMESTAMP_ARRAY",
NodeDataType::UnknownValue => "UNKNOWN",
NodeDataType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"BOOLEAN",
"BOOLEAN_ARRAY",
"DOUBLE",
"DOUBLE_ARRAY",
"FLOAT",
"FLOAT_ARRAY",
"INT16",
"INT16_ARRAY",
"INT32",
"INT32_ARRAY",
"INT64",
"INT64_ARRAY",
"INT8",
"INT8_ARRAY",
"STRING",
"STRING_ARRAY",
"UINT16",
"UINT16_ARRAY",
"UINT32",
"UINT32_ARRAY",
"UINT64",
"UINT64_ARRAY",
"UINT8",
"UINT8_ARRAY",
"UNIX_TIMESTAMP",
"UNIX_TIMESTAMP_ARRAY",
"UNKNOWN",
]
}
}
impl AsRef<str> for NodeDataType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Actuator {
#[doc(hidden)]
pub fully_qualified_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub data_type: std::option::Option<crate::model::NodeDataType>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub unit: std::option::Option<std::string::String>,
#[doc(hidden)]
pub allowed_values: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub min: std::option::Option<f64>,
#[doc(hidden)]
pub max: std::option::Option<f64>,
#[deprecated(note = "assignedValue is no longer in use")]
#[doc(hidden)]
pub assigned_value: std::option::Option<std::string::String>,
}
impl Actuator {
pub fn fully_qualified_name(&self) -> std::option::Option<&str> {
self.fully_qualified_name.as_deref()
}
pub fn data_type(&self) -> std::option::Option<&crate::model::NodeDataType> {
self.data_type.as_ref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn unit(&self) -> std::option::Option<&str> {
self.unit.as_deref()
}
pub fn allowed_values(&self) -> std::option::Option<&[std::string::String]> {
self.allowed_values.as_deref()
}
pub fn min(&self) -> std::option::Option<f64> {
self.min
}
pub fn max(&self) -> std::option::Option<f64> {
self.max
}
#[deprecated(note = "assignedValue is no longer in use")]
pub fn assigned_value(&self) -> std::option::Option<&str> {
self.assigned_value.as_deref()
}
}
pub mod actuator {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) fully_qualified_name: std::option::Option<std::string::String>,
pub(crate) data_type: std::option::Option<crate::model::NodeDataType>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) unit: std::option::Option<std::string::String>,
pub(crate) allowed_values: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) min: std::option::Option<f64>,
pub(crate) max: std::option::Option<f64>,
pub(crate) assigned_value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn fully_qualified_name(mut self, input: impl Into<std::string::String>) -> Self {
self.fully_qualified_name = Some(input.into());
self
}
pub fn set_fully_qualified_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.fully_qualified_name = input;
self
}
pub fn data_type(mut self, input: crate::model::NodeDataType) -> Self {
self.data_type = Some(input);
self
}
pub fn set_data_type(
mut self,
input: std::option::Option<crate::model::NodeDataType>,
) -> Self {
self.data_type = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn unit(mut self, input: impl Into<std::string::String>) -> Self {
self.unit = Some(input.into());
self
}
pub fn set_unit(mut self, input: std::option::Option<std::string::String>) -> Self {
self.unit = input;
self
}
pub fn allowed_values(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.allowed_values.unwrap_or_default();
v.push(input.into());
self.allowed_values = Some(v);
self
}
pub fn set_allowed_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.allowed_values = input;
self
}
pub fn min(mut self, input: f64) -> Self {
self.min = Some(input);
self
}
pub fn set_min(mut self, input: std::option::Option<f64>) -> Self {
self.min = input;
self
}
pub fn max(mut self, input: f64) -> Self {
self.max = Some(input);
self
}
pub fn set_max(mut self, input: std::option::Option<f64>) -> Self {
self.max = input;
self
}
#[deprecated(note = "assignedValue is no longer in use")]
pub fn assigned_value(mut self, input: impl Into<std::string::String>) -> Self {
self.assigned_value = Some(input.into());
self
}
#[deprecated(note = "assignedValue is no longer in use")]
pub fn set_assigned_value(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.assigned_value = input;
self
}
pub fn build(self) -> crate::model::Actuator {
crate::model::Actuator {
fully_qualified_name: self.fully_qualified_name,
data_type: self.data_type,
description: self.description,
unit: self.unit,
allowed_values: self.allowed_values,
min: self.min,
max: self.max,
assigned_value: self.assigned_value,
}
}
}
}
impl Actuator {
pub fn builder() -> crate::model::actuator::Builder {
crate::model::actuator::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Sensor {
#[doc(hidden)]
pub fully_qualified_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub data_type: std::option::Option<crate::model::NodeDataType>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub unit: std::option::Option<std::string::String>,
#[doc(hidden)]
pub allowed_values: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub min: std::option::Option<f64>,
#[doc(hidden)]
pub max: std::option::Option<f64>,
}
impl Sensor {
pub fn fully_qualified_name(&self) -> std::option::Option<&str> {
self.fully_qualified_name.as_deref()
}
pub fn data_type(&self) -> std::option::Option<&crate::model::NodeDataType> {
self.data_type.as_ref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn unit(&self) -> std::option::Option<&str> {
self.unit.as_deref()
}
pub fn allowed_values(&self) -> std::option::Option<&[std::string::String]> {
self.allowed_values.as_deref()
}
pub fn min(&self) -> std::option::Option<f64> {
self.min
}
pub fn max(&self) -> std::option::Option<f64> {
self.max
}
}
pub mod sensor {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) fully_qualified_name: std::option::Option<std::string::String>,
pub(crate) data_type: std::option::Option<crate::model::NodeDataType>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) unit: std::option::Option<std::string::String>,
pub(crate) allowed_values: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) min: std::option::Option<f64>,
pub(crate) max: std::option::Option<f64>,
}
impl Builder {
pub fn fully_qualified_name(mut self, input: impl Into<std::string::String>) -> Self {
self.fully_qualified_name = Some(input.into());
self
}
pub fn set_fully_qualified_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.fully_qualified_name = input;
self
}
pub fn data_type(mut self, input: crate::model::NodeDataType) -> Self {
self.data_type = Some(input);
self
}
pub fn set_data_type(
mut self,
input: std::option::Option<crate::model::NodeDataType>,
) -> Self {
self.data_type = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn unit(mut self, input: impl Into<std::string::String>) -> Self {
self.unit = Some(input.into());
self
}
pub fn set_unit(mut self, input: std::option::Option<std::string::String>) -> Self {
self.unit = input;
self
}
pub fn allowed_values(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.allowed_values.unwrap_or_default();
v.push(input.into());
self.allowed_values = Some(v);
self
}
pub fn set_allowed_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.allowed_values = input;
self
}
pub fn min(mut self, input: f64) -> Self {
self.min = Some(input);
self
}
pub fn set_min(mut self, input: std::option::Option<f64>) -> Self {
self.min = input;
self
}
pub fn max(mut self, input: f64) -> Self {
self.max = Some(input);
self
}
pub fn set_max(mut self, input: std::option::Option<f64>) -> Self {
self.max = input;
self
}
pub fn build(self) -> crate::model::Sensor {
crate::model::Sensor {
fully_qualified_name: self.fully_qualified_name,
data_type: self.data_type,
description: self.description,
unit: self.unit,
allowed_values: self.allowed_values,
min: self.min,
max: self.max,
}
}
}
}
impl Sensor {
pub fn builder() -> crate::model::sensor::Builder {
crate::model::sensor::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Branch {
#[doc(hidden)]
pub fully_qualified_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
}
impl Branch {
pub fn fully_qualified_name(&self) -> std::option::Option<&str> {
self.fully_qualified_name.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
}
pub mod branch {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) fully_qualified_name: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
}
impl Builder {
pub fn fully_qualified_name(mut self, input: impl Into<std::string::String>) -> Self {
self.fully_qualified_name = Some(input.into());
self
}
pub fn set_fully_qualified_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.fully_qualified_name = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn build(self) -> crate::model::Branch {
crate::model::Branch {
fully_qualified_name: self.fully_qualified_name,
description: self.description,
}
}
}
}
impl Branch {
pub fn builder() -> crate::model::branch::Builder {
crate::model::branch::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidSignal {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub reason: std::option::Option<std::string::String>,
}
impl InvalidSignal {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn reason(&self) -> std::option::Option<&str> {
self.reason.as_deref()
}
}
pub mod invalid_signal {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) reason: std::option::Option<std::string::String>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn reason(mut self, input: impl Into<std::string::String>) -> Self {
self.reason = Some(input.into());
self
}
pub fn set_reason(mut self, input: std::option::Option<std::string::String>) -> Self {
self.reason = input;
self
}
pub fn build(self) -> crate::model::InvalidSignal {
crate::model::InvalidSignal {
name: self.name,
reason: self.reason,
}
}
}
}
impl InvalidSignal {
pub fn builder() -> crate::model::invalid_signal::Builder {
crate::model::invalid_signal::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub enum FormattedVss {
VssJson(std::string::String),
#[non_exhaustive]
Unknown,
}
impl FormattedVss {
#[allow(irrefutable_let_patterns)]
pub fn as_vss_json(&self) -> std::result::Result<&std::string::String, &Self> {
if let FormattedVss::VssJson(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_vss_json(&self) -> bool {
self.as_vss_json().is_ok()
}
pub fn is_unknown(&self) -> bool {
matches!(self, Self::Unknown)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SignalCatalogSummary {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl SignalCatalogSummary {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modification_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_modification_time.as_ref()
}
}
pub mod signal_catalog_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn last_modification_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_modification_time = Some(input);
self
}
pub fn set_last_modification_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_modification_time = input;
self
}
pub fn build(self) -> crate::model::SignalCatalogSummary {
crate::model::SignalCatalogSummary {
name: self.name,
arn: self.arn,
creation_time: self.creation_time,
last_modification_time: self.last_modification_time,
}
}
}
}
impl SignalCatalogSummary {
pub fn builder() -> crate::model::signal_catalog_summary::Builder {
crate::model::signal_catalog_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct NodeCounts {
#[doc(hidden)]
pub total_nodes: i32,
#[doc(hidden)]
pub total_branches: i32,
#[doc(hidden)]
pub total_sensors: i32,
#[doc(hidden)]
pub total_attributes: i32,
#[doc(hidden)]
pub total_actuators: i32,
}
impl NodeCounts {
pub fn total_nodes(&self) -> i32 {
self.total_nodes
}
pub fn total_branches(&self) -> i32 {
self.total_branches
}
pub fn total_sensors(&self) -> i32 {
self.total_sensors
}
pub fn total_attributes(&self) -> i32 {
self.total_attributes
}
pub fn total_actuators(&self) -> i32 {
self.total_actuators
}
}
pub mod node_counts {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) total_nodes: std::option::Option<i32>,
pub(crate) total_branches: std::option::Option<i32>,
pub(crate) total_sensors: std::option::Option<i32>,
pub(crate) total_attributes: std::option::Option<i32>,
pub(crate) total_actuators: std::option::Option<i32>,
}
impl Builder {
pub fn total_nodes(mut self, input: i32) -> Self {
self.total_nodes = Some(input);
self
}
pub fn set_total_nodes(mut self, input: std::option::Option<i32>) -> Self {
self.total_nodes = input;
self
}
pub fn total_branches(mut self, input: i32) -> Self {
self.total_branches = Some(input);
self
}
pub fn set_total_branches(mut self, input: std::option::Option<i32>) -> Self {
self.total_branches = input;
self
}
pub fn total_sensors(mut self, input: i32) -> Self {
self.total_sensors = Some(input);
self
}
pub fn set_total_sensors(mut self, input: std::option::Option<i32>) -> Self {
self.total_sensors = input;
self
}
pub fn total_attributes(mut self, input: i32) -> Self {
self.total_attributes = Some(input);
self
}
pub fn set_total_attributes(mut self, input: std::option::Option<i32>) -> Self {
self.total_attributes = input;
self
}
pub fn total_actuators(mut self, input: i32) -> Self {
self.total_actuators = Some(input);
self
}
pub fn set_total_actuators(mut self, input: std::option::Option<i32>) -> Self {
self.total_actuators = input;
self
}
pub fn build(self) -> crate::model::NodeCounts {
crate::model::NodeCounts {
total_nodes: self.total_nodes.unwrap_or_default(),
total_branches: self.total_branches.unwrap_or_default(),
total_sensors: self.total_sensors.unwrap_or_default(),
total_attributes: self.total_attributes.unwrap_or_default(),
total_actuators: self.total_actuators.unwrap_or_default(),
}
}
}
}
impl NodeCounts {
pub fn builder() -> crate::model::node_counts::Builder {
crate::model::node_counts::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ModelManifestSummary {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub signal_catalog_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::ManifestStatus>,
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl ModelManifestSummary {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn signal_catalog_arn(&self) -> std::option::Option<&str> {
self.signal_catalog_arn.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::ManifestStatus> {
self.status.as_ref()
}
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modification_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_modification_time.as_ref()
}
}
pub mod model_manifest_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) signal_catalog_arn: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::ManifestStatus>,
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn signal_catalog_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.signal_catalog_arn = Some(input.into());
self
}
pub fn set_signal_catalog_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.signal_catalog_arn = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn status(mut self, input: crate::model::ManifestStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ManifestStatus>,
) -> Self {
self.status = input;
self
}
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn last_modification_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_modification_time = Some(input);
self
}
pub fn set_last_modification_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_modification_time = input;
self
}
pub fn build(self) -> crate::model::ModelManifestSummary {
crate::model::ModelManifestSummary {
name: self.name,
arn: self.arn,
signal_catalog_arn: self.signal_catalog_arn,
description: self.description,
status: self.status,
creation_time: self.creation_time,
last_modification_time: self.last_modification_time,
}
}
}
}
impl ModelManifestSummary {
pub fn builder() -> crate::model::model_manifest_summary::Builder {
crate::model::model_manifest_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ManifestStatus {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Draft,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ManifestStatus {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => ManifestStatus::Active,
"DRAFT" => ManifestStatus::Draft,
other => ManifestStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ManifestStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ManifestStatus::from(s))
}
}
impl ManifestStatus {
pub fn as_str(&self) -> &str {
match self {
ManifestStatus::Active => "ACTIVE",
ManifestStatus::Draft => "DRAFT",
ManifestStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ACTIVE", "DRAFT"]
}
}
impl AsRef<str> for ManifestStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FleetSummary {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub signal_catalog_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl FleetSummary {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn signal_catalog_arn(&self) -> std::option::Option<&str> {
self.signal_catalog_arn.as_deref()
}
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modification_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_modification_time.as_ref()
}
}
pub mod fleet_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) signal_catalog_arn: std::option::Option<std::string::String>,
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn signal_catalog_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.signal_catalog_arn = Some(input.into());
self
}
pub fn set_signal_catalog_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.signal_catalog_arn = input;
self
}
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn last_modification_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_modification_time = Some(input);
self
}
pub fn set_last_modification_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_modification_time = input;
self
}
pub fn build(self) -> crate::model::FleetSummary {
crate::model::FleetSummary {
id: self.id,
arn: self.arn,
description: self.description,
signal_catalog_arn: self.signal_catalog_arn,
creation_time: self.creation_time,
last_modification_time: self.last_modification_time,
}
}
}
}
impl FleetSummary {
pub fn builder() -> crate::model::fleet_summary::Builder {
crate::model::fleet_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SignalDecoder {
#[doc(hidden)]
pub fully_qualified_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::SignalDecoderType>,
#[doc(hidden)]
pub interface_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub can_signal: std::option::Option<crate::model::CanSignal>,
#[doc(hidden)]
pub obd_signal: std::option::Option<crate::model::ObdSignal>,
}
impl SignalDecoder {
pub fn fully_qualified_name(&self) -> std::option::Option<&str> {
self.fully_qualified_name.as_deref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::SignalDecoderType> {
self.r#type.as_ref()
}
pub fn interface_id(&self) -> std::option::Option<&str> {
self.interface_id.as_deref()
}
pub fn can_signal(&self) -> std::option::Option<&crate::model::CanSignal> {
self.can_signal.as_ref()
}
pub fn obd_signal(&self) -> std::option::Option<&crate::model::ObdSignal> {
self.obd_signal.as_ref()
}
}
pub mod signal_decoder {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) fully_qualified_name: std::option::Option<std::string::String>,
pub(crate) r#type: std::option::Option<crate::model::SignalDecoderType>,
pub(crate) interface_id: std::option::Option<std::string::String>,
pub(crate) can_signal: std::option::Option<crate::model::CanSignal>,
pub(crate) obd_signal: std::option::Option<crate::model::ObdSignal>,
}
impl Builder {
pub fn fully_qualified_name(mut self, input: impl Into<std::string::String>) -> Self {
self.fully_qualified_name = Some(input.into());
self
}
pub fn set_fully_qualified_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.fully_qualified_name = input;
self
}
pub fn r#type(mut self, input: crate::model::SignalDecoderType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(
mut self,
input: std::option::Option<crate::model::SignalDecoderType>,
) -> Self {
self.r#type = input;
self
}
pub fn interface_id(mut self, input: impl Into<std::string::String>) -> Self {
self.interface_id = Some(input.into());
self
}
pub fn set_interface_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.interface_id = input;
self
}
pub fn can_signal(mut self, input: crate::model::CanSignal) -> Self {
self.can_signal = Some(input);
self
}
pub fn set_can_signal(
mut self,
input: std::option::Option<crate::model::CanSignal>,
) -> Self {
self.can_signal = input;
self
}
pub fn obd_signal(mut self, input: crate::model::ObdSignal) -> Self {
self.obd_signal = Some(input);
self
}
pub fn set_obd_signal(
mut self,
input: std::option::Option<crate::model::ObdSignal>,
) -> Self {
self.obd_signal = input;
self
}
pub fn build(self) -> crate::model::SignalDecoder {
crate::model::SignalDecoder {
fully_qualified_name: self.fully_qualified_name,
r#type: self.r#type,
interface_id: self.interface_id,
can_signal: self.can_signal,
obd_signal: self.obd_signal,
}
}
}
}
impl SignalDecoder {
pub fn builder() -> crate::model::signal_decoder::Builder {
crate::model::signal_decoder::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ObdSignal {
#[doc(hidden)]
pub pid_response_length: i32,
#[doc(hidden)]
pub service_mode: i32,
#[doc(hidden)]
pub pid: i32,
#[doc(hidden)]
pub scaling: std::option::Option<f64>,
#[doc(hidden)]
pub offset: std::option::Option<f64>,
#[doc(hidden)]
pub start_byte: i32,
#[doc(hidden)]
pub byte_length: std::option::Option<i32>,
#[doc(hidden)]
pub bit_right_shift: i32,
#[doc(hidden)]
pub bit_mask_length: std::option::Option<i32>,
}
impl ObdSignal {
pub fn pid_response_length(&self) -> i32 {
self.pid_response_length
}
pub fn service_mode(&self) -> i32 {
self.service_mode
}
pub fn pid(&self) -> i32 {
self.pid
}
pub fn scaling(&self) -> std::option::Option<f64> {
self.scaling
}
pub fn offset(&self) -> std::option::Option<f64> {
self.offset
}
pub fn start_byte(&self) -> i32 {
self.start_byte
}
pub fn byte_length(&self) -> std::option::Option<i32> {
self.byte_length
}
pub fn bit_right_shift(&self) -> i32 {
self.bit_right_shift
}
pub fn bit_mask_length(&self) -> std::option::Option<i32> {
self.bit_mask_length
}
}
pub mod obd_signal {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) pid_response_length: std::option::Option<i32>,
pub(crate) service_mode: std::option::Option<i32>,
pub(crate) pid: std::option::Option<i32>,
pub(crate) scaling: std::option::Option<f64>,
pub(crate) offset: std::option::Option<f64>,
pub(crate) start_byte: std::option::Option<i32>,
pub(crate) byte_length: std::option::Option<i32>,
pub(crate) bit_right_shift: std::option::Option<i32>,
pub(crate) bit_mask_length: std::option::Option<i32>,
}
impl Builder {
pub fn pid_response_length(mut self, input: i32) -> Self {
self.pid_response_length = Some(input);
self
}
pub fn set_pid_response_length(mut self, input: std::option::Option<i32>) -> Self {
self.pid_response_length = input;
self
}
pub fn service_mode(mut self, input: i32) -> Self {
self.service_mode = Some(input);
self
}
pub fn set_service_mode(mut self, input: std::option::Option<i32>) -> Self {
self.service_mode = input;
self
}
pub fn pid(mut self, input: i32) -> Self {
self.pid = Some(input);
self
}
pub fn set_pid(mut self, input: std::option::Option<i32>) -> Self {
self.pid = input;
self
}
pub fn scaling(mut self, input: f64) -> Self {
self.scaling = Some(input);
self
}
pub fn set_scaling(mut self, input: std::option::Option<f64>) -> Self {
self.scaling = input;
self
}
pub fn offset(mut self, input: f64) -> Self {
self.offset = Some(input);
self
}
pub fn set_offset(mut self, input: std::option::Option<f64>) -> Self {
self.offset = input;
self
}
pub fn start_byte(mut self, input: i32) -> Self {
self.start_byte = Some(input);
self
}
pub fn set_start_byte(mut self, input: std::option::Option<i32>) -> Self {
self.start_byte = input;
self
}
pub fn byte_length(mut self, input: i32) -> Self {
self.byte_length = Some(input);
self
}
pub fn set_byte_length(mut self, input: std::option::Option<i32>) -> Self {
self.byte_length = input;
self
}
pub fn bit_right_shift(mut self, input: i32) -> Self {
self.bit_right_shift = Some(input);
self
}
pub fn set_bit_right_shift(mut self, input: std::option::Option<i32>) -> Self {
self.bit_right_shift = input;
self
}
pub fn bit_mask_length(mut self, input: i32) -> Self {
self.bit_mask_length = Some(input);
self
}
pub fn set_bit_mask_length(mut self, input: std::option::Option<i32>) -> Self {
self.bit_mask_length = input;
self
}
pub fn build(self) -> crate::model::ObdSignal {
crate::model::ObdSignal {
pid_response_length: self.pid_response_length.unwrap_or_default(),
service_mode: self.service_mode.unwrap_or_default(),
pid: self.pid.unwrap_or_default(),
scaling: self.scaling,
offset: self.offset,
start_byte: self.start_byte.unwrap_or_default(),
byte_length: self.byte_length,
bit_right_shift: self.bit_right_shift.unwrap_or_default(),
bit_mask_length: self.bit_mask_length,
}
}
}
}
impl ObdSignal {
pub fn builder() -> crate::model::obd_signal::Builder {
crate::model::obd_signal::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CanSignal {
#[doc(hidden)]
pub message_id: i32,
#[doc(hidden)]
pub is_big_endian: bool,
#[doc(hidden)]
pub is_signed: bool,
#[doc(hidden)]
pub start_bit: i32,
#[doc(hidden)]
pub offset: std::option::Option<f64>,
#[doc(hidden)]
pub factor: std::option::Option<f64>,
#[doc(hidden)]
pub length: i32,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
}
impl CanSignal {
pub fn message_id(&self) -> i32 {
self.message_id
}
pub fn is_big_endian(&self) -> bool {
self.is_big_endian
}
pub fn is_signed(&self) -> bool {
self.is_signed
}
pub fn start_bit(&self) -> i32 {
self.start_bit
}
pub fn offset(&self) -> std::option::Option<f64> {
self.offset
}
pub fn factor(&self) -> std::option::Option<f64> {
self.factor
}
pub fn length(&self) -> i32 {
self.length
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
}
pub mod can_signal {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message_id: std::option::Option<i32>,
pub(crate) is_big_endian: std::option::Option<bool>,
pub(crate) is_signed: std::option::Option<bool>,
pub(crate) start_bit: std::option::Option<i32>,
pub(crate) offset: std::option::Option<f64>,
pub(crate) factor: std::option::Option<f64>,
pub(crate) length: std::option::Option<i32>,
pub(crate) name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message_id(mut self, input: i32) -> Self {
self.message_id = Some(input);
self
}
pub fn set_message_id(mut self, input: std::option::Option<i32>) -> Self {
self.message_id = input;
self
}
pub fn is_big_endian(mut self, input: bool) -> Self {
self.is_big_endian = Some(input);
self
}
pub fn set_is_big_endian(mut self, input: std::option::Option<bool>) -> Self {
self.is_big_endian = input;
self
}
pub fn is_signed(mut self, input: bool) -> Self {
self.is_signed = Some(input);
self
}
pub fn set_is_signed(mut self, input: std::option::Option<bool>) -> Self {
self.is_signed = input;
self
}
pub fn start_bit(mut self, input: i32) -> Self {
self.start_bit = Some(input);
self
}
pub fn set_start_bit(mut self, input: std::option::Option<i32>) -> Self {
self.start_bit = input;
self
}
pub fn offset(mut self, input: f64) -> Self {
self.offset = Some(input);
self
}
pub fn set_offset(mut self, input: std::option::Option<f64>) -> Self {
self.offset = input;
self
}
pub fn factor(mut self, input: f64) -> Self {
self.factor = Some(input);
self
}
pub fn set_factor(mut self, input: std::option::Option<f64>) -> Self {
self.factor = input;
self
}
pub fn length(mut self, input: i32) -> Self {
self.length = Some(input);
self
}
pub fn set_length(mut self, input: std::option::Option<i32>) -> Self {
self.length = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn build(self) -> crate::model::CanSignal {
crate::model::CanSignal {
message_id: self.message_id.unwrap_or_default(),
is_big_endian: self.is_big_endian.unwrap_or_default(),
is_signed: self.is_signed.unwrap_or_default(),
start_bit: self.start_bit.unwrap_or_default(),
offset: self.offset,
factor: self.factor,
length: self.length.unwrap_or_default(),
name: self.name,
}
}
}
}
impl CanSignal {
pub fn builder() -> crate::model::can_signal::Builder {
crate::model::can_signal::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SignalDecoderType {
#[allow(missing_docs)] CanSignal,
#[allow(missing_docs)] ObdSignal,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SignalDecoderType {
fn from(s: &str) -> Self {
match s {
"CAN_SIGNAL" => SignalDecoderType::CanSignal,
"OBD_SIGNAL" => SignalDecoderType::ObdSignal,
other => {
SignalDecoderType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for SignalDecoderType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SignalDecoderType::from(s))
}
}
impl SignalDecoderType {
pub fn as_str(&self) -> &str {
match self {
SignalDecoderType::CanSignal => "CAN_SIGNAL",
SignalDecoderType::ObdSignal => "OBD_SIGNAL",
SignalDecoderType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["CAN_SIGNAL", "OBD_SIGNAL"]
}
}
impl AsRef<str> for SignalDecoderType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct NetworkInterface {
#[doc(hidden)]
pub interface_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::NetworkInterfaceType>,
#[doc(hidden)]
pub can_interface: std::option::Option<crate::model::CanInterface>,
#[doc(hidden)]
pub obd_interface: std::option::Option<crate::model::ObdInterface>,
}
impl NetworkInterface {
pub fn interface_id(&self) -> std::option::Option<&str> {
self.interface_id.as_deref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::NetworkInterfaceType> {
self.r#type.as_ref()
}
pub fn can_interface(&self) -> std::option::Option<&crate::model::CanInterface> {
self.can_interface.as_ref()
}
pub fn obd_interface(&self) -> std::option::Option<&crate::model::ObdInterface> {
self.obd_interface.as_ref()
}
}
pub mod network_interface {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) interface_id: std::option::Option<std::string::String>,
pub(crate) r#type: std::option::Option<crate::model::NetworkInterfaceType>,
pub(crate) can_interface: std::option::Option<crate::model::CanInterface>,
pub(crate) obd_interface: std::option::Option<crate::model::ObdInterface>,
}
impl Builder {
pub fn interface_id(mut self, input: impl Into<std::string::String>) -> Self {
self.interface_id = Some(input.into());
self
}
pub fn set_interface_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.interface_id = input;
self
}
pub fn r#type(mut self, input: crate::model::NetworkInterfaceType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(
mut self,
input: std::option::Option<crate::model::NetworkInterfaceType>,
) -> Self {
self.r#type = input;
self
}
pub fn can_interface(mut self, input: crate::model::CanInterface) -> Self {
self.can_interface = Some(input);
self
}
pub fn set_can_interface(
mut self,
input: std::option::Option<crate::model::CanInterface>,
) -> Self {
self.can_interface = input;
self
}
pub fn obd_interface(mut self, input: crate::model::ObdInterface) -> Self {
self.obd_interface = Some(input);
self
}
pub fn set_obd_interface(
mut self,
input: std::option::Option<crate::model::ObdInterface>,
) -> Self {
self.obd_interface = input;
self
}
pub fn build(self) -> crate::model::NetworkInterface {
crate::model::NetworkInterface {
interface_id: self.interface_id,
r#type: self.r#type,
can_interface: self.can_interface,
obd_interface: self.obd_interface,
}
}
}
}
impl NetworkInterface {
pub fn builder() -> crate::model::network_interface::Builder {
crate::model::network_interface::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ObdInterface {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub request_message_id: i32,
#[doc(hidden)]
pub obd_standard: std::option::Option<std::string::String>,
#[doc(hidden)]
pub pid_request_interval_seconds: i32,
#[doc(hidden)]
pub dtc_request_interval_seconds: i32,
#[doc(hidden)]
pub use_extended_ids: bool,
#[doc(hidden)]
pub has_transmission_ecu: bool,
}
impl ObdInterface {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn request_message_id(&self) -> i32 {
self.request_message_id
}
pub fn obd_standard(&self) -> std::option::Option<&str> {
self.obd_standard.as_deref()
}
pub fn pid_request_interval_seconds(&self) -> i32 {
self.pid_request_interval_seconds
}
pub fn dtc_request_interval_seconds(&self) -> i32 {
self.dtc_request_interval_seconds
}
pub fn use_extended_ids(&self) -> bool {
self.use_extended_ids
}
pub fn has_transmission_ecu(&self) -> bool {
self.has_transmission_ecu
}
}
pub mod obd_interface {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) request_message_id: std::option::Option<i32>,
pub(crate) obd_standard: std::option::Option<std::string::String>,
pub(crate) pid_request_interval_seconds: std::option::Option<i32>,
pub(crate) dtc_request_interval_seconds: std::option::Option<i32>,
pub(crate) use_extended_ids: std::option::Option<bool>,
pub(crate) has_transmission_ecu: std::option::Option<bool>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn request_message_id(mut self, input: i32) -> Self {
self.request_message_id = Some(input);
self
}
pub fn set_request_message_id(mut self, input: std::option::Option<i32>) -> Self {
self.request_message_id = input;
self
}
pub fn obd_standard(mut self, input: impl Into<std::string::String>) -> Self {
self.obd_standard = Some(input.into());
self
}
pub fn set_obd_standard(mut self, input: std::option::Option<std::string::String>) -> Self {
self.obd_standard = input;
self
}
pub fn pid_request_interval_seconds(mut self, input: i32) -> Self {
self.pid_request_interval_seconds = Some(input);
self
}
pub fn set_pid_request_interval_seconds(mut self, input: std::option::Option<i32>) -> Self {
self.pid_request_interval_seconds = input;
self
}
pub fn dtc_request_interval_seconds(mut self, input: i32) -> Self {
self.dtc_request_interval_seconds = Some(input);
self
}
pub fn set_dtc_request_interval_seconds(mut self, input: std::option::Option<i32>) -> Self {
self.dtc_request_interval_seconds = input;
self
}
pub fn use_extended_ids(mut self, input: bool) -> Self {
self.use_extended_ids = Some(input);
self
}
pub fn set_use_extended_ids(mut self, input: std::option::Option<bool>) -> Self {
self.use_extended_ids = input;
self
}
pub fn has_transmission_ecu(mut self, input: bool) -> Self {
self.has_transmission_ecu = Some(input);
self
}
pub fn set_has_transmission_ecu(mut self, input: std::option::Option<bool>) -> Self {
self.has_transmission_ecu = input;
self
}
pub fn build(self) -> crate::model::ObdInterface {
crate::model::ObdInterface {
name: self.name,
request_message_id: self.request_message_id.unwrap_or_default(),
obd_standard: self.obd_standard,
pid_request_interval_seconds: self.pid_request_interval_seconds.unwrap_or_default(),
dtc_request_interval_seconds: self.dtc_request_interval_seconds.unwrap_or_default(),
use_extended_ids: self.use_extended_ids.unwrap_or_default(),
has_transmission_ecu: self.has_transmission_ecu.unwrap_or_default(),
}
}
}
}
impl ObdInterface {
pub fn builder() -> crate::model::obd_interface::Builder {
crate::model::obd_interface::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CanInterface {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub protocol_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub protocol_version: std::option::Option<std::string::String>,
}
impl CanInterface {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn protocol_name(&self) -> std::option::Option<&str> {
self.protocol_name.as_deref()
}
pub fn protocol_version(&self) -> std::option::Option<&str> {
self.protocol_version.as_deref()
}
}
pub mod can_interface {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) protocol_name: std::option::Option<std::string::String>,
pub(crate) protocol_version: std::option::Option<std::string::String>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn protocol_name(mut self, input: impl Into<std::string::String>) -> Self {
self.protocol_name = Some(input.into());
self
}
pub fn set_protocol_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.protocol_name = input;
self
}
pub fn protocol_version(mut self, input: impl Into<std::string::String>) -> Self {
self.protocol_version = Some(input.into());
self
}
pub fn set_protocol_version(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.protocol_version = input;
self
}
pub fn build(self) -> crate::model::CanInterface {
crate::model::CanInterface {
name: self.name,
protocol_name: self.protocol_name,
protocol_version: self.protocol_version,
}
}
}
}
impl CanInterface {
pub fn builder() -> crate::model::can_interface::Builder {
crate::model::can_interface::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum NetworkInterfaceType {
#[allow(missing_docs)] CanInterface,
#[allow(missing_docs)] ObdInterface,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for NetworkInterfaceType {
fn from(s: &str) -> Self {
match s {
"CAN_INTERFACE" => NetworkInterfaceType::CanInterface,
"OBD_INTERFACE" => NetworkInterfaceType::ObdInterface,
other => {
NetworkInterfaceType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for NetworkInterfaceType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(NetworkInterfaceType::from(s))
}
}
impl NetworkInterfaceType {
pub fn as_str(&self) -> &str {
match self {
NetworkInterfaceType::CanInterface => "CAN_INTERFACE",
NetworkInterfaceType::ObdInterface => "OBD_INTERFACE",
NetworkInterfaceType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["CAN_INTERFACE", "OBD_INTERFACE"]
}
}
impl AsRef<str> for NetworkInterfaceType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidNetworkInterface {
#[doc(hidden)]
pub interface_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub reason: std::option::Option<crate::model::NetworkInterfaceFailureReason>,
}
impl InvalidNetworkInterface {
pub fn interface_id(&self) -> std::option::Option<&str> {
self.interface_id.as_deref()
}
pub fn reason(&self) -> std::option::Option<&crate::model::NetworkInterfaceFailureReason> {
self.reason.as_ref()
}
}
pub mod invalid_network_interface {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) interface_id: std::option::Option<std::string::String>,
pub(crate) reason: std::option::Option<crate::model::NetworkInterfaceFailureReason>,
}
impl Builder {
pub fn interface_id(mut self, input: impl Into<std::string::String>) -> Self {
self.interface_id = Some(input.into());
self
}
pub fn set_interface_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.interface_id = input;
self
}
pub fn reason(mut self, input: crate::model::NetworkInterfaceFailureReason) -> Self {
self.reason = Some(input);
self
}
pub fn set_reason(
mut self,
input: std::option::Option<crate::model::NetworkInterfaceFailureReason>,
) -> Self {
self.reason = input;
self
}
pub fn build(self) -> crate::model::InvalidNetworkInterface {
crate::model::InvalidNetworkInterface {
interface_id: self.interface_id,
reason: self.reason,
}
}
}
}
impl InvalidNetworkInterface {
pub fn builder() -> crate::model::invalid_network_interface::Builder {
crate::model::invalid_network_interface::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum NetworkInterfaceFailureReason {
#[allow(missing_docs)] CanNetworkInterfaceInfoIsNull,
#[allow(missing_docs)] ConflictingNetworkInterface,
#[allow(missing_docs)] DuplicateInterface,
#[allow(missing_docs)] NetworkInterfaceToAddAlreadyExists,
#[allow(missing_docs)] NetworkInterfaceToRemoveAssociatedWithSignals,
#[allow(missing_docs)] ObdNetworkInterfaceInfoIsNull,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for NetworkInterfaceFailureReason {
fn from(s: &str) -> Self {
match s {
"CAN_NETWORK_INTERFACE_INFO_IS_NULL" => {
NetworkInterfaceFailureReason::CanNetworkInterfaceInfoIsNull
}
"CONFLICTING_NETWORK_INTERFACE" => {
NetworkInterfaceFailureReason::ConflictingNetworkInterface
}
"DUPLICATE_NETWORK_INTERFACE" => NetworkInterfaceFailureReason::DuplicateInterface,
"NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS" => {
NetworkInterfaceFailureReason::NetworkInterfaceToAddAlreadyExists
}
"NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS" => {
NetworkInterfaceFailureReason::NetworkInterfaceToRemoveAssociatedWithSignals
}
"OBD_NETWORK_INTERFACE_INFO_IS_NULL" => {
NetworkInterfaceFailureReason::ObdNetworkInterfaceInfoIsNull
}
other => NetworkInterfaceFailureReason::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for NetworkInterfaceFailureReason {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(NetworkInterfaceFailureReason::from(s))
}
}
impl NetworkInterfaceFailureReason {
pub fn as_str(&self) -> &str {
match self {
NetworkInterfaceFailureReason::CanNetworkInterfaceInfoIsNull => {
"CAN_NETWORK_INTERFACE_INFO_IS_NULL"
}
NetworkInterfaceFailureReason::ConflictingNetworkInterface => {
"CONFLICTING_NETWORK_INTERFACE"
}
NetworkInterfaceFailureReason::DuplicateInterface => "DUPLICATE_NETWORK_INTERFACE",
NetworkInterfaceFailureReason::NetworkInterfaceToAddAlreadyExists => {
"NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS"
}
NetworkInterfaceFailureReason::NetworkInterfaceToRemoveAssociatedWithSignals => {
"NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS"
}
NetworkInterfaceFailureReason::ObdNetworkInterfaceInfoIsNull => {
"OBD_NETWORK_INTERFACE_INFO_IS_NULL"
}
NetworkInterfaceFailureReason::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"CAN_NETWORK_INTERFACE_INFO_IS_NULL",
"CONFLICTING_NETWORK_INTERFACE",
"DUPLICATE_NETWORK_INTERFACE",
"NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS",
"NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS",
"OBD_NETWORK_INTERFACE_INFO_IS_NULL",
]
}
}
impl AsRef<str> for NetworkInterfaceFailureReason {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidSignalDecoder {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub reason: std::option::Option<crate::model::SignalDecoderFailureReason>,
}
impl InvalidSignalDecoder {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn reason(&self) -> std::option::Option<&crate::model::SignalDecoderFailureReason> {
self.reason.as_ref()
}
}
pub mod invalid_signal_decoder {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) reason: std::option::Option<crate::model::SignalDecoderFailureReason>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn reason(mut self, input: crate::model::SignalDecoderFailureReason) -> Self {
self.reason = Some(input);
self
}
pub fn set_reason(
mut self,
input: std::option::Option<crate::model::SignalDecoderFailureReason>,
) -> Self {
self.reason = input;
self
}
pub fn build(self) -> crate::model::InvalidSignalDecoder {
crate::model::InvalidSignalDecoder {
name: self.name,
reason: self.reason,
}
}
}
}
impl InvalidSignalDecoder {
pub fn builder() -> crate::model::invalid_signal_decoder::Builder {
crate::model::invalid_signal_decoder::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SignalDecoderFailureReason {
#[allow(missing_docs)] CanSignalInfoIsNull,
#[allow(missing_docs)] ConflictingSignal,
#[allow(missing_docs)] DuplicateSignal,
#[allow(missing_docs)] NetworkInterfaceTypeIncompatibleWithSignalDecoderType,
#[allow(missing_docs)] NoDecoderInfoForSignalInModel,
#[allow(missing_docs)] ObdSignalInfoIsNull,
#[allow(missing_docs)] SignalNotAssociatedWithNetworkInterface,
#[allow(missing_docs)] SignalNotInModel,
#[allow(missing_docs)] SignalToAddAlreadyExists,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SignalDecoderFailureReason {
fn from(s: &str) -> Self {
match s {
"CAN_SIGNAL_INFO_IS_NULL" => SignalDecoderFailureReason::CanSignalInfoIsNull,
"CONFLICTING_SIGNAL" => SignalDecoderFailureReason::ConflictingSignal,
"DUPLICATE_SIGNAL" => SignalDecoderFailureReason::DuplicateSignal,
"NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE" => {
SignalDecoderFailureReason::NetworkInterfaceTypeIncompatibleWithSignalDecoderType
}
"NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL" => {
SignalDecoderFailureReason::NoDecoderInfoForSignalInModel
}
"OBD_SIGNAL_INFO_IS_NULL" => SignalDecoderFailureReason::ObdSignalInfoIsNull,
"SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE" => {
SignalDecoderFailureReason::SignalNotAssociatedWithNetworkInterface
}
"SIGNAL_NOT_IN_MODEL" => SignalDecoderFailureReason::SignalNotInModel,
"SIGNAL_TO_ADD_ALREADY_EXISTS" => SignalDecoderFailureReason::SignalToAddAlreadyExists,
other => SignalDecoderFailureReason::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for SignalDecoderFailureReason {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SignalDecoderFailureReason::from(s))
}
}
impl SignalDecoderFailureReason {
pub fn as_str(&self) -> &str {
match self {
SignalDecoderFailureReason::CanSignalInfoIsNull => "CAN_SIGNAL_INFO_IS_NULL",
SignalDecoderFailureReason::ConflictingSignal => "CONFLICTING_SIGNAL",
SignalDecoderFailureReason::DuplicateSignal => "DUPLICATE_SIGNAL",
SignalDecoderFailureReason::NetworkInterfaceTypeIncompatibleWithSignalDecoderType => {
"NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE"
}
SignalDecoderFailureReason::NoDecoderInfoForSignalInModel => {
"NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL"
}
SignalDecoderFailureReason::ObdSignalInfoIsNull => "OBD_SIGNAL_INFO_IS_NULL",
SignalDecoderFailureReason::SignalNotAssociatedWithNetworkInterface => {
"SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE"
}
SignalDecoderFailureReason::SignalNotInModel => "SIGNAL_NOT_IN_MODEL",
SignalDecoderFailureReason::SignalToAddAlreadyExists => "SIGNAL_TO_ADD_ALREADY_EXISTS",
SignalDecoderFailureReason::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"CAN_SIGNAL_INFO_IS_NULL",
"CONFLICTING_SIGNAL",
"DUPLICATE_SIGNAL",
"NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE",
"NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL",
"OBD_SIGNAL_INFO_IS_NULL",
"SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE",
"SIGNAL_NOT_IN_MODEL",
"SIGNAL_TO_ADD_ALREADY_EXISTS",
]
}
}
impl AsRef<str> for SignalDecoderFailureReason {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub enum NetworkFileDefinition {
CanDbc(crate::model::CanDbcDefinition),
#[non_exhaustive]
Unknown,
}
impl NetworkFileDefinition {
#[allow(irrefutable_let_patterns)]
pub fn as_can_dbc(&self) -> std::result::Result<&crate::model::CanDbcDefinition, &Self> {
if let NetworkFileDefinition::CanDbc(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_can_dbc(&self) -> bool {
self.as_can_dbc().is_ok()
}
pub fn is_unknown(&self) -> bool {
matches!(self, Self::Unknown)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CanDbcDefinition {
#[doc(hidden)]
pub network_interface: std::option::Option<std::string::String>,
#[doc(hidden)]
pub can_dbc_files: std::option::Option<std::vec::Vec<aws_smithy_types::Blob>>,
#[doc(hidden)]
pub signals_map:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl CanDbcDefinition {
pub fn network_interface(&self) -> std::option::Option<&str> {
self.network_interface.as_deref()
}
pub fn can_dbc_files(&self) -> std::option::Option<&[aws_smithy_types::Blob]> {
self.can_dbc_files.as_deref()
}
pub fn signals_map(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.signals_map.as_ref()
}
}
pub mod can_dbc_definition {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) network_interface: std::option::Option<std::string::String>,
pub(crate) can_dbc_files: std::option::Option<std::vec::Vec<aws_smithy_types::Blob>>,
pub(crate) signals_map: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
pub fn network_interface(mut self, input: impl Into<std::string::String>) -> Self {
self.network_interface = Some(input.into());
self
}
pub fn set_network_interface(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.network_interface = input;
self
}
pub fn can_dbc_files(mut self, input: aws_smithy_types::Blob) -> Self {
let mut v = self.can_dbc_files.unwrap_or_default();
v.push(input);
self.can_dbc_files = Some(v);
self
}
pub fn set_can_dbc_files(
mut self,
input: std::option::Option<std::vec::Vec<aws_smithy_types::Blob>>,
) -> Self {
self.can_dbc_files = input;
self
}
pub fn signals_map(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.signals_map.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.signals_map = Some(hash_map);
self
}
pub fn set_signals_map(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.signals_map = input;
self
}
pub fn build(self) -> crate::model::CanDbcDefinition {
crate::model::CanDbcDefinition {
network_interface: self.network_interface,
can_dbc_files: self.can_dbc_files,
signals_map: self.signals_map,
}
}
}
}
impl CanDbcDefinition {
pub fn builder() -> crate::model::can_dbc_definition::Builder {
crate::model::can_dbc_definition::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DecoderManifestSummary {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub model_manifest_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::ManifestStatus>,
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl DecoderManifestSummary {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn model_manifest_arn(&self) -> std::option::Option<&str> {
self.model_manifest_arn.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::ManifestStatus> {
self.status.as_ref()
}
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modification_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_modification_time.as_ref()
}
}
pub mod decoder_manifest_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) model_manifest_arn: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::ManifestStatus>,
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn model_manifest_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.model_manifest_arn = Some(input.into());
self
}
pub fn set_model_manifest_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.model_manifest_arn = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn status(mut self, input: crate::model::ManifestStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ManifestStatus>,
) -> Self {
self.status = input;
self
}
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn last_modification_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_modification_time = Some(input);
self
}
pub fn set_last_modification_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_modification_time = input;
self
}
pub fn build(self) -> crate::model::DecoderManifestSummary {
crate::model::DecoderManifestSummary {
name: self.name,
arn: self.arn,
model_manifest_arn: self.model_manifest_arn,
description: self.description,
status: self.status,
creation_time: self.creation_time,
last_modification_time: self.last_modification_time,
}
}
}
}
impl DecoderManifestSummary {
pub fn builder() -> crate::model::decoder_manifest_summary::Builder {
crate::model::decoder_manifest_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CampaignSummary {
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub signal_catalog_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub target_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::CampaignStatus>,
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl CampaignSummary {
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn signal_catalog_arn(&self) -> std::option::Option<&str> {
self.signal_catalog_arn.as_deref()
}
pub fn target_arn(&self) -> std::option::Option<&str> {
self.target_arn.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::CampaignStatus> {
self.status.as_ref()
}
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modification_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_modification_time.as_ref()
}
}
pub mod campaign_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) signal_catalog_arn: std::option::Option<std::string::String>,
pub(crate) target_arn: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::CampaignStatus>,
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_modification_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn signal_catalog_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.signal_catalog_arn = Some(input.into());
self
}
pub fn set_signal_catalog_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.signal_catalog_arn = input;
self
}
pub fn target_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.target_arn = Some(input.into());
self
}
pub fn set_target_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.target_arn = input;
self
}
pub fn status(mut self, input: crate::model::CampaignStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::CampaignStatus>,
) -> Self {
self.status = input;
self
}
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn last_modification_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_modification_time = Some(input);
self
}
pub fn set_last_modification_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_modification_time = input;
self
}
pub fn build(self) -> crate::model::CampaignSummary {
crate::model::CampaignSummary {
arn: self.arn,
name: self.name,
description: self.description,
signal_catalog_arn: self.signal_catalog_arn,
target_arn: self.target_arn,
status: self.status,
creation_time: self.creation_time,
last_modification_time: self.last_modification_time,
}
}
}
}
impl CampaignSummary {
pub fn builder() -> crate::model::campaign_summary::Builder {
crate::model::campaign_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum CampaignStatus {
#[allow(missing_docs)] Creating,
#[allow(missing_docs)] Running,
#[allow(missing_docs)] Suspended,
#[allow(missing_docs)] WaitingForApproval,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for CampaignStatus {
fn from(s: &str) -> Self {
match s {
"CREATING" => CampaignStatus::Creating,
"RUNNING" => CampaignStatus::Running,
"SUSPENDED" => CampaignStatus::Suspended,
"WAITING_FOR_APPROVAL" => CampaignStatus::WaitingForApproval,
other => CampaignStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for CampaignStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(CampaignStatus::from(s))
}
}
impl CampaignStatus {
pub fn as_str(&self) -> &str {
match self {
CampaignStatus::Creating => "CREATING",
CampaignStatus::Running => "RUNNING",
CampaignStatus::Suspended => "SUSPENDED",
CampaignStatus::WaitingForApproval => "WAITING_FOR_APPROVAL",
CampaignStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["CREATING", "RUNNING", "SUSPENDED", "WAITING_FOR_APPROVAL"]
}
}
impl AsRef<str> for CampaignStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub enum CollectionScheme {
ConditionBasedCollectionScheme(crate::model::ConditionBasedCollectionScheme),
TimeBasedCollectionScheme(crate::model::TimeBasedCollectionScheme),
#[non_exhaustive]
Unknown,
}
impl CollectionScheme {
pub fn as_condition_based_collection_scheme(
&self,
) -> std::result::Result<&crate::model::ConditionBasedCollectionScheme, &Self> {
if let CollectionScheme::ConditionBasedCollectionScheme(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_condition_based_collection_scheme(&self) -> bool {
self.as_condition_based_collection_scheme().is_ok()
}
pub fn as_time_based_collection_scheme(
&self,
) -> std::result::Result<&crate::model::TimeBasedCollectionScheme, &Self> {
if let CollectionScheme::TimeBasedCollectionScheme(val) = &self {
Ok(val)
} else {
Err(self)
}
}
pub fn is_time_based_collection_scheme(&self) -> bool {
self.as_time_based_collection_scheme().is_ok()
}
pub fn is_unknown(&self) -> bool {
matches!(self, Self::Unknown)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConditionBasedCollectionScheme {
#[doc(hidden)]
pub expression: std::option::Option<std::string::String>,
#[doc(hidden)]
pub minimum_trigger_interval_ms: std::option::Option<i64>,
#[doc(hidden)]
pub trigger_mode: std::option::Option<crate::model::TriggerMode>,
#[doc(hidden)]
pub condition_language_version: std::option::Option<i32>,
}
impl ConditionBasedCollectionScheme {
pub fn expression(&self) -> std::option::Option<&str> {
self.expression.as_deref()
}
pub fn minimum_trigger_interval_ms(&self) -> std::option::Option<i64> {
self.minimum_trigger_interval_ms
}
pub fn trigger_mode(&self) -> std::option::Option<&crate::model::TriggerMode> {
self.trigger_mode.as_ref()
}
pub fn condition_language_version(&self) -> std::option::Option<i32> {
self.condition_language_version
}
}
pub mod condition_based_collection_scheme {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) expression: std::option::Option<std::string::String>,
pub(crate) minimum_trigger_interval_ms: std::option::Option<i64>,
pub(crate) trigger_mode: std::option::Option<crate::model::TriggerMode>,
pub(crate) condition_language_version: std::option::Option<i32>,
}
impl Builder {
pub fn expression(mut self, input: impl Into<std::string::String>) -> Self {
self.expression = Some(input.into());
self
}
pub fn set_expression(mut self, input: std::option::Option<std::string::String>) -> Self {
self.expression = input;
self
}
pub fn minimum_trigger_interval_ms(mut self, input: i64) -> Self {
self.minimum_trigger_interval_ms = Some(input);
self
}
pub fn set_minimum_trigger_interval_ms(mut self, input: std::option::Option<i64>) -> Self {
self.minimum_trigger_interval_ms = input;
self
}
pub fn trigger_mode(mut self, input: crate::model::TriggerMode) -> Self {
self.trigger_mode = Some(input);
self
}
pub fn set_trigger_mode(
mut self,
input: std::option::Option<crate::model::TriggerMode>,
) -> Self {
self.trigger_mode = input;
self
}
pub fn condition_language_version(mut self, input: i32) -> Self {
self.condition_language_version = Some(input);
self
}
pub fn set_condition_language_version(mut self, input: std::option::Option<i32>) -> Self {
self.condition_language_version = input;
self
}
pub fn build(self) -> crate::model::ConditionBasedCollectionScheme {
crate::model::ConditionBasedCollectionScheme {
expression: self.expression,
minimum_trigger_interval_ms: self.minimum_trigger_interval_ms,
trigger_mode: self.trigger_mode,
condition_language_version: self.condition_language_version,
}
}
}
}
impl ConditionBasedCollectionScheme {
pub fn builder() -> crate::model::condition_based_collection_scheme::Builder {
crate::model::condition_based_collection_scheme::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum TriggerMode {
#[allow(missing_docs)] Always,
#[allow(missing_docs)] RisingEdge,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for TriggerMode {
fn from(s: &str) -> Self {
match s {
"ALWAYS" => TriggerMode::Always,
"RISING_EDGE" => TriggerMode::RisingEdge,
other => TriggerMode::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for TriggerMode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(TriggerMode::from(s))
}
}
impl TriggerMode {
pub fn as_str(&self) -> &str {
match self {
TriggerMode::Always => "ALWAYS",
TriggerMode::RisingEdge => "RISING_EDGE",
TriggerMode::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ALWAYS", "RISING_EDGE"]
}
}
impl AsRef<str> for TriggerMode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TimeBasedCollectionScheme {
#[doc(hidden)]
pub period_ms: std::option::Option<i64>,
}
impl TimeBasedCollectionScheme {
pub fn period_ms(&self) -> std::option::Option<i64> {
self.period_ms
}
}
pub mod time_based_collection_scheme {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) period_ms: std::option::Option<i64>,
}
impl Builder {
pub fn period_ms(mut self, input: i64) -> Self {
self.period_ms = Some(input);
self
}
pub fn set_period_ms(mut self, input: std::option::Option<i64>) -> Self {
self.period_ms = input;
self
}
pub fn build(self) -> crate::model::TimeBasedCollectionScheme {
crate::model::TimeBasedCollectionScheme {
period_ms: self.period_ms,
}
}
}
}
impl TimeBasedCollectionScheme {
pub fn builder() -> crate::model::time_based_collection_scheme::Builder {
crate::model::time_based_collection_scheme::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SignalInformation {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub max_sample_count: std::option::Option<i64>,
#[doc(hidden)]
pub minimum_sampling_interval_ms: std::option::Option<i64>,
}
impl SignalInformation {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn max_sample_count(&self) -> std::option::Option<i64> {
self.max_sample_count
}
pub fn minimum_sampling_interval_ms(&self) -> std::option::Option<i64> {
self.minimum_sampling_interval_ms
}
}
pub mod signal_information {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) max_sample_count: std::option::Option<i64>,
pub(crate) minimum_sampling_interval_ms: std::option::Option<i64>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn max_sample_count(mut self, input: i64) -> Self {
self.max_sample_count = Some(input);
self
}
pub fn set_max_sample_count(mut self, input: std::option::Option<i64>) -> Self {
self.max_sample_count = input;
self
}
pub fn minimum_sampling_interval_ms(mut self, input: i64) -> Self {
self.minimum_sampling_interval_ms = Some(input);
self
}
pub fn set_minimum_sampling_interval_ms(mut self, input: std::option::Option<i64>) -> Self {
self.minimum_sampling_interval_ms = input;
self
}
pub fn build(self) -> crate::model::SignalInformation {
crate::model::SignalInformation {
name: self.name,
max_sample_count: self.max_sample_count,
minimum_sampling_interval_ms: self.minimum_sampling_interval_ms,
}
}
}
}
impl SignalInformation {
pub fn builder() -> crate::model::signal_information::Builder {
crate::model::signal_information::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum Compression {
#[allow(missing_docs)] Off,
#[allow(missing_docs)] Snappy,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for Compression {
fn from(s: &str) -> Self {
match s {
"OFF" => Compression::Off,
"SNAPPY" => Compression::Snappy,
other => Compression::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for Compression {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Compression::from(s))
}
}
impl Compression {
pub fn as_str(&self) -> &str {
match self {
Compression::Off => "OFF",
Compression::Snappy => "SNAPPY",
Compression::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["OFF", "SNAPPY"]
}
}
impl AsRef<str> for Compression {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SpoolingMode {
#[allow(missing_docs)] Off,
#[allow(missing_docs)] ToDisk,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SpoolingMode {
fn from(s: &str) -> Self {
match s {
"OFF" => SpoolingMode::Off,
"TO_DISK" => SpoolingMode::ToDisk,
other => SpoolingMode::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for SpoolingMode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SpoolingMode::from(s))
}
}
impl SpoolingMode {
pub fn as_str(&self) -> &str {
match self {
SpoolingMode::Off => "OFF",
SpoolingMode::ToDisk => "TO_DISK",
SpoolingMode::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["OFF", "TO_DISK"]
}
}
impl AsRef<str> for SpoolingMode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum DiagnosticsMode {
#[allow(missing_docs)] Off,
#[allow(missing_docs)] SendActiveDtcs,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for DiagnosticsMode {
fn from(s: &str) -> Self {
match s {
"OFF" => DiagnosticsMode::Off,
"SEND_ACTIVE_DTCS" => DiagnosticsMode::SendActiveDtcs,
other => DiagnosticsMode::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for DiagnosticsMode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DiagnosticsMode::from(s))
}
}
impl DiagnosticsMode {
pub fn as_str(&self) -> &str {
match self {
DiagnosticsMode::Off => "OFF",
DiagnosticsMode::SendActiveDtcs => "SEND_ACTIVE_DTCS",
DiagnosticsMode::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["OFF", "SEND_ACTIVE_DTCS"]
}
}
impl AsRef<str> for DiagnosticsMode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum UpdateCampaignAction {
#[allow(missing_docs)] Approve,
#[allow(missing_docs)] Resume,
#[allow(missing_docs)] Suspend,
#[allow(missing_docs)] Update,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for UpdateCampaignAction {
fn from(s: &str) -> Self {
match s {
"APPROVE" => UpdateCampaignAction::Approve,
"RESUME" => UpdateCampaignAction::Resume,
"SUSPEND" => UpdateCampaignAction::Suspend,
"UPDATE" => UpdateCampaignAction::Update,
other => {
UpdateCampaignAction::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for UpdateCampaignAction {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(UpdateCampaignAction::from(s))
}
}
impl UpdateCampaignAction {
pub fn as_str(&self) -> &str {
match self {
UpdateCampaignAction::Approve => "APPROVE",
UpdateCampaignAction::Resume => "RESUME",
UpdateCampaignAction::Suspend => "SUSPEND",
UpdateCampaignAction::Update => "UPDATE",
UpdateCampaignAction::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["APPROVE", "RESUME", "SUSPEND", "UPDATE"]
}
}
impl AsRef<str> for UpdateCampaignAction {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IamResources {
#[doc(hidden)]
pub role_arn: std::option::Option<std::string::String>,
}
impl IamResources {
pub fn role_arn(&self) -> std::option::Option<&str> {
self.role_arn.as_deref()
}
}
pub mod iam_resources {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) role_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = Some(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn build(self) -> crate::model::IamResources {
crate::model::IamResources {
role_arn: self.role_arn,
}
}
}
}
impl IamResources {
pub fn builder() -> crate::model::iam_resources::Builder {
crate::model::iam_resources::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TimestreamResources {
#[doc(hidden)]
pub timestream_database_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub timestream_table_name: std::option::Option<std::string::String>,
}
impl TimestreamResources {
pub fn timestream_database_name(&self) -> std::option::Option<&str> {
self.timestream_database_name.as_deref()
}
pub fn timestream_table_name(&self) -> std::option::Option<&str> {
self.timestream_table_name.as_deref()
}
}
pub mod timestream_resources {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) timestream_database_name: std::option::Option<std::string::String>,
pub(crate) timestream_table_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn timestream_database_name(mut self, input: impl Into<std::string::String>) -> Self {
self.timestream_database_name = Some(input.into());
self
}
pub fn set_timestream_database_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.timestream_database_name = input;
self
}
pub fn timestream_table_name(mut self, input: impl Into<std::string::String>) -> Self {
self.timestream_table_name = Some(input.into());
self
}
pub fn set_timestream_table_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.timestream_table_name = input;
self
}
pub fn build(self) -> crate::model::TimestreamResources {
crate::model::TimestreamResources {
timestream_database_name: self.timestream_database_name,
timestream_table_name: self.timestream_table_name,
}
}
}
}
impl TimestreamResources {
pub fn builder() -> crate::model::timestream_resources::Builder {
crate::model::timestream_resources::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum RegistrationStatus {
#[allow(missing_docs)] RegistrationFailure,
#[allow(missing_docs)] RegistrationPending,
#[allow(missing_docs)] RegistrationSuccess,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for RegistrationStatus {
fn from(s: &str) -> Self {
match s {
"REGISTRATION_FAILURE" => RegistrationStatus::RegistrationFailure,
"REGISTRATION_PENDING" => RegistrationStatus::RegistrationPending,
"REGISTRATION_SUCCESS" => RegistrationStatus::RegistrationSuccess,
other => {
RegistrationStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for RegistrationStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(RegistrationStatus::from(s))
}
}
impl RegistrationStatus {
pub fn as_str(&self) -> &str {
match self {
RegistrationStatus::RegistrationFailure => "REGISTRATION_FAILURE",
RegistrationStatus::RegistrationPending => "REGISTRATION_PENDING",
RegistrationStatus::RegistrationSuccess => "REGISTRATION_SUCCESS",
RegistrationStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"REGISTRATION_FAILURE",
"REGISTRATION_PENDING",
"REGISTRATION_SUCCESS",
]
}
}
impl AsRef<str> for RegistrationStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CloudWatchLogDeliveryOptions {
#[doc(hidden)]
pub log_type: std::option::Option<crate::model::LogType>,
#[doc(hidden)]
pub log_group_name: std::option::Option<std::string::String>,
}
impl CloudWatchLogDeliveryOptions {
pub fn log_type(&self) -> std::option::Option<&crate::model::LogType> {
self.log_type.as_ref()
}
pub fn log_group_name(&self) -> std::option::Option<&str> {
self.log_group_name.as_deref()
}
}
pub mod cloud_watch_log_delivery_options {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) log_type: std::option::Option<crate::model::LogType>,
pub(crate) log_group_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn log_type(mut self, input: crate::model::LogType) -> Self {
self.log_type = Some(input);
self
}
pub fn set_log_type(mut self, input: std::option::Option<crate::model::LogType>) -> Self {
self.log_type = input;
self
}
pub fn log_group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.log_group_name = Some(input.into());
self
}
pub fn set_log_group_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.log_group_name = input;
self
}
pub fn build(self) -> crate::model::CloudWatchLogDeliveryOptions {
crate::model::CloudWatchLogDeliveryOptions {
log_type: self.log_type,
log_group_name: self.log_group_name,
}
}
}
}
impl CloudWatchLogDeliveryOptions {
pub fn builder() -> crate::model::cloud_watch_log_delivery_options::Builder {
crate::model::cloud_watch_log_delivery_options::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum LogType {
#[allow(missing_docs)] Error,
#[allow(missing_docs)] Off,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for LogType {
fn from(s: &str) -> Self {
match s {
"ERROR" => LogType::Error,
"OFF" => LogType::Off,
other => LogType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for LogType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(LogType::from(s))
}
}
impl LogType {
pub fn as_str(&self) -> &str {
match self {
LogType::Error => "ERROR",
LogType::Off => "OFF",
LogType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ERROR", "OFF"]
}
}
impl AsRef<str> for LogType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct VehicleStatus {
#[doc(hidden)]
pub campaign_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vehicle_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::VehicleState>,
}
impl VehicleStatus {
pub fn campaign_name(&self) -> std::option::Option<&str> {
self.campaign_name.as_deref()
}
pub fn vehicle_name(&self) -> std::option::Option<&str> {
self.vehicle_name.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::VehicleState> {
self.status.as_ref()
}
}
pub mod vehicle_status {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) campaign_name: std::option::Option<std::string::String>,
pub(crate) vehicle_name: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::VehicleState>,
}
impl Builder {
pub fn campaign_name(mut self, input: impl Into<std::string::String>) -> Self {
self.campaign_name = Some(input.into());
self
}
pub fn set_campaign_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.campaign_name = input;
self
}
pub fn vehicle_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vehicle_name = Some(input.into());
self
}
pub fn set_vehicle_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vehicle_name = input;
self
}
pub fn status(mut self, input: crate::model::VehicleState) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::VehicleState>,
) -> Self {
self.status = input;
self
}
pub fn build(self) -> crate::model::VehicleStatus {
crate::model::VehicleStatus {
campaign_name: self.campaign_name,
vehicle_name: self.vehicle_name,
status: self.status,
}
}
}
}
impl VehicleStatus {
pub fn builder() -> crate::model::vehicle_status::Builder {
crate::model::vehicle_status::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum VehicleState {
#[allow(missing_docs)] Created,
#[allow(missing_docs)] Deleting,
#[allow(missing_docs)] Healthy,
#[allow(missing_docs)] Ready,
#[allow(missing_docs)] Suspended,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for VehicleState {
fn from(s: &str) -> Self {
match s {
"CREATED" => VehicleState::Created,
"DELETING" => VehicleState::Deleting,
"HEALTHY" => VehicleState::Healthy,
"READY" => VehicleState::Ready,
"SUSPENDED" => VehicleState::Suspended,
other => VehicleState::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for VehicleState {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(VehicleState::from(s))
}
}
impl VehicleState {
pub fn as_str(&self) -> &str {
match self {
VehicleState::Created => "CREATED",
VehicleState::Deleting => "DELETING",
VehicleState::Healthy => "HEALTHY",
VehicleState::Ready => "READY",
VehicleState::Suspended => "SUSPENDED",
VehicleState::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["CREATED", "DELETING", "HEALTHY", "READY", "SUSPENDED"]
}
}
impl AsRef<str> for VehicleState {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IamRegistrationResponse {
#[doc(hidden)]
pub role_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub registration_status: std::option::Option<crate::model::RegistrationStatus>,
#[doc(hidden)]
pub error_message: std::option::Option<std::string::String>,
}
impl IamRegistrationResponse {
pub fn role_arn(&self) -> std::option::Option<&str> {
self.role_arn.as_deref()
}
pub fn registration_status(&self) -> std::option::Option<&crate::model::RegistrationStatus> {
self.registration_status.as_ref()
}
pub fn error_message(&self) -> std::option::Option<&str> {
self.error_message.as_deref()
}
}
pub mod iam_registration_response {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) role_arn: std::option::Option<std::string::String>,
pub(crate) registration_status: std::option::Option<crate::model::RegistrationStatus>,
pub(crate) error_message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = Some(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn registration_status(mut self, input: crate::model::RegistrationStatus) -> Self {
self.registration_status = Some(input);
self
}
pub fn set_registration_status(
mut self,
input: std::option::Option<crate::model::RegistrationStatus>,
) -> Self {
self.registration_status = input;
self
}
pub fn error_message(mut self, input: impl Into<std::string::String>) -> Self {
self.error_message = Some(input.into());
self
}
pub fn set_error_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.error_message = input;
self
}
pub fn build(self) -> crate::model::IamRegistrationResponse {
crate::model::IamRegistrationResponse {
role_arn: self.role_arn,
registration_status: self.registration_status,
error_message: self.error_message,
}
}
}
}
impl IamRegistrationResponse {
pub fn builder() -> crate::model::iam_registration_response::Builder {
crate::model::iam_registration_response::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TimestreamRegistrationResponse {
#[doc(hidden)]
pub timestream_database_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub timestream_table_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub timestream_database_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub timestream_table_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub registration_status: std::option::Option<crate::model::RegistrationStatus>,
#[doc(hidden)]
pub error_message: std::option::Option<std::string::String>,
}
impl TimestreamRegistrationResponse {
pub fn timestream_database_name(&self) -> std::option::Option<&str> {
self.timestream_database_name.as_deref()
}
pub fn timestream_table_name(&self) -> std::option::Option<&str> {
self.timestream_table_name.as_deref()
}
pub fn timestream_database_arn(&self) -> std::option::Option<&str> {
self.timestream_database_arn.as_deref()
}
pub fn timestream_table_arn(&self) -> std::option::Option<&str> {
self.timestream_table_arn.as_deref()
}
pub fn registration_status(&self) -> std::option::Option<&crate::model::RegistrationStatus> {
self.registration_status.as_ref()
}
pub fn error_message(&self) -> std::option::Option<&str> {
self.error_message.as_deref()
}
}
pub mod timestream_registration_response {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) timestream_database_name: std::option::Option<std::string::String>,
pub(crate) timestream_table_name: std::option::Option<std::string::String>,
pub(crate) timestream_database_arn: std::option::Option<std::string::String>,
pub(crate) timestream_table_arn: std::option::Option<std::string::String>,
pub(crate) registration_status: std::option::Option<crate::model::RegistrationStatus>,
pub(crate) error_message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn timestream_database_name(mut self, input: impl Into<std::string::String>) -> Self {
self.timestream_database_name = Some(input.into());
self
}
pub fn set_timestream_database_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.timestream_database_name = input;
self
}
pub fn timestream_table_name(mut self, input: impl Into<std::string::String>) -> Self {
self.timestream_table_name = Some(input.into());
self
}
pub fn set_timestream_table_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.timestream_table_name = input;
self
}
pub fn timestream_database_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.timestream_database_arn = Some(input.into());
self
}
pub fn set_timestream_database_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.timestream_database_arn = input;
self
}
pub fn timestream_table_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.timestream_table_arn = Some(input.into());
self
}
pub fn set_timestream_table_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.timestream_table_arn = input;
self
}
pub fn registration_status(mut self, input: crate::model::RegistrationStatus) -> Self {
self.registration_status = Some(input);
self
}
pub fn set_registration_status(
mut self,
input: std::option::Option<crate::model::RegistrationStatus>,
) -> Self {
self.registration_status = input;
self
}
pub fn error_message(mut self, input: impl Into<std::string::String>) -> Self {
self.error_message = Some(input.into());
self
}
pub fn set_error_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.error_message = input;
self
}
pub fn build(self) -> crate::model::TimestreamRegistrationResponse {
crate::model::TimestreamRegistrationResponse {
timestream_database_name: self.timestream_database_name,
timestream_table_name: self.timestream_table_name,
timestream_database_arn: self.timestream_database_arn,
timestream_table_arn: self.timestream_table_arn,
registration_status: self.registration_status,
error_message: self.error_message,
}
}
}
}
impl TimestreamRegistrationResponse {
pub fn builder() -> crate::model::timestream_registration_response::Builder {
crate::model::timestream_registration_response::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateVehicleError {
#[doc(hidden)]
pub vehicle_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub code: i32,
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl UpdateVehicleError {
pub fn vehicle_name(&self) -> std::option::Option<&str> {
self.vehicle_name.as_deref()
}
pub fn code(&self) -> i32 {
self.code
}
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
pub mod update_vehicle_error {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) vehicle_name: std::option::Option<std::string::String>,
pub(crate) code: std::option::Option<i32>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn vehicle_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vehicle_name = Some(input.into());
self
}
pub fn set_vehicle_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vehicle_name = input;
self
}
pub fn code(mut self, input: i32) -> Self {
self.code = Some(input);
self
}
pub fn set_code(mut self, input: std::option::Option<i32>) -> Self {
self.code = input;
self
}
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::model::UpdateVehicleError {
crate::model::UpdateVehicleError {
vehicle_name: self.vehicle_name,
code: self.code.unwrap_or_default(),
message: self.message,
}
}
}
}
impl UpdateVehicleError {
pub fn builder() -> crate::model::update_vehicle_error::Builder {
crate::model::update_vehicle_error::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateVehicleResponseItem {
#[doc(hidden)]
pub vehicle_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
}
impl UpdateVehicleResponseItem {
pub fn vehicle_name(&self) -> std::option::Option<&str> {
self.vehicle_name.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
}
pub mod update_vehicle_response_item {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) vehicle_name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn vehicle_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vehicle_name = Some(input.into());
self
}
pub fn set_vehicle_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vehicle_name = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn build(self) -> crate::model::UpdateVehicleResponseItem {
crate::model::UpdateVehicleResponseItem {
vehicle_name: self.vehicle_name,
arn: self.arn,
}
}
}
}
impl UpdateVehicleResponseItem {
pub fn builder() -> crate::model::update_vehicle_response_item::Builder {
crate::model::update_vehicle_response_item::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateVehicleRequestItem {
#[doc(hidden)]
pub vehicle_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub model_manifest_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub decoder_manifest_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub attributes:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
#[doc(hidden)]
pub attribute_update_mode: std::option::Option<crate::model::UpdateMode>,
}
impl UpdateVehicleRequestItem {
pub fn vehicle_name(&self) -> std::option::Option<&str> {
self.vehicle_name.as_deref()
}
pub fn model_manifest_arn(&self) -> std::option::Option<&str> {
self.model_manifest_arn.as_deref()
}
pub fn decoder_manifest_arn(&self) -> std::option::Option<&str> {
self.decoder_manifest_arn.as_deref()
}
pub fn attributes(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.attributes.as_ref()
}
pub fn attribute_update_mode(&self) -> std::option::Option<&crate::model::UpdateMode> {
self.attribute_update_mode.as_ref()
}
}
pub mod update_vehicle_request_item {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) vehicle_name: std::option::Option<std::string::String>,
pub(crate) model_manifest_arn: std::option::Option<std::string::String>,
pub(crate) decoder_manifest_arn: std::option::Option<std::string::String>,
pub(crate) attributes: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) attribute_update_mode: std::option::Option<crate::model::UpdateMode>,
}
impl Builder {
pub fn vehicle_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vehicle_name = Some(input.into());
self
}
pub fn set_vehicle_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vehicle_name = input;
self
}
pub fn model_manifest_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.model_manifest_arn = Some(input.into());
self
}
pub fn set_model_manifest_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.model_manifest_arn = input;
self
}
pub fn decoder_manifest_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.decoder_manifest_arn = Some(input.into());
self
}
pub fn set_decoder_manifest_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.decoder_manifest_arn = input;
self
}
pub fn attributes(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.attributes = Some(hash_map);
self
}
pub fn set_attributes(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.attributes = input;
self
}
pub fn attribute_update_mode(mut self, input: crate::model::UpdateMode) -> Self {
self.attribute_update_mode = Some(input);
self
}
pub fn set_attribute_update_mode(
mut self,
input: std::option::Option<crate::model::UpdateMode>,
) -> Self {
self.attribute_update_mode = input;
self
}
pub fn build(self) -> crate::model::UpdateVehicleRequestItem {
crate::model::UpdateVehicleRequestItem {
vehicle_name: self.vehicle_name,
model_manifest_arn: self.model_manifest_arn,
decoder_manifest_arn: self.decoder_manifest_arn,
attributes: self.attributes,
attribute_update_mode: self.attribute_update_mode,
}
}
}
}
impl UpdateVehicleRequestItem {
pub fn builder() -> crate::model::update_vehicle_request_item::Builder {
crate::model::update_vehicle_request_item::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateVehicleError {
#[doc(hidden)]
pub vehicle_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub code: std::option::Option<std::string::String>,
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl CreateVehicleError {
pub fn vehicle_name(&self) -> std::option::Option<&str> {
self.vehicle_name.as_deref()
}
pub fn code(&self) -> std::option::Option<&str> {
self.code.as_deref()
}
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
pub mod create_vehicle_error {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) vehicle_name: std::option::Option<std::string::String>,
pub(crate) code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn vehicle_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vehicle_name = Some(input.into());
self
}
pub fn set_vehicle_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vehicle_name = input;
self
}
pub fn code(mut self, input: impl Into<std::string::String>) -> Self {
self.code = Some(input.into());
self
}
pub fn set_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.code = input;
self
}
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::model::CreateVehicleError {
crate::model::CreateVehicleError {
vehicle_name: self.vehicle_name,
code: self.code,
message: self.message,
}
}
}
}
impl CreateVehicleError {
pub fn builder() -> crate::model::create_vehicle_error::Builder {
crate::model::create_vehicle_error::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateVehicleResponseItem {
#[doc(hidden)]
pub vehicle_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub thing_arn: std::option::Option<std::string::String>,
}
impl CreateVehicleResponseItem {
pub fn vehicle_name(&self) -> std::option::Option<&str> {
self.vehicle_name.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn thing_arn(&self) -> std::option::Option<&str> {
self.thing_arn.as_deref()
}
}
pub mod create_vehicle_response_item {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) vehicle_name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) thing_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn vehicle_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vehicle_name = Some(input.into());
self
}
pub fn set_vehicle_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vehicle_name = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn thing_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.thing_arn = Some(input.into());
self
}
pub fn set_thing_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.thing_arn = input;
self
}
pub fn build(self) -> crate::model::CreateVehicleResponseItem {
crate::model::CreateVehicleResponseItem {
vehicle_name: self.vehicle_name,
arn: self.arn,
thing_arn: self.thing_arn,
}
}
}
}
impl CreateVehicleResponseItem {
pub fn builder() -> crate::model::create_vehicle_response_item::Builder {
crate::model::create_vehicle_response_item::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateVehicleRequestItem {
#[doc(hidden)]
pub vehicle_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub model_manifest_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub decoder_manifest_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub attributes:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
#[doc(hidden)]
pub association_behavior: std::option::Option<crate::model::VehicleAssociationBehavior>,
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl CreateVehicleRequestItem {
pub fn vehicle_name(&self) -> std::option::Option<&str> {
self.vehicle_name.as_deref()
}
pub fn model_manifest_arn(&self) -> std::option::Option<&str> {
self.model_manifest_arn.as_deref()
}
pub fn decoder_manifest_arn(&self) -> std::option::Option<&str> {
self.decoder_manifest_arn.as_deref()
}
pub fn attributes(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.attributes.as_ref()
}
pub fn association_behavior(
&self,
) -> std::option::Option<&crate::model::VehicleAssociationBehavior> {
self.association_behavior.as_ref()
}
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
pub mod create_vehicle_request_item {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) vehicle_name: std::option::Option<std::string::String>,
pub(crate) model_manifest_arn: std::option::Option<std::string::String>,
pub(crate) decoder_manifest_arn: std::option::Option<std::string::String>,
pub(crate) attributes: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) association_behavior:
std::option::Option<crate::model::VehicleAssociationBehavior>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
pub fn vehicle_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vehicle_name = Some(input.into());
self
}
pub fn set_vehicle_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vehicle_name = input;
self
}
pub fn model_manifest_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.model_manifest_arn = Some(input.into());
self
}
pub fn set_model_manifest_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.model_manifest_arn = input;
self
}
pub fn decoder_manifest_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.decoder_manifest_arn = Some(input.into());
self
}
pub fn set_decoder_manifest_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.decoder_manifest_arn = input;
self
}
pub fn attributes(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.attributes = Some(hash_map);
self
}
pub fn set_attributes(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.attributes = input;
self
}
pub fn association_behavior(
mut self,
input: crate::model::VehicleAssociationBehavior,
) -> Self {
self.association_behavior = Some(input);
self
}
pub fn set_association_behavior(
mut self,
input: std::option::Option<crate::model::VehicleAssociationBehavior>,
) -> Self {
self.association_behavior = input;
self
}
pub fn tags(mut self, input: crate::model::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tags = input;
self
}
pub fn build(self) -> crate::model::CreateVehicleRequestItem {
crate::model::CreateVehicleRequestItem {
vehicle_name: self.vehicle_name,
model_manifest_arn: self.model_manifest_arn,
decoder_manifest_arn: self.decoder_manifest_arn,
attributes: self.attributes,
association_behavior: self.association_behavior,
tags: self.tags,
}
}
}
}
impl CreateVehicleRequestItem {
pub fn builder() -> crate::model::create_vehicle_request_item::Builder {
crate::model::create_vehicle_request_item::Builder::default()
}
}