#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeProjectInput {
pub project_id: ::std::option::Option<::std::string::String>,
pub sync_from_resources: ::std::option::Option<bool>,
}
impl DescribeProjectInput {
pub fn project_id(&self) -> ::std::option::Option<&str> {
self.project_id.as_deref()
}
pub fn sync_from_resources(&self) -> ::std::option::Option<bool> {
self.sync_from_resources
}
}
impl DescribeProjectInput {
pub fn builder() -> crate::operation::describe_project::builders::DescribeProjectInputBuilder {
crate::operation::describe_project::builders::DescribeProjectInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeProjectInputBuilder {
pub(crate) project_id: ::std::option::Option<::std::string::String>,
pub(crate) sync_from_resources: ::std::option::Option<bool>,
}
impl DescribeProjectInputBuilder {
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 sync_from_resources(mut self, input: bool) -> Self {
self.sync_from_resources = ::std::option::Option::Some(input);
self
}
pub fn set_sync_from_resources(mut self, input: ::std::option::Option<bool>) -> Self {
self.sync_from_resources = input;
self
}
pub fn get_sync_from_resources(&self) -> &::std::option::Option<bool> {
&self.sync_from_resources
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_project::DescribeProjectInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_project::DescribeProjectInput {
project_id: self.project_id,
sync_from_resources: self.sync_from_resources,
})
}
}