#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AssociateVehicleFleetInput {
pub vehicle_name: ::std::option::Option<::std::string::String>,
pub fleet_id: ::std::option::Option<::std::string::String>,
}
impl AssociateVehicleFleetInput {
pub fn vehicle_name(&self) -> ::std::option::Option<&str> {
self.vehicle_name.as_deref()
}
pub fn fleet_id(&self) -> ::std::option::Option<&str> {
self.fleet_id.as_deref()
}
}
impl AssociateVehicleFleetInput {
pub fn builder() -> crate::operation::associate_vehicle_fleet::builders::AssociateVehicleFleetInputBuilder {
crate::operation::associate_vehicle_fleet::builders::AssociateVehicleFleetInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct AssociateVehicleFleetInputBuilder {
pub(crate) vehicle_name: ::std::option::Option<::std::string::String>,
pub(crate) fleet_id: ::std::option::Option<::std::string::String>,
}
impl AssociateVehicleFleetInputBuilder {
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 fleet_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.fleet_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_fleet_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.fleet_id = input;
self
}
pub fn get_fleet_id(&self) -> &::std::option::Option<::std::string::String> {
&self.fleet_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::associate_vehicle_fleet::AssociateVehicleFleetInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::associate_vehicle_fleet::AssociateVehicleFleetInput {
vehicle_name: self.vehicle_name,
fleet_id: self.fleet_id,
})
}
}