#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateVehicleResponseItem {
pub vehicle_name: ::std::option::Option<::std::string::String>,
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()
}
}
impl UpdateVehicleResponseItem {
pub fn builder() -> crate::types::builders::UpdateVehicleResponseItemBuilder {
crate::types::builders::UpdateVehicleResponseItemBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateVehicleResponseItemBuilder {
pub(crate) vehicle_name: ::std::option::Option<::std::string::String>,
pub(crate) arn: ::std::option::Option<::std::string::String>,
}
impl UpdateVehicleResponseItemBuilder {
pub fn vehicle_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.vehicle_name = ::std::option::Option::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 get_vehicle_name(&self) -> &::std::option::Option<::std::string::String> {
&self.vehicle_name
}
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn build(self) -> crate::types::UpdateVehicleResponseItem {
crate::types::UpdateVehicleResponseItem {
vehicle_name: self.vehicle_name,
arn: self.arn,
}
}
}