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

/// <p>Specifies updates to an FSx for ONTAP storage virtual machine's (SVM) Microsoft Active Directory (AD) configuration. Note that account credentials are not returned in the response payload.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateSvmActiveDirectoryConfiguration {
    /// <p>Specifies changes you are making to the self-managed Microsoft Active Directory configuration to which an FSx for Windows File Server file system or an FSx for ONTAP SVM is joined.</p>
    pub self_managed_active_directory_configuration: ::std::option::Option<crate::types::SelfManagedActiveDirectoryConfigurationUpdates>,
    /// <p>Specifies an updated NetBIOS name of the AD computer object <code>NetBiosName</code> to which an SVM is joined.</p>
    pub net_bios_name: ::std::option::Option<::std::string::String>,
}
impl UpdateSvmActiveDirectoryConfiguration {
    /// <p>Specifies changes you are making to the self-managed Microsoft Active Directory configuration to which an FSx for Windows File Server file system or an FSx for ONTAP SVM is joined.</p>
    pub fn self_managed_active_directory_configuration(
        &self,
    ) -> ::std::option::Option<&crate::types::SelfManagedActiveDirectoryConfigurationUpdates> {
        self.self_managed_active_directory_configuration.as_ref()
    }
    /// <p>Specifies an updated NetBIOS name of the AD computer object <code>NetBiosName</code> to which an SVM is joined.</p>
    pub fn net_bios_name(&self) -> ::std::option::Option<&str> {
        self.net_bios_name.as_deref()
    }
}
impl UpdateSvmActiveDirectoryConfiguration {
    /// Creates a new builder-style object to manufacture [`UpdateSvmActiveDirectoryConfiguration`](crate::types::UpdateSvmActiveDirectoryConfiguration).
    pub fn builder() -> crate::types::builders::UpdateSvmActiveDirectoryConfigurationBuilder {
        crate::types::builders::UpdateSvmActiveDirectoryConfigurationBuilder::default()
    }
}

/// A builder for [`UpdateSvmActiveDirectoryConfiguration`](crate::types::UpdateSvmActiveDirectoryConfiguration).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateSvmActiveDirectoryConfigurationBuilder {
    pub(crate) self_managed_active_directory_configuration: ::std::option::Option<crate::types::SelfManagedActiveDirectoryConfigurationUpdates>,
    pub(crate) net_bios_name: ::std::option::Option<::std::string::String>,
}
impl UpdateSvmActiveDirectoryConfigurationBuilder {
    /// <p>Specifies changes you are making to the self-managed Microsoft Active Directory configuration to which an FSx for Windows File Server file system or an FSx for ONTAP SVM is joined.</p>
    pub fn self_managed_active_directory_configuration(mut self, input: crate::types::SelfManagedActiveDirectoryConfigurationUpdates) -> Self {
        self.self_managed_active_directory_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies changes you are making to the self-managed Microsoft Active Directory configuration to which an FSx for Windows File Server file system or an FSx for ONTAP SVM is joined.</p>
    pub fn set_self_managed_active_directory_configuration(
        mut self,
        input: ::std::option::Option<crate::types::SelfManagedActiveDirectoryConfigurationUpdates>,
    ) -> Self {
        self.self_managed_active_directory_configuration = input;
        self
    }
    /// <p>Specifies changes you are making to the self-managed Microsoft Active Directory configuration to which an FSx for Windows File Server file system or an FSx for ONTAP SVM is joined.</p>
    pub fn get_self_managed_active_directory_configuration(
        &self,
    ) -> &::std::option::Option<crate::types::SelfManagedActiveDirectoryConfigurationUpdates> {
        &self.self_managed_active_directory_configuration
    }
    /// <p>Specifies an updated NetBIOS name of the AD computer object <code>NetBiosName</code> to which an SVM is joined.</p>
    pub fn net_bios_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.net_bios_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies an updated NetBIOS name of the AD computer object <code>NetBiosName</code> to which an SVM is joined.</p>
    pub fn set_net_bios_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.net_bios_name = input;
        self
    }
    /// <p>Specifies an updated NetBIOS name of the AD computer object <code>NetBiosName</code> to which an SVM is joined.</p>
    pub fn get_net_bios_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.net_bios_name
    }
    /// Consumes the builder and constructs a [`UpdateSvmActiveDirectoryConfiguration`](crate::types::UpdateSvmActiveDirectoryConfiguration).
    pub fn build(self) -> crate::types::UpdateSvmActiveDirectoryConfiguration {
        crate::types::UpdateSvmActiveDirectoryConfiguration {
            self_managed_active_directory_configuration: self.self_managed_active_directory_configuration,
            net_bios_name: self.net_bios_name,
        }
    }
}