aws_sdk_databrew/operation/update_project/
_update_project_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateProjectInput {
pub sample: ::std::option::Option<crate::types::Sample>,
pub role_arn: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
}
impl UpdateProjectInput {
pub fn sample(&self) -> ::std::option::Option<&crate::types::Sample> {
self.sample.as_ref()
}
pub fn role_arn(&self) -> ::std::option::Option<&str> {
self.role_arn.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
}
impl UpdateProjectInput {
pub fn builder() -> crate::operation::update_project::builders::UpdateProjectInputBuilder {
crate::operation::update_project::builders::UpdateProjectInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateProjectInputBuilder {
pub(crate) sample: ::std::option::Option<crate::types::Sample>,
pub(crate) role_arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
}
impl UpdateProjectInputBuilder {
pub fn sample(mut self, input: crate::types::Sample) -> Self {
self.sample = ::std::option::Option::Some(input);
self
}
pub fn set_sample(mut self, input: ::std::option::Option<crate::types::Sample>) -> Self {
self.sample = input;
self
}
pub fn get_sample(&self) -> &::std::option::Option<crate::types::Sample> {
&self.sample
}
pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.role_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.role_arn
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_project::UpdateProjectInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_project::UpdateProjectInput {
sample: self.sample,
role_arn: self.role_arn,
name: self.name,
})
}
}