#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateProjectInput {
pub contents: ::std::option::Option<::aws_smithy_types::Blob>,
pub project_id: ::std::option::Option<::std::string::String>,
}
impl UpdateProjectInput {
pub fn contents(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
self.contents.as_ref()
}
pub fn project_id(&self) -> ::std::option::Option<&str> {
self.project_id.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) contents: ::std::option::Option<::aws_smithy_types::Blob>,
pub(crate) project_id: ::std::option::Option<::std::string::String>,
}
impl UpdateProjectInputBuilder {
pub fn contents(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.contents = ::std::option::Option::Some(input);
self
}
pub fn set_contents(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.contents = input;
self
}
pub fn get_contents(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.contents
}
pub fn project_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.project_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_project_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.project_id = input;
self
}
pub fn get_project_id(&self) -> &::std::option::Option<::std::string::String> {
&self.project_id
}
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 {
contents: self.contents,
project_id: self.project_id,
})
}
}