#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateProjectInput {
#[doc(hidden)]
pub sample: std::option::Option<crate::types::Sample>,
#[doc(hidden)]
pub role_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
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()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
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 = Some(input);
self
}
pub fn set_sample(mut self, input: std::option::Option<crate::types::Sample>) -> Self {
self.sample = input;
self
}
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = 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 name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::update_project::UpdateProjectInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::update_project::UpdateProjectInput {
sample: self.sample,
role_arn: self.role_arn,
name: self.name,
})
}
}