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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A collection of settings that configure user interaction with the <code>RStudioServerPro</code> app.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RStudioServerProAppSettings {
    /// <p>Indicates whether the current user has access to the <code>RStudioServerPro</code> app.</p>
    pub access_status: ::std::option::Option<crate::types::RStudioServerProAccessStatus>,
    /// <p>The level of permissions that the user has within the <code>RStudioServerPro</code> app. This value defaults to `User`. The `Admin` value allows the user access to the RStudio Administrative Dashboard.</p>
    pub user_group: ::std::option::Option<crate::types::RStudioServerProUserGroup>,
}
impl RStudioServerProAppSettings {
    /// <p>Indicates whether the current user has access to the <code>RStudioServerPro</code> app.</p>
    pub fn access_status(&self) -> ::std::option::Option<&crate::types::RStudioServerProAccessStatus> {
        self.access_status.as_ref()
    }
    /// <p>The level of permissions that the user has within the <code>RStudioServerPro</code> app. This value defaults to `User`. The `Admin` value allows the user access to the RStudio Administrative Dashboard.</p>
    pub fn user_group(&self) -> ::std::option::Option<&crate::types::RStudioServerProUserGroup> {
        self.user_group.as_ref()
    }
}
impl RStudioServerProAppSettings {
    /// Creates a new builder-style object to manufacture [`RStudioServerProAppSettings`](crate::types::RStudioServerProAppSettings).
    pub fn builder() -> crate::types::builders::RStudioServerProAppSettingsBuilder {
        crate::types::builders::RStudioServerProAppSettingsBuilder::default()
    }
}

/// A builder for [`RStudioServerProAppSettings`](crate::types::RStudioServerProAppSettings).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct RStudioServerProAppSettingsBuilder {
    pub(crate) access_status: ::std::option::Option<crate::types::RStudioServerProAccessStatus>,
    pub(crate) user_group: ::std::option::Option<crate::types::RStudioServerProUserGroup>,
}
impl RStudioServerProAppSettingsBuilder {
    /// <p>Indicates whether the current user has access to the <code>RStudioServerPro</code> app.</p>
    pub fn access_status(mut self, input: crate::types::RStudioServerProAccessStatus) -> Self {
        self.access_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the current user has access to the <code>RStudioServerPro</code> app.</p>
    pub fn set_access_status(mut self, input: ::std::option::Option<crate::types::RStudioServerProAccessStatus>) -> Self {
        self.access_status = input;
        self
    }
    /// <p>Indicates whether the current user has access to the <code>RStudioServerPro</code> app.</p>
    pub fn get_access_status(&self) -> &::std::option::Option<crate::types::RStudioServerProAccessStatus> {
        &self.access_status
    }
    /// <p>The level of permissions that the user has within the <code>RStudioServerPro</code> app. This value defaults to `User`. The `Admin` value allows the user access to the RStudio Administrative Dashboard.</p>
    pub fn user_group(mut self, input: crate::types::RStudioServerProUserGroup) -> Self {
        self.user_group = ::std::option::Option::Some(input);
        self
    }
    /// <p>The level of permissions that the user has within the <code>RStudioServerPro</code> app. This value defaults to `User`. The `Admin` value allows the user access to the RStudio Administrative Dashboard.</p>
    pub fn set_user_group(mut self, input: ::std::option::Option<crate::types::RStudioServerProUserGroup>) -> Self {
        self.user_group = input;
        self
    }
    /// <p>The level of permissions that the user has within the <code>RStudioServerPro</code> app. This value defaults to `User`. The `Admin` value allows the user access to the RStudio Administrative Dashboard.</p>
    pub fn get_user_group(&self) -> &::std::option::Option<crate::types::RStudioServerProUserGroup> {
        &self.user_group
    }
    /// Consumes the builder and constructs a [`RStudioServerProAppSettings`](crate::types::RStudioServerProAppSettings).
    pub fn build(self) -> crate::types::RStudioServerProAppSettings {
        crate::types::RStudioServerProAppSettings {
            access_status: self.access_status,
            user_group: self.user_group,
        }
    }
}