aws_sdk_connectparticipant/operation/get_transcript/
_get_transcript_input.rs

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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetTranscriptInput {
    /// <p>The contactId from the current contact chain for which transcript is needed.</p>
    pub contact_id: ::std::option::Option<::std::string::String>,
    /// <p>The maximum number of results to return in the page. Default: 10.</p>
    pub max_results: ::std::option::Option<i32>,
    /// <p>The pagination token. Use the value returned previously in the next subsequent request to retrieve the next set of results.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
    /// <p>The direction from StartPosition from which to retrieve message. Default: BACKWARD when no StartPosition is provided, FORWARD with StartPosition.</p>
    pub scan_direction: ::std::option::Option<crate::types::ScanDirection>,
    /// <p>The sort order for the records. Default: DESCENDING.</p>
    pub sort_order: ::std::option::Option<crate::types::SortKey>,
    /// <p>A filtering option for where to start.</p>
    pub start_position: ::std::option::Option<crate::types::StartPosition>,
    /// <p>The authentication token associated with the participant's connection.</p>
    pub connection_token: ::std::option::Option<::std::string::String>,
}
impl GetTranscriptInput {
    /// <p>The contactId from the current contact chain for which transcript is needed.</p>
    pub fn contact_id(&self) -> ::std::option::Option<&str> {
        self.contact_id.as_deref()
    }
    /// <p>The maximum number of results to return in the page. Default: 10.</p>
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// <p>The pagination token. Use the value returned previously in the next subsequent request to retrieve the next set of results.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// <p>The direction from StartPosition from which to retrieve message. Default: BACKWARD when no StartPosition is provided, FORWARD with StartPosition.</p>
    pub fn scan_direction(&self) -> ::std::option::Option<&crate::types::ScanDirection> {
        self.scan_direction.as_ref()
    }
    /// <p>The sort order for the records. Default: DESCENDING.</p>
    pub fn sort_order(&self) -> ::std::option::Option<&crate::types::SortKey> {
        self.sort_order.as_ref()
    }
    /// <p>A filtering option for where to start.</p>
    pub fn start_position(&self) -> ::std::option::Option<&crate::types::StartPosition> {
        self.start_position.as_ref()
    }
    /// <p>The authentication token associated with the participant's connection.</p>
    pub fn connection_token(&self) -> ::std::option::Option<&str> {
        self.connection_token.as_deref()
    }
}
impl GetTranscriptInput {
    /// Creates a new builder-style object to manufacture [`GetTranscriptInput`](crate::operation::get_transcript::GetTranscriptInput).
    pub fn builder() -> crate::operation::get_transcript::builders::GetTranscriptInputBuilder {
        crate::operation::get_transcript::builders::GetTranscriptInputBuilder::default()
    }
}

/// A builder for [`GetTranscriptInput`](crate::operation::get_transcript::GetTranscriptInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetTranscriptInputBuilder {
    pub(crate) contact_id: ::std::option::Option<::std::string::String>,
    pub(crate) max_results: ::std::option::Option<i32>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) scan_direction: ::std::option::Option<crate::types::ScanDirection>,
    pub(crate) sort_order: ::std::option::Option<crate::types::SortKey>,
    pub(crate) start_position: ::std::option::Option<crate::types::StartPosition>,
    pub(crate) connection_token: ::std::option::Option<::std::string::String>,
}
impl GetTranscriptInputBuilder {
    /// <p>The contactId from the current contact chain for which transcript is needed.</p>
    pub fn contact_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.contact_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The contactId from the current contact chain for which transcript is needed.</p>
    pub fn set_contact_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.contact_id = input;
        self
    }
    /// <p>The contactId from the current contact chain for which transcript is needed.</p>
    pub fn get_contact_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.contact_id
    }
    /// <p>The maximum number of results to return in the page. Default: 10.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum number of results to return in the page. Default: 10.</p>
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// <p>The maximum number of results to return in the page. Default: 10.</p>
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// <p>The pagination token. Use the value returned previously in the next subsequent request to retrieve the next set of results.</p>
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.next_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The pagination token. Use the value returned previously in the next subsequent request to retrieve the next set of results.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>The pagination token. Use the value returned previously in the next subsequent request to retrieve the next set of results.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// <p>The direction from StartPosition from which to retrieve message. Default: BACKWARD when no StartPosition is provided, FORWARD with StartPosition.</p>
    pub fn scan_direction(mut self, input: crate::types::ScanDirection) -> Self {
        self.scan_direction = ::std::option::Option::Some(input);
        self
    }
    /// <p>The direction from StartPosition from which to retrieve message. Default: BACKWARD when no StartPosition is provided, FORWARD with StartPosition.</p>
    pub fn set_scan_direction(mut self, input: ::std::option::Option<crate::types::ScanDirection>) -> Self {
        self.scan_direction = input;
        self
    }
    /// <p>The direction from StartPosition from which to retrieve message. Default: BACKWARD when no StartPosition is provided, FORWARD with StartPosition.</p>
    pub fn get_scan_direction(&self) -> &::std::option::Option<crate::types::ScanDirection> {
        &self.scan_direction
    }
    /// <p>The sort order for the records. Default: DESCENDING.</p>
    pub fn sort_order(mut self, input: crate::types::SortKey) -> Self {
        self.sort_order = ::std::option::Option::Some(input);
        self
    }
    /// <p>The sort order for the records. Default: DESCENDING.</p>
    pub fn set_sort_order(mut self, input: ::std::option::Option<crate::types::SortKey>) -> Self {
        self.sort_order = input;
        self
    }
    /// <p>The sort order for the records. Default: DESCENDING.</p>
    pub fn get_sort_order(&self) -> &::std::option::Option<crate::types::SortKey> {
        &self.sort_order
    }
    /// <p>A filtering option for where to start.</p>
    pub fn start_position(mut self, input: crate::types::StartPosition) -> Self {
        self.start_position = ::std::option::Option::Some(input);
        self
    }
    /// <p>A filtering option for where to start.</p>
    pub fn set_start_position(mut self, input: ::std::option::Option<crate::types::StartPosition>) -> Self {
        self.start_position = input;
        self
    }
    /// <p>A filtering option for where to start.</p>
    pub fn get_start_position(&self) -> &::std::option::Option<crate::types::StartPosition> {
        &self.start_position
    }
    /// <p>The authentication token associated with the participant's connection.</p>
    /// This field is required.
    pub fn connection_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.connection_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The authentication token associated with the participant's connection.</p>
    pub fn set_connection_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.connection_token = input;
        self
    }
    /// <p>The authentication token associated with the participant's connection.</p>
    pub fn get_connection_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.connection_token
    }
    /// Consumes the builder and constructs a [`GetTranscriptInput`](crate::operation::get_transcript::GetTranscriptInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_transcript::GetTranscriptInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_transcript::GetTranscriptInput {
            contact_id: self.contact_id,
            max_results: self.max_results,
            next_token: self.next_token,
            scan_direction: self.scan_direction,
            sort_order: self.sort_order,
            start_position: self.start_position,
            connection_token: self.connection_token,
        })
    }
}