aws-sdk-mobile 1.35.0

AWS SDK for AWS Mobile
Documentation
// 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).
#[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 {
    /// <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,
        })
    }
}