aws-sdk-pinpoint 1.66.0

AWS SDK for Amazon Pinpoint
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateAppInput {
    /// <p>Specifies the display name of an application and the tags to associate with the application.</p>
    pub create_application_request: ::std::option::Option<crate::types::CreateApplicationRequest>,
}
impl CreateAppInput {
    /// <p>Specifies the display name of an application and the tags to associate with the application.</p>
    pub fn create_application_request(&self) -> ::std::option::Option<&crate::types::CreateApplicationRequest> {
        self.create_application_request.as_ref()
    }
}
impl CreateAppInput {
    /// Creates a new builder-style object to manufacture [`CreateAppInput`](crate::operation::create_app::CreateAppInput).
    pub fn builder() -> crate::operation::create_app::builders::CreateAppInputBuilder {
        crate::operation::create_app::builders::CreateAppInputBuilder::default()
    }
}

/// A builder for [`CreateAppInput`](crate::operation::create_app::CreateAppInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateAppInputBuilder {
    pub(crate) create_application_request: ::std::option::Option<crate::types::CreateApplicationRequest>,
}
impl CreateAppInputBuilder {
    /// <p>Specifies the display name of an application and the tags to associate with the application.</p>
    /// This field is required.
    pub fn create_application_request(mut self, input: crate::types::CreateApplicationRequest) -> Self {
        self.create_application_request = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the display name of an application and the tags to associate with the application.</p>
    pub fn set_create_application_request(mut self, input: ::std::option::Option<crate::types::CreateApplicationRequest>) -> Self {
        self.create_application_request = input;
        self
    }
    /// <p>Specifies the display name of an application and the tags to associate with the application.</p>
    pub fn get_create_application_request(&self) -> &::std::option::Option<crate::types::CreateApplicationRequest> {
        &self.create_application_request
    }
    /// Consumes the builder and constructs a [`CreateAppInput`](crate::operation::create_app::CreateAppInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::create_app::CreateAppInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::create_app::CreateAppInput {
            create_application_request: self.create_application_request,
        })
    }
}