#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DataSetImportItem {
pub data_set: ::std::option::Option<crate::types::DataSet>,
pub external_location: ::std::option::Option<crate::types::ExternalLocation>,
}
impl DataSetImportItem {
pub fn data_set(&self) -> ::std::option::Option<&crate::types::DataSet> {
self.data_set.as_ref()
}
pub fn external_location(&self) -> ::std::option::Option<&crate::types::ExternalLocation> {
self.external_location.as_ref()
}
}
impl DataSetImportItem {
pub fn builder() -> crate::types::builders::DataSetImportItemBuilder {
crate::types::builders::DataSetImportItemBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DataSetImportItemBuilder {
pub(crate) data_set: ::std::option::Option<crate::types::DataSet>,
pub(crate) external_location: ::std::option::Option<crate::types::ExternalLocation>,
}
impl DataSetImportItemBuilder {
pub fn data_set(mut self, input: crate::types::DataSet) -> Self {
self.data_set = ::std::option::Option::Some(input);
self
}
pub fn set_data_set(mut self, input: ::std::option::Option<crate::types::DataSet>) -> Self {
self.data_set = input;
self
}
pub fn get_data_set(&self) -> &::std::option::Option<crate::types::DataSet> {
&self.data_set
}
pub fn external_location(mut self, input: crate::types::ExternalLocation) -> Self {
self.external_location = ::std::option::Option::Some(input);
self
}
pub fn set_external_location(mut self, input: ::std::option::Option<crate::types::ExternalLocation>) -> Self {
self.external_location = input;
self
}
pub fn get_external_location(&self) -> &::std::option::Option<crate::types::ExternalLocation> {
&self.external_location
}
pub fn build(self) -> crate::types::DataSetImportItem {
crate::types::DataSetImportItem {
data_set: self.data_set,
external_location: self.external_location,
}
}
}