aws_sdk_personalize/operation/update_dataset/
_update_dataset_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateDatasetInput {
pub dataset_arn: ::std::option::Option<::std::string::String>,
pub schema_arn: ::std::option::Option<::std::string::String>,
}
impl UpdateDatasetInput {
pub fn dataset_arn(&self) -> ::std::option::Option<&str> {
self.dataset_arn.as_deref()
}
pub fn schema_arn(&self) -> ::std::option::Option<&str> {
self.schema_arn.as_deref()
}
}
impl UpdateDatasetInput {
pub fn builder() -> crate::operation::update_dataset::builders::UpdateDatasetInputBuilder {
crate::operation::update_dataset::builders::UpdateDatasetInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateDatasetInputBuilder {
pub(crate) dataset_arn: ::std::option::Option<::std::string::String>,
pub(crate) schema_arn: ::std::option::Option<::std::string::String>,
}
impl UpdateDatasetInputBuilder {
pub fn dataset_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.dataset_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_dataset_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.dataset_arn = input;
self
}
pub fn get_dataset_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.dataset_arn
}
pub fn schema_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schema_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_schema_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schema_arn = input;
self
}
pub fn get_schema_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.schema_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_dataset::UpdateDatasetInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_dataset::UpdateDatasetInput {
dataset_arn: self.dataset_arn,
schema_arn: self.schema_arn,
})
}
}