1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Request structure used to request details about a project.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeProjectInput {
    /// <p>Unique project identifier.</p>
    pub project_id: ::std::option::Option<::std::string::String>,
    /// <p>If set to true, causes AWS Mobile Hub to synchronize information from other services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile Hub project.</p>
    pub sync_from_resources: ::std::option::Option<bool>,
}
impl DescribeProjectInput {
    /// <p>Unique project identifier.</p>
    pub fn project_id(&self) -> ::std::option::Option<&str> {
        self.project_id.as_deref()
    }
    /// <p>If set to true, causes AWS Mobile Hub to synchronize information from other services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile Hub project.</p>
    pub fn sync_from_resources(&self) -> ::std::option::Option<bool> {
        self.sync_from_resources
    }
}
impl DescribeProjectInput {
    /// Creates a new builder-style object to manufacture [`DescribeProjectInput`](crate::operation::describe_project::DescribeProjectInput).
    pub fn builder() -> crate::operation::describe_project::builders::DescribeProjectInputBuilder {
        crate::operation::describe_project::builders::DescribeProjectInputBuilder::default()
    }
}

/// A builder for [`DescribeProjectInput`](crate::operation::describe_project::DescribeProjectInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeProjectInputBuilder {
    pub(crate) project_id: ::std::option::Option<::std::string::String>,
    pub(crate) sync_from_resources: ::std::option::Option<bool>,
}
impl DescribeProjectInputBuilder {
    /// <p>Unique project identifier.</p>
    /// This field is required.
    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
    }
    /// <p>Unique project identifier.</p>
    pub fn set_project_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.project_id = input;
        self
    }
    /// <p>Unique project identifier.</p>
    pub fn get_project_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.project_id
    }
    /// <p>If set to true, causes AWS Mobile Hub to synchronize information from other services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile Hub project.</p>
    pub fn sync_from_resources(mut self, input: bool) -> Self {
        self.sync_from_resources = ::std::option::Option::Some(input);
        self
    }
    /// <p>If set to true, causes AWS Mobile Hub to synchronize information from other services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile Hub project.</p>
    pub fn set_sync_from_resources(mut self, input: ::std::option::Option<bool>) -> Self {
        self.sync_from_resources = input;
        self
    }
    /// <p>If set to true, causes AWS Mobile Hub to synchronize information from other services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile Hub project.</p>
    pub fn get_sync_from_resources(&self) -> &::std::option::Option<bool> {
        &self.sync_from_resources
    }
    /// Consumes the builder and constructs a [`DescribeProjectInput`](crate::operation::describe_project::DescribeProjectInput).
    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,
        })
    }
}