#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Details {
pub import_asset_from_signed_url_job_error_details: ::std::option::Option<crate::types::ImportAssetFromSignedUrlJobErrorDetails>,
pub import_assets_from_s3_job_error_details: ::std::option::Option<::std::vec::Vec<crate::types::AssetSourceEntry>>,
}
impl Details {
pub fn import_asset_from_signed_url_job_error_details(&self) -> ::std::option::Option<&crate::types::ImportAssetFromSignedUrlJobErrorDetails> {
self.import_asset_from_signed_url_job_error_details.as_ref()
}
pub fn import_assets_from_s3_job_error_details(&self) -> &[crate::types::AssetSourceEntry] {
self.import_assets_from_s3_job_error_details.as_deref().unwrap_or_default()
}
}
impl Details {
pub fn builder() -> crate::types::builders::DetailsBuilder {
crate::types::builders::DetailsBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DetailsBuilder {
pub(crate) import_asset_from_signed_url_job_error_details: ::std::option::Option<crate::types::ImportAssetFromSignedUrlJobErrorDetails>,
pub(crate) import_assets_from_s3_job_error_details: ::std::option::Option<::std::vec::Vec<crate::types::AssetSourceEntry>>,
}
impl DetailsBuilder {
pub fn import_asset_from_signed_url_job_error_details(mut self, input: crate::types::ImportAssetFromSignedUrlJobErrorDetails) -> Self {
self.import_asset_from_signed_url_job_error_details = ::std::option::Option::Some(input);
self
}
pub fn set_import_asset_from_signed_url_job_error_details(
mut self,
input: ::std::option::Option<crate::types::ImportAssetFromSignedUrlJobErrorDetails>,
) -> Self {
self.import_asset_from_signed_url_job_error_details = input;
self
}
pub fn get_import_asset_from_signed_url_job_error_details(
&self,
) -> &::std::option::Option<crate::types::ImportAssetFromSignedUrlJobErrorDetails> {
&self.import_asset_from_signed_url_job_error_details
}
pub fn import_assets_from_s3_job_error_details(mut self, input: crate::types::AssetSourceEntry) -> Self {
let mut v = self.import_assets_from_s3_job_error_details.unwrap_or_default();
v.push(input);
self.import_assets_from_s3_job_error_details = ::std::option::Option::Some(v);
self
}
pub fn set_import_assets_from_s3_job_error_details(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::AssetSourceEntry>>,
) -> Self {
self.import_assets_from_s3_job_error_details = input;
self
}
pub fn get_import_assets_from_s3_job_error_details(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssetSourceEntry>> {
&self.import_assets_from_s3_job_error_details
}
pub fn build(self) -> crate::types::Details {
crate::types::Details {
import_asset_from_signed_url_job_error_details: self.import_asset_from_signed_url_job_error_details,
import_assets_from_s3_job_error_details: self.import_assets_from_s3_job_error_details,
}
}
}