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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>An Amazon Chime SDK meeting attendee. Includes a unique <code>AttendeeId</code> and <code>JoinToken</code> . The <code>JoinToken</code> allows a client to authenticate and join as the specified attendee. The <code>JoinToken</code> expires when the meeting ends or when <code>DeleteAttendee</code> is called. After that, the attendee is unable to join the meeting.</p>
/// <p>We recommend securely transferring each <code>JoinToken</code> from your server application to the client so that no other client has access to the token except for the one authorized to represent the attendee.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct Attendee {
    /// <p>The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application.</p>
    pub external_user_id: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Chime SDK attendee ID.</p>
    pub attendee_id: ::std::option::Option<::std::string::String>,
    /// <p>The join token used by the Amazon Chime SDK attendee.</p>
    pub join_token: ::std::option::Option<::std::string::String>,
}
impl Attendee {
    /// <p>The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application.</p>
    pub fn external_user_id(&self) -> ::std::option::Option<&str> {
        self.external_user_id.as_deref()
    }
    /// <p>The Amazon Chime SDK attendee ID.</p>
    pub fn attendee_id(&self) -> ::std::option::Option<&str> {
        self.attendee_id.as_deref()
    }
    /// <p>The join token used by the Amazon Chime SDK attendee.</p>
    pub fn join_token(&self) -> ::std::option::Option<&str> {
        self.join_token.as_deref()
    }
}
impl ::std::fmt::Debug for Attendee {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("Attendee");
        formatter.field("external_user_id", &"*** Sensitive Data Redacted ***");
        formatter.field("attendee_id", &self.attendee_id);
        formatter.field("join_token", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
impl Attendee {
    /// Creates a new builder-style object to manufacture [`Attendee`](crate::types::Attendee).
    pub fn builder() -> crate::types::builders::AttendeeBuilder {
        crate::types::builders::AttendeeBuilder::default()
    }
}

/// A builder for [`Attendee`](crate::types::Attendee).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct AttendeeBuilder {
    pub(crate) external_user_id: ::std::option::Option<::std::string::String>,
    pub(crate) attendee_id: ::std::option::Option<::std::string::String>,
    pub(crate) join_token: ::std::option::Option<::std::string::String>,
}
impl AttendeeBuilder {
    /// <p>The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application.</p>
    pub fn external_user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.external_user_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application.</p>
    pub fn set_external_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.external_user_id = input;
        self
    }
    /// <p>The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application.</p>
    pub fn get_external_user_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.external_user_id
    }
    /// <p>The Amazon Chime SDK attendee ID.</p>
    pub fn attendee_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.attendee_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Chime SDK attendee ID.</p>
    pub fn set_attendee_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.attendee_id = input;
        self
    }
    /// <p>The Amazon Chime SDK attendee ID.</p>
    pub fn get_attendee_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.attendee_id
    }
    /// <p>The join token used by the Amazon Chime SDK attendee.</p>
    pub fn join_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.join_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The join token used by the Amazon Chime SDK attendee.</p>
    pub fn set_join_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.join_token = input;
        self
    }
    /// <p>The join token used by the Amazon Chime SDK attendee.</p>
    pub fn get_join_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.join_token
    }
    /// Consumes the builder and constructs a [`Attendee`](crate::types::Attendee).
    pub fn build(self) -> crate::types::Attendee {
        crate::types::Attendee {
            external_user_id: self.external_user_id,
            attendee_id: self.attendee_id,
            join_token: self.join_token,
        }
    }
}
impl ::std::fmt::Debug for AttendeeBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("AttendeeBuilder");
        formatter.field("external_user_id", &"*** Sensitive Data Redacted ***");
        formatter.field("attendee_id", &self.attendee_id);
        formatter.field("join_token", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}