aws_sdk_directory/types/
_client_authentication_setting_info.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Contains information about a client authentication method for a directory.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ClientAuthenticationSettingInfo {
7    /// <p>The type of client authentication for the specified directory. If no type is specified, a list of all client authentication types that are supported for the directory is retrieved.</p>
8    pub r#type: ::std::option::Option<crate::types::ClientAuthenticationType>,
9    /// <p>Whether the client authentication type is enabled or disabled for the specified directory.</p>
10    pub status: ::std::option::Option<crate::types::ClientAuthenticationStatus>,
11    /// <p>The date and time when the status of the client authentication type was last updated.</p>
12    pub last_updated_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
13}
14impl ClientAuthenticationSettingInfo {
15    /// <p>The type of client authentication for the specified directory. If no type is specified, a list of all client authentication types that are supported for the directory is retrieved.</p>
16    pub fn r#type(&self) -> ::std::option::Option<&crate::types::ClientAuthenticationType> {
17        self.r#type.as_ref()
18    }
19    /// <p>Whether the client authentication type is enabled or disabled for the specified directory.</p>
20    pub fn status(&self) -> ::std::option::Option<&crate::types::ClientAuthenticationStatus> {
21        self.status.as_ref()
22    }
23    /// <p>The date and time when the status of the client authentication type was last updated.</p>
24    pub fn last_updated_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
25        self.last_updated_date_time.as_ref()
26    }
27}
28impl ClientAuthenticationSettingInfo {
29    /// Creates a new builder-style object to manufacture [`ClientAuthenticationSettingInfo`](crate::types::ClientAuthenticationSettingInfo).
30    pub fn builder() -> crate::types::builders::ClientAuthenticationSettingInfoBuilder {
31        crate::types::builders::ClientAuthenticationSettingInfoBuilder::default()
32    }
33}
34
35/// A builder for [`ClientAuthenticationSettingInfo`](crate::types::ClientAuthenticationSettingInfo).
36#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct ClientAuthenticationSettingInfoBuilder {
39    pub(crate) r#type: ::std::option::Option<crate::types::ClientAuthenticationType>,
40    pub(crate) status: ::std::option::Option<crate::types::ClientAuthenticationStatus>,
41    pub(crate) last_updated_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
42}
43impl ClientAuthenticationSettingInfoBuilder {
44    /// <p>The type of client authentication for the specified directory. If no type is specified, a list of all client authentication types that are supported for the directory is retrieved.</p>
45    pub fn r#type(mut self, input: crate::types::ClientAuthenticationType) -> Self {
46        self.r#type = ::std::option::Option::Some(input);
47        self
48    }
49    /// <p>The type of client authentication for the specified directory. If no type is specified, a list of all client authentication types that are supported for the directory is retrieved.</p>
50    pub fn set_type(mut self, input: ::std::option::Option<crate::types::ClientAuthenticationType>) -> Self {
51        self.r#type = input;
52        self
53    }
54    /// <p>The type of client authentication for the specified directory. If no type is specified, a list of all client authentication types that are supported for the directory is retrieved.</p>
55    pub fn get_type(&self) -> &::std::option::Option<crate::types::ClientAuthenticationType> {
56        &self.r#type
57    }
58    /// <p>Whether the client authentication type is enabled or disabled for the specified directory.</p>
59    pub fn status(mut self, input: crate::types::ClientAuthenticationStatus) -> Self {
60        self.status = ::std::option::Option::Some(input);
61        self
62    }
63    /// <p>Whether the client authentication type is enabled or disabled for the specified directory.</p>
64    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ClientAuthenticationStatus>) -> Self {
65        self.status = input;
66        self
67    }
68    /// <p>Whether the client authentication type is enabled or disabled for the specified directory.</p>
69    pub fn get_status(&self) -> &::std::option::Option<crate::types::ClientAuthenticationStatus> {
70        &self.status
71    }
72    /// <p>The date and time when the status of the client authentication type was last updated.</p>
73    pub fn last_updated_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
74        self.last_updated_date_time = ::std::option::Option::Some(input);
75        self
76    }
77    /// <p>The date and time when the status of the client authentication type was last updated.</p>
78    pub fn set_last_updated_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
79        self.last_updated_date_time = input;
80        self
81    }
82    /// <p>The date and time when the status of the client authentication type was last updated.</p>
83    pub fn get_last_updated_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
84        &self.last_updated_date_time
85    }
86    /// Consumes the builder and constructs a [`ClientAuthenticationSettingInfo`](crate::types::ClientAuthenticationSettingInfo).
87    pub fn build(self) -> crate::types::ClientAuthenticationSettingInfo {
88        crate::types::ClientAuthenticationSettingInfo {
89            r#type: self.r#type,
90            status: self.status,
91            last_updated_date_time: self.last_updated_date_time,
92        }
93    }
94}