#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct FileBatchJobIdentifier {
pub file_name: ::std::string::String,
pub folder_path: ::std::option::Option<::std::string::String>,
}
impl FileBatchJobIdentifier {
pub fn file_name(&self) -> &str {
use std::ops::Deref;
self.file_name.deref()
}
pub fn folder_path(&self) -> ::std::option::Option<&str> {
self.folder_path.as_deref()
}
}
impl FileBatchJobIdentifier {
pub fn builder() -> crate::types::builders::FileBatchJobIdentifierBuilder {
crate::types::builders::FileBatchJobIdentifierBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct FileBatchJobIdentifierBuilder {
pub(crate) file_name: ::std::option::Option<::std::string::String>,
pub(crate) folder_path: ::std::option::Option<::std::string::String>,
}
impl FileBatchJobIdentifierBuilder {
pub fn file_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.file_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_file_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.file_name = input;
self
}
pub fn get_file_name(&self) -> &::std::option::Option<::std::string::String> {
&self.file_name
}
pub fn folder_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.folder_path = ::std::option::Option::Some(input.into());
self
}
pub fn set_folder_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.folder_path = input;
self
}
pub fn get_folder_path(&self) -> &::std::option::Option<::std::string::String> {
&self.folder_path
}
pub fn build(self) -> ::std::result::Result<crate::types::FileBatchJobIdentifier, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::types::FileBatchJobIdentifier {
file_name: self.file_name.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"file_name",
"file_name was not specified but it is required when building FileBatchJobIdentifier",
)
})?,
folder_path: self.folder_path,
})
}
}