aws_sdk_appfabric/operation/start_user_access_tasks/
_start_user_access_tasks_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct StartUserAccessTasksInput {
6    /// <p>The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.</p>
7    pub app_bundle_identifier: ::std::option::Option<::std::string::String>,
8    /// <p>The email address of the target user.</p>
9    pub email: ::std::option::Option<::std::string::String>,
10}
11impl StartUserAccessTasksInput {
12    /// <p>The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.</p>
13    pub fn app_bundle_identifier(&self) -> ::std::option::Option<&str> {
14        self.app_bundle_identifier.as_deref()
15    }
16    /// <p>The email address of the target user.</p>
17    pub fn email(&self) -> ::std::option::Option<&str> {
18        self.email.as_deref()
19    }
20}
21impl ::std::fmt::Debug for StartUserAccessTasksInput {
22    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
23        let mut formatter = f.debug_struct("StartUserAccessTasksInput");
24        formatter.field("app_bundle_identifier", &self.app_bundle_identifier);
25        formatter.field("email", &"*** Sensitive Data Redacted ***");
26        formatter.finish()
27    }
28}
29impl StartUserAccessTasksInput {
30    /// Creates a new builder-style object to manufacture [`StartUserAccessTasksInput`](crate::operation::start_user_access_tasks::StartUserAccessTasksInput).
31    pub fn builder() -> crate::operation::start_user_access_tasks::builders::StartUserAccessTasksInputBuilder {
32        crate::operation::start_user_access_tasks::builders::StartUserAccessTasksInputBuilder::default()
33    }
34}
35
36/// A builder for [`StartUserAccessTasksInput`](crate::operation::start_user_access_tasks::StartUserAccessTasksInput).
37#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
38#[non_exhaustive]
39pub struct StartUserAccessTasksInputBuilder {
40    pub(crate) app_bundle_identifier: ::std::option::Option<::std::string::String>,
41    pub(crate) email: ::std::option::Option<::std::string::String>,
42}
43impl StartUserAccessTasksInputBuilder {
44    /// <p>The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.</p>
45    /// This field is required.
46    pub fn app_bundle_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
47        self.app_bundle_identifier = ::std::option::Option::Some(input.into());
48        self
49    }
50    /// <p>The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.</p>
51    pub fn set_app_bundle_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
52        self.app_bundle_identifier = input;
53        self
54    }
55    /// <p>The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.</p>
56    pub fn get_app_bundle_identifier(&self) -> &::std::option::Option<::std::string::String> {
57        &self.app_bundle_identifier
58    }
59    /// <p>The email address of the target user.</p>
60    /// This field is required.
61    pub fn email(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
62        self.email = ::std::option::Option::Some(input.into());
63        self
64    }
65    /// <p>The email address of the target user.</p>
66    pub fn set_email(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
67        self.email = input;
68        self
69    }
70    /// <p>The email address of the target user.</p>
71    pub fn get_email(&self) -> &::std::option::Option<::std::string::String> {
72        &self.email
73    }
74    /// Consumes the builder and constructs a [`StartUserAccessTasksInput`](crate::operation::start_user_access_tasks::StartUserAccessTasksInput).
75    pub fn build(
76        self,
77    ) -> ::std::result::Result<crate::operation::start_user_access_tasks::StartUserAccessTasksInput, ::aws_smithy_types::error::operation::BuildError>
78    {
79        ::std::result::Result::Ok(crate::operation::start_user_access_tasks::StartUserAccessTasksInput {
80            app_bundle_identifier: self.app_bundle_identifier,
81            email: self.email,
82        })
83    }
84}
85impl ::std::fmt::Debug for StartUserAccessTasksInputBuilder {
86    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
87        let mut formatter = f.debug_struct("StartUserAccessTasksInputBuilder");
88        formatter.field("app_bundle_identifier", &self.app_bundle_identifier);
89        formatter.field("email", &"*** Sensitive Data Redacted ***");
90        formatter.finish()
91    }
92}