#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetVehicleOutput {
pub vehicle_name: ::std::option::Option<::std::string::String>,
pub arn: ::std::option::Option<::std::string::String>,
pub model_manifest_arn: ::std::option::Option<::std::string::String>,
pub decoder_manifest_arn: ::std::option::Option<::std::string::String>,
pub attributes: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
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_types::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 ::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 model_manifest_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.model_manifest_arn = ::std::option::Option::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 get_model_manifest_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.model_manifest_arn
}
pub fn decoder_manifest_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.decoder_manifest_arn = ::std::option::Option::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 get_decoder_manifest_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.decoder_manifest_arn
}
pub fn attributes(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.attributes = ::std::option::Option::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 get_attributes(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.attributes
}
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::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 get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
pub fn last_modification_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modification_time = ::std::option::Option::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 fn get_last_modification_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modification_time
}
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,
}
}
}