aws_sdk_lexruntime/operation/delete_session/
_delete_session_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteSessionOutput {
6    /// <p>The name of the bot associated with the session data.</p>
7    pub bot_name: ::std::option::Option<::std::string::String>,
8    /// <p>The alias in use for the bot associated with the session data.</p>
9    pub bot_alias: ::std::option::Option<::std::string::String>,
10    /// <p>The ID of the client application user.</p>
11    pub user_id: ::std::option::Option<::std::string::String>,
12    /// <p>The unique identifier for the session.</p>
13    pub session_id: ::std::option::Option<::std::string::String>,
14    _request_id: Option<String>,
15}
16impl DeleteSessionOutput {
17    /// <p>The name of the bot associated with the session data.</p>
18    pub fn bot_name(&self) -> ::std::option::Option<&str> {
19        self.bot_name.as_deref()
20    }
21    /// <p>The alias in use for the bot associated with the session data.</p>
22    pub fn bot_alias(&self) -> ::std::option::Option<&str> {
23        self.bot_alias.as_deref()
24    }
25    /// <p>The ID of the client application user.</p>
26    pub fn user_id(&self) -> ::std::option::Option<&str> {
27        self.user_id.as_deref()
28    }
29    /// <p>The unique identifier for the session.</p>
30    pub fn session_id(&self) -> ::std::option::Option<&str> {
31        self.session_id.as_deref()
32    }
33}
34impl ::aws_types::request_id::RequestId for DeleteSessionOutput {
35    fn request_id(&self) -> Option<&str> {
36        self._request_id.as_deref()
37    }
38}
39impl DeleteSessionOutput {
40    /// Creates a new builder-style object to manufacture [`DeleteSessionOutput`](crate::operation::delete_session::DeleteSessionOutput).
41    pub fn builder() -> crate::operation::delete_session::builders::DeleteSessionOutputBuilder {
42        crate::operation::delete_session::builders::DeleteSessionOutputBuilder::default()
43    }
44}
45
46/// A builder for [`DeleteSessionOutput`](crate::operation::delete_session::DeleteSessionOutput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct DeleteSessionOutputBuilder {
50    pub(crate) bot_name: ::std::option::Option<::std::string::String>,
51    pub(crate) bot_alias: ::std::option::Option<::std::string::String>,
52    pub(crate) user_id: ::std::option::Option<::std::string::String>,
53    pub(crate) session_id: ::std::option::Option<::std::string::String>,
54    _request_id: Option<String>,
55}
56impl DeleteSessionOutputBuilder {
57    /// <p>The name of the bot associated with the session data.</p>
58    pub fn bot_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
59        self.bot_name = ::std::option::Option::Some(input.into());
60        self
61    }
62    /// <p>The name of the bot associated with the session data.</p>
63    pub fn set_bot_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
64        self.bot_name = input;
65        self
66    }
67    /// <p>The name of the bot associated with the session data.</p>
68    pub fn get_bot_name(&self) -> &::std::option::Option<::std::string::String> {
69        &self.bot_name
70    }
71    /// <p>The alias in use for the bot associated with the session data.</p>
72    pub fn bot_alias(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
73        self.bot_alias = ::std::option::Option::Some(input.into());
74        self
75    }
76    /// <p>The alias in use for the bot associated with the session data.</p>
77    pub fn set_bot_alias(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78        self.bot_alias = input;
79        self
80    }
81    /// <p>The alias in use for the bot associated with the session data.</p>
82    pub fn get_bot_alias(&self) -> &::std::option::Option<::std::string::String> {
83        &self.bot_alias
84    }
85    /// <p>The ID of the client application user.</p>
86    pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
87        self.user_id = ::std::option::Option::Some(input.into());
88        self
89    }
90    /// <p>The ID of the client application user.</p>
91    pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92        self.user_id = input;
93        self
94    }
95    /// <p>The ID of the client application user.</p>
96    pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
97        &self.user_id
98    }
99    /// <p>The unique identifier for the session.</p>
100    pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
101        self.session_id = ::std::option::Option::Some(input.into());
102        self
103    }
104    /// <p>The unique identifier for the session.</p>
105    pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106        self.session_id = input;
107        self
108    }
109    /// <p>The unique identifier for the session.</p>
110    pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
111        &self.session_id
112    }
113    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
114        self._request_id = Some(request_id.into());
115        self
116    }
117
118    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
119        self._request_id = request_id;
120        self
121    }
122    /// Consumes the builder and constructs a [`DeleteSessionOutput`](crate::operation::delete_session::DeleteSessionOutput).
123    pub fn build(self) -> crate::operation::delete_session::DeleteSessionOutput {
124        crate::operation::delete_session::DeleteSessionOutput {
125            bot_name: self.bot_name,
126            bot_alias: self.bot_alias,
127            user_id: self.user_id,
128            session_id: self.session_id,
129            _request_id: self._request_id,
130        }
131    }
132}