#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteVehicleOutput {
#[doc(hidden)]
pub vehicle_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl DeleteVehicleOutput {
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 aws_http::request_id::RequestId for DeleteVehicleOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteVehicleOutput {
pub fn builder() -> crate::operation::delete_vehicle::builders::DeleteVehicleOutputBuilder {
crate::operation::delete_vehicle::builders::DeleteVehicleOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteVehicleOutputBuilder {
pub(crate) vehicle_name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl DeleteVehicleOutputBuilder {
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(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::delete_vehicle::DeleteVehicleOutput {
crate::operation::delete_vehicle::DeleteVehicleOutput {
vehicle_name: self.vehicle_name,
arn: self.arn,
_request_id: self._request_id,
}
}
}