aws-sdk-iotfleetwise 1.108.0

AWS SDK for AWS IoT FleetWise
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisassociateVehicleFleetInput {
    /// <p>The unique ID of the vehicle to disassociate from the fleet.</p>
    pub vehicle_name: ::std::option::Option<::std::string::String>,
    /// <p>The unique ID of a fleet.</p>
    pub fleet_id: ::std::option::Option<::std::string::String>,
}
impl DisassociateVehicleFleetInput {
    /// <p>The unique ID of the vehicle to disassociate from the fleet.</p>
    pub fn vehicle_name(&self) -> ::std::option::Option<&str> {
        self.vehicle_name.as_deref()
    }
    /// <p>The unique ID of a fleet.</p>
    pub fn fleet_id(&self) -> ::std::option::Option<&str> {
        self.fleet_id.as_deref()
    }
}
impl DisassociateVehicleFleetInput {
    /// Creates a new builder-style object to manufacture [`DisassociateVehicleFleetInput`](crate::operation::disassociate_vehicle_fleet::DisassociateVehicleFleetInput).
    pub fn builder() -> crate::operation::disassociate_vehicle_fleet::builders::DisassociateVehicleFleetInputBuilder {
        crate::operation::disassociate_vehicle_fleet::builders::DisassociateVehicleFleetInputBuilder::default()
    }
}

/// A builder for [`DisassociateVehicleFleetInput`](crate::operation::disassociate_vehicle_fleet::DisassociateVehicleFleetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateVehicleFleetInputBuilder {
    pub(crate) vehicle_name: ::std::option::Option<::std::string::String>,
    pub(crate) fleet_id: ::std::option::Option<::std::string::String>,
}
impl DisassociateVehicleFleetInputBuilder {
    /// <p>The unique ID of the vehicle to disassociate from the fleet.</p>
    /// This field is required.
    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
    }
    /// <p>The unique ID of the vehicle to disassociate from the fleet.</p>
    pub fn set_vehicle_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.vehicle_name = input;
        self
    }
    /// <p>The unique ID of the vehicle to disassociate from the fleet.</p>
    pub fn get_vehicle_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.vehicle_name
    }
    /// <p>The unique ID of a fleet.</p>
    /// This field is required.
    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
    }
    /// <p>The unique ID of a fleet.</p>
    pub fn set_fleet_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.fleet_id = input;
        self
    }
    /// <p>The unique ID of a fleet.</p>
    pub fn get_fleet_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.fleet_id
    }
    /// Consumes the builder and constructs a [`DisassociateVehicleFleetInput`](crate::operation::disassociate_vehicle_fleet::DisassociateVehicleFleetInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::disassociate_vehicle_fleet::DisassociateVehicleFleetInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::disassociate_vehicle_fleet::DisassociateVehicleFleetInput {
            vehicle_name: self.vehicle_name,
            fleet_id: self.fleet_id,
        })
    }
}