#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetVehicleOutput {
#[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 attributes:
std::option::Option<std::collections::HashMap<std::string::String, 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>,
_request_id: Option<String>,
}
impl GetVehicleOutput {
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 attributes(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.attributes.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()
}
}
impl aws_http::request_id::RequestId for GetVehicleOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetVehicleOutput {
pub fn builder() -> crate::operation::get_vehicle::builders::GetVehicleOutputBuilder {
crate::operation::get_vehicle::builders::GetVehicleOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetVehicleOutputBuilder {
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) attributes:
std::option::Option<std::collections::HashMap<std::string::String, 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>,
_request_id: Option<String>,
}
impl GetVehicleOutputBuilder {
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 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 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(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::get_vehicle::GetVehicleOutput {
crate::operation::get_vehicle::GetVehicleOutput {
vehicle_name: self.vehicle_name,
arn: self.arn,
model_manifest_arn: self.model_manifest_arn,
decoder_manifest_arn: self.decoder_manifest_arn,
attributes: self.attributes,
creation_time: self.creation_time,
last_modification_time: self.last_modification_time,
_request_id: self._request_id,
}
}
}