aws_sdk_pinpointsmsvoicev2/operation/delete_pool/
_delete_pool_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 DeletePoolOutput {
6    /// <p>The Amazon Resource Name (ARN) of the pool that was deleted.</p>
7    pub pool_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The PoolId of the pool that was deleted.</p>
9    pub pool_id: ::std::option::Option<::std::string::String>,
10    /// <p>The current status of the pool.</p>
11    /// <ul>
12    /// <li>
13    /// <p>CREATING: The pool is currently being created and isn't yet available for use.</p></li>
14    /// <li>
15    /// <p>ACTIVE: The pool is active and available for use.</p></li>
16    /// <li>
17    /// <p>DELETING: The pool is being deleted.</p></li>
18    /// </ul>
19    pub status: ::std::option::Option<crate::types::PoolStatus>,
20    /// <p>The message type that was associated with the deleted pool.</p>
21    pub message_type: ::std::option::Option<crate::types::MessageType>,
22    /// <p>By default this is set to false. When set to true you can receive incoming text messages from your end recipients.</p>
23    pub two_way_enabled: bool,
24    /// <p>The Amazon Resource Name (ARN) of the TwoWayChannel.</p>
25    pub two_way_channel_arn: ::std::option::Option<::std::string::String>,
26    /// <p>An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.</p>
27    pub two_way_channel_role: ::std::option::Option<::std::string::String>,
28    /// <p>By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.</p>
29    pub self_managed_opt_outs_enabled: bool,
30    /// <p>The name of the OptOutList that was associated with the deleted pool.</p>
31    pub opt_out_list_name: ::std::option::Option<::std::string::String>,
32    /// <p>Indicates whether shared routes are enabled for the pool.</p>
33    pub shared_routes_enabled: bool,
34    /// <p>The time when the pool was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
35    pub created_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
36    _request_id: Option<String>,
37}
38impl DeletePoolOutput {
39    /// <p>The Amazon Resource Name (ARN) of the pool that was deleted.</p>
40    pub fn pool_arn(&self) -> ::std::option::Option<&str> {
41        self.pool_arn.as_deref()
42    }
43    /// <p>The PoolId of the pool that was deleted.</p>
44    pub fn pool_id(&self) -> ::std::option::Option<&str> {
45        self.pool_id.as_deref()
46    }
47    /// <p>The current status of the pool.</p>
48    /// <ul>
49    /// <li>
50    /// <p>CREATING: The pool is currently being created and isn't yet available for use.</p></li>
51    /// <li>
52    /// <p>ACTIVE: The pool is active and available for use.</p></li>
53    /// <li>
54    /// <p>DELETING: The pool is being deleted.</p></li>
55    /// </ul>
56    pub fn status(&self) -> ::std::option::Option<&crate::types::PoolStatus> {
57        self.status.as_ref()
58    }
59    /// <p>The message type that was associated with the deleted pool.</p>
60    pub fn message_type(&self) -> ::std::option::Option<&crate::types::MessageType> {
61        self.message_type.as_ref()
62    }
63    /// <p>By default this is set to false. When set to true you can receive incoming text messages from your end recipients.</p>
64    pub fn two_way_enabled(&self) -> bool {
65        self.two_way_enabled
66    }
67    /// <p>The Amazon Resource Name (ARN) of the TwoWayChannel.</p>
68    pub fn two_way_channel_arn(&self) -> ::std::option::Option<&str> {
69        self.two_way_channel_arn.as_deref()
70    }
71    /// <p>An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.</p>
72    pub fn two_way_channel_role(&self) -> ::std::option::Option<&str> {
73        self.two_way_channel_role.as_deref()
74    }
75    /// <p>By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.</p>
76    pub fn self_managed_opt_outs_enabled(&self) -> bool {
77        self.self_managed_opt_outs_enabled
78    }
79    /// <p>The name of the OptOutList that was associated with the deleted pool.</p>
80    pub fn opt_out_list_name(&self) -> ::std::option::Option<&str> {
81        self.opt_out_list_name.as_deref()
82    }
83    /// <p>Indicates whether shared routes are enabled for the pool.</p>
84    pub fn shared_routes_enabled(&self) -> bool {
85        self.shared_routes_enabled
86    }
87    /// <p>The time when the pool was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
88    pub fn created_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
89        self.created_timestamp.as_ref()
90    }
91}
92impl ::aws_types::request_id::RequestId for DeletePoolOutput {
93    fn request_id(&self) -> Option<&str> {
94        self._request_id.as_deref()
95    }
96}
97impl DeletePoolOutput {
98    /// Creates a new builder-style object to manufacture [`DeletePoolOutput`](crate::operation::delete_pool::DeletePoolOutput).
99    pub fn builder() -> crate::operation::delete_pool::builders::DeletePoolOutputBuilder {
100        crate::operation::delete_pool::builders::DeletePoolOutputBuilder::default()
101    }
102}
103
104/// A builder for [`DeletePoolOutput`](crate::operation::delete_pool::DeletePoolOutput).
105#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
106#[non_exhaustive]
107pub struct DeletePoolOutputBuilder {
108    pub(crate) pool_arn: ::std::option::Option<::std::string::String>,
109    pub(crate) pool_id: ::std::option::Option<::std::string::String>,
110    pub(crate) status: ::std::option::Option<crate::types::PoolStatus>,
111    pub(crate) message_type: ::std::option::Option<crate::types::MessageType>,
112    pub(crate) two_way_enabled: ::std::option::Option<bool>,
113    pub(crate) two_way_channel_arn: ::std::option::Option<::std::string::String>,
114    pub(crate) two_way_channel_role: ::std::option::Option<::std::string::String>,
115    pub(crate) self_managed_opt_outs_enabled: ::std::option::Option<bool>,
116    pub(crate) opt_out_list_name: ::std::option::Option<::std::string::String>,
117    pub(crate) shared_routes_enabled: ::std::option::Option<bool>,
118    pub(crate) created_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
119    _request_id: Option<String>,
120}
121impl DeletePoolOutputBuilder {
122    /// <p>The Amazon Resource Name (ARN) of the pool that was deleted.</p>
123    pub fn pool_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
124        self.pool_arn = ::std::option::Option::Some(input.into());
125        self
126    }
127    /// <p>The Amazon Resource Name (ARN) of the pool that was deleted.</p>
128    pub fn set_pool_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
129        self.pool_arn = input;
130        self
131    }
132    /// <p>The Amazon Resource Name (ARN) of the pool that was deleted.</p>
133    pub fn get_pool_arn(&self) -> &::std::option::Option<::std::string::String> {
134        &self.pool_arn
135    }
136    /// <p>The PoolId of the pool that was deleted.</p>
137    pub fn pool_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
138        self.pool_id = ::std::option::Option::Some(input.into());
139        self
140    }
141    /// <p>The PoolId of the pool that was deleted.</p>
142    pub fn set_pool_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
143        self.pool_id = input;
144        self
145    }
146    /// <p>The PoolId of the pool that was deleted.</p>
147    pub fn get_pool_id(&self) -> &::std::option::Option<::std::string::String> {
148        &self.pool_id
149    }
150    /// <p>The current status of the pool.</p>
151    /// <ul>
152    /// <li>
153    /// <p>CREATING: The pool is currently being created and isn't yet available for use.</p></li>
154    /// <li>
155    /// <p>ACTIVE: The pool is active and available for use.</p></li>
156    /// <li>
157    /// <p>DELETING: The pool is being deleted.</p></li>
158    /// </ul>
159    pub fn status(mut self, input: crate::types::PoolStatus) -> Self {
160        self.status = ::std::option::Option::Some(input);
161        self
162    }
163    /// <p>The current status of the pool.</p>
164    /// <ul>
165    /// <li>
166    /// <p>CREATING: The pool is currently being created and isn't yet available for use.</p></li>
167    /// <li>
168    /// <p>ACTIVE: The pool is active and available for use.</p></li>
169    /// <li>
170    /// <p>DELETING: The pool is being deleted.</p></li>
171    /// </ul>
172    pub fn set_status(mut self, input: ::std::option::Option<crate::types::PoolStatus>) -> Self {
173        self.status = input;
174        self
175    }
176    /// <p>The current status of the pool.</p>
177    /// <ul>
178    /// <li>
179    /// <p>CREATING: The pool is currently being created and isn't yet available for use.</p></li>
180    /// <li>
181    /// <p>ACTIVE: The pool is active and available for use.</p></li>
182    /// <li>
183    /// <p>DELETING: The pool is being deleted.</p></li>
184    /// </ul>
185    pub fn get_status(&self) -> &::std::option::Option<crate::types::PoolStatus> {
186        &self.status
187    }
188    /// <p>The message type that was associated with the deleted pool.</p>
189    pub fn message_type(mut self, input: crate::types::MessageType) -> Self {
190        self.message_type = ::std::option::Option::Some(input);
191        self
192    }
193    /// <p>The message type that was associated with the deleted pool.</p>
194    pub fn set_message_type(mut self, input: ::std::option::Option<crate::types::MessageType>) -> Self {
195        self.message_type = input;
196        self
197    }
198    /// <p>The message type that was associated with the deleted pool.</p>
199    pub fn get_message_type(&self) -> &::std::option::Option<crate::types::MessageType> {
200        &self.message_type
201    }
202    /// <p>By default this is set to false. When set to true you can receive incoming text messages from your end recipients.</p>
203    pub fn two_way_enabled(mut self, input: bool) -> Self {
204        self.two_way_enabled = ::std::option::Option::Some(input);
205        self
206    }
207    /// <p>By default this is set to false. When set to true you can receive incoming text messages from your end recipients.</p>
208    pub fn set_two_way_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
209        self.two_way_enabled = input;
210        self
211    }
212    /// <p>By default this is set to false. When set to true you can receive incoming text messages from your end recipients.</p>
213    pub fn get_two_way_enabled(&self) -> &::std::option::Option<bool> {
214        &self.two_way_enabled
215    }
216    /// <p>The Amazon Resource Name (ARN) of the TwoWayChannel.</p>
217    pub fn two_way_channel_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
218        self.two_way_channel_arn = ::std::option::Option::Some(input.into());
219        self
220    }
221    /// <p>The Amazon Resource Name (ARN) of the TwoWayChannel.</p>
222    pub fn set_two_way_channel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
223        self.two_way_channel_arn = input;
224        self
225    }
226    /// <p>The Amazon Resource Name (ARN) of the TwoWayChannel.</p>
227    pub fn get_two_way_channel_arn(&self) -> &::std::option::Option<::std::string::String> {
228        &self.two_way_channel_arn
229    }
230    /// <p>An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.</p>
231    pub fn two_way_channel_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
232        self.two_way_channel_role = ::std::option::Option::Some(input.into());
233        self
234    }
235    /// <p>An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.</p>
236    pub fn set_two_way_channel_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
237        self.two_way_channel_role = input;
238        self
239    }
240    /// <p>An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.</p>
241    pub fn get_two_way_channel_role(&self) -> &::std::option::Option<::std::string::String> {
242        &self.two_way_channel_role
243    }
244    /// <p>By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.</p>
245    pub fn self_managed_opt_outs_enabled(mut self, input: bool) -> Self {
246        self.self_managed_opt_outs_enabled = ::std::option::Option::Some(input);
247        self
248    }
249    /// <p>By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.</p>
250    pub fn set_self_managed_opt_outs_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
251        self.self_managed_opt_outs_enabled = input;
252        self
253    }
254    /// <p>By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.</p>
255    pub fn get_self_managed_opt_outs_enabled(&self) -> &::std::option::Option<bool> {
256        &self.self_managed_opt_outs_enabled
257    }
258    /// <p>The name of the OptOutList that was associated with the deleted pool.</p>
259    pub fn opt_out_list_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
260        self.opt_out_list_name = ::std::option::Option::Some(input.into());
261        self
262    }
263    /// <p>The name of the OptOutList that was associated with the deleted pool.</p>
264    pub fn set_opt_out_list_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
265        self.opt_out_list_name = input;
266        self
267    }
268    /// <p>The name of the OptOutList that was associated with the deleted pool.</p>
269    pub fn get_opt_out_list_name(&self) -> &::std::option::Option<::std::string::String> {
270        &self.opt_out_list_name
271    }
272    /// <p>Indicates whether shared routes are enabled for the pool.</p>
273    pub fn shared_routes_enabled(mut self, input: bool) -> Self {
274        self.shared_routes_enabled = ::std::option::Option::Some(input);
275        self
276    }
277    /// <p>Indicates whether shared routes are enabled for the pool.</p>
278    pub fn set_shared_routes_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
279        self.shared_routes_enabled = input;
280        self
281    }
282    /// <p>Indicates whether shared routes are enabled for the pool.</p>
283    pub fn get_shared_routes_enabled(&self) -> &::std::option::Option<bool> {
284        &self.shared_routes_enabled
285    }
286    /// <p>The time when the pool was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
287    pub fn created_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
288        self.created_timestamp = ::std::option::Option::Some(input);
289        self
290    }
291    /// <p>The time when the pool was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
292    pub fn set_created_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
293        self.created_timestamp = input;
294        self
295    }
296    /// <p>The time when the pool was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
297    pub fn get_created_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
298        &self.created_timestamp
299    }
300    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
301        self._request_id = Some(request_id.into());
302        self
303    }
304
305    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
306        self._request_id = request_id;
307        self
308    }
309    /// Consumes the builder and constructs a [`DeletePoolOutput`](crate::operation::delete_pool::DeletePoolOutput).
310    pub fn build(self) -> crate::operation::delete_pool::DeletePoolOutput {
311        crate::operation::delete_pool::DeletePoolOutput {
312            pool_arn: self.pool_arn,
313            pool_id: self.pool_id,
314            status: self.status,
315            message_type: self.message_type,
316            two_way_enabled: self.two_way_enabled.unwrap_or_default(),
317            two_way_channel_arn: self.two_way_channel_arn,
318            two_way_channel_role: self.two_way_channel_role,
319            self_managed_opt_outs_enabled: self.self_managed_opt_outs_enabled.unwrap_or_default(),
320            opt_out_list_name: self.opt_out_list_name,
321            shared_routes_enabled: self.shared_routes_enabled.unwrap_or_default(),
322            created_timestamp: self.created_timestamp,
323            _request_id: self._request_id,
324        }
325    }
326}