aws_sdk_sns/operation/subscribe/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::subscribe::_subscribe_output::SubscribeOutputBuilder;
3
4pub use crate::operation::subscribe::_subscribe_input::SubscribeInputBuilder;
5
6impl crate::operation::subscribe::builders::SubscribeInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::subscribe::SubscribeOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::subscribe::SubscribeError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.subscribe();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `Subscribe`.
24///
25/// <p>Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is HTTP/S or email, or if the endpoint and the topic are not in the same Amazon Web Services account, the endpoint owner must run the <code>ConfirmSubscription</code> action to confirm the subscription.</p>
26/// <p>You call the <code>ConfirmSubscription</code> action with the token from the subscription response. Confirmation tokens are valid for two days.</p>
27/// <p>This action is throttled at 100 transactions per second (TPS).</p>
28#[derive(::std::clone::Clone, ::std::fmt::Debug)]
29pub struct SubscribeFluentBuilder {
30    handle: ::std::sync::Arc<crate::client::Handle>,
31    inner: crate::operation::subscribe::builders::SubscribeInputBuilder,
32    config_override: ::std::option::Option<crate::config::Builder>,
33}
34impl crate::client::customize::internal::CustomizableSend<crate::operation::subscribe::SubscribeOutput, crate::operation::subscribe::SubscribeError>
35    for SubscribeFluentBuilder
36{
37    fn send(
38        self,
39        config_override: crate::config::Builder,
40    ) -> crate::client::customize::internal::BoxFuture<
41        crate::client::customize::internal::SendResult<crate::operation::subscribe::SubscribeOutput, crate::operation::subscribe::SubscribeError>,
42    > {
43        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
44    }
45}
46impl SubscribeFluentBuilder {
47    /// Creates a new `SubscribeFluentBuilder`.
48    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
49        Self {
50            handle,
51            inner: ::std::default::Default::default(),
52            config_override: ::std::option::Option::None,
53        }
54    }
55    /// Access the Subscribe as a reference.
56    pub fn as_input(&self) -> &crate::operation::subscribe::builders::SubscribeInputBuilder {
57        &self.inner
58    }
59    /// Sends the request and returns the response.
60    ///
61    /// If an error occurs, an `SdkError` will be returned with additional details that
62    /// can be matched against.
63    ///
64    /// By default, any retryable failures will be retried twice. Retry behavior
65    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
66    /// set when configuring the client.
67    pub async fn send(
68        self,
69    ) -> ::std::result::Result<
70        crate::operation::subscribe::SubscribeOutput,
71        ::aws_smithy_runtime_api::client::result::SdkError<
72            crate::operation::subscribe::SubscribeError,
73            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
74        >,
75    > {
76        let input = self
77            .inner
78            .build()
79            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
80        let runtime_plugins = crate::operation::subscribe::Subscribe::operation_runtime_plugins(
81            self.handle.runtime_plugins.clone(),
82            &self.handle.conf,
83            self.config_override,
84        );
85        crate::operation::subscribe::Subscribe::orchestrate(&runtime_plugins, input).await
86    }
87
88    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
89    pub fn customize(
90        self,
91    ) -> crate::client::customize::CustomizableOperation<
92        crate::operation::subscribe::SubscribeOutput,
93        crate::operation::subscribe::SubscribeError,
94        Self,
95    > {
96        crate::client::customize::CustomizableOperation::new(self)
97    }
98    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
99        self.set_config_override(::std::option::Option::Some(config_override.into()));
100        self
101    }
102
103    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
104        self.config_override = config_override;
105        self
106    }
107    /// <p>The ARN of the topic you want to subscribe to.</p>
108    pub fn topic_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
109        self.inner = self.inner.topic_arn(input.into());
110        self
111    }
112    /// <p>The ARN of the topic you want to subscribe to.</p>
113    pub fn set_topic_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
114        self.inner = self.inner.set_topic_arn(input);
115        self
116    }
117    /// <p>The ARN of the topic you want to subscribe to.</p>
118    pub fn get_topic_arn(&self) -> &::std::option::Option<::std::string::String> {
119        self.inner.get_topic_arn()
120    }
121    /// <p>The protocol that you want to use. Supported protocols include:</p>
122    /// <ul>
123    /// <li>
124    /// <p><code>http</code> – delivery of JSON-encoded message via HTTP POST</p></li>
125    /// <li>
126    /// <p><code>https</code> – delivery of JSON-encoded message via HTTPS POST</p></li>
127    /// <li>
128    /// <p><code>email</code> – delivery of message via SMTP</p></li>
129    /// <li>
130    /// <p><code>email-json</code> – delivery of JSON-encoded message via SMTP</p></li>
131    /// <li>
132    /// <p><code>sms</code> – delivery of message via SMS</p></li>
133    /// <li>
134    /// <p><code>sqs</code> – delivery of JSON-encoded message to an Amazon SQS queue</p></li>
135    /// <li>
136    /// <p><code>application</code> – delivery of JSON-encoded message to an EndpointArn for a mobile app and device</p></li>
137    /// <li>
138    /// <p><code>lambda</code> – delivery of JSON-encoded message to an Lambda function</p></li>
139    /// <li>
140    /// <p><code>firehose</code> – delivery of JSON-encoded message to an Amazon Data Firehose delivery stream.</p></li>
141    /// </ul>
142    pub fn protocol(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
143        self.inner = self.inner.protocol(input.into());
144        self
145    }
146    /// <p>The protocol that you want to use. Supported protocols include:</p>
147    /// <ul>
148    /// <li>
149    /// <p><code>http</code> – delivery of JSON-encoded message via HTTP POST</p></li>
150    /// <li>
151    /// <p><code>https</code> – delivery of JSON-encoded message via HTTPS POST</p></li>
152    /// <li>
153    /// <p><code>email</code> – delivery of message via SMTP</p></li>
154    /// <li>
155    /// <p><code>email-json</code> – delivery of JSON-encoded message via SMTP</p></li>
156    /// <li>
157    /// <p><code>sms</code> – delivery of message via SMS</p></li>
158    /// <li>
159    /// <p><code>sqs</code> – delivery of JSON-encoded message to an Amazon SQS queue</p></li>
160    /// <li>
161    /// <p><code>application</code> – delivery of JSON-encoded message to an EndpointArn for a mobile app and device</p></li>
162    /// <li>
163    /// <p><code>lambda</code> – delivery of JSON-encoded message to an Lambda function</p></li>
164    /// <li>
165    /// <p><code>firehose</code> – delivery of JSON-encoded message to an Amazon Data Firehose delivery stream.</p></li>
166    /// </ul>
167    pub fn set_protocol(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
168        self.inner = self.inner.set_protocol(input);
169        self
170    }
171    /// <p>The protocol that you want to use. Supported protocols include:</p>
172    /// <ul>
173    /// <li>
174    /// <p><code>http</code> – delivery of JSON-encoded message via HTTP POST</p></li>
175    /// <li>
176    /// <p><code>https</code> – delivery of JSON-encoded message via HTTPS POST</p></li>
177    /// <li>
178    /// <p><code>email</code> – delivery of message via SMTP</p></li>
179    /// <li>
180    /// <p><code>email-json</code> – delivery of JSON-encoded message via SMTP</p></li>
181    /// <li>
182    /// <p><code>sms</code> – delivery of message via SMS</p></li>
183    /// <li>
184    /// <p><code>sqs</code> – delivery of JSON-encoded message to an Amazon SQS queue</p></li>
185    /// <li>
186    /// <p><code>application</code> – delivery of JSON-encoded message to an EndpointArn for a mobile app and device</p></li>
187    /// <li>
188    /// <p><code>lambda</code> – delivery of JSON-encoded message to an Lambda function</p></li>
189    /// <li>
190    /// <p><code>firehose</code> – delivery of JSON-encoded message to an Amazon Data Firehose delivery stream.</p></li>
191    /// </ul>
192    pub fn get_protocol(&self) -> &::std::option::Option<::std::string::String> {
193        self.inner.get_protocol()
194    }
195    /// <p>The endpoint that you want to receive notifications. Endpoints vary by protocol:</p>
196    /// <ul>
197    /// <li>
198    /// <p>For the <code>http</code> protocol, the (public) endpoint is a URL beginning with <code>http://</code>.</p></li>
199    /// <li>
200    /// <p>For the <code>https</code> protocol, the (public) endpoint is a URL beginning with <code>https://</code>.</p></li>
201    /// <li>
202    /// <p>For the <code>email</code> protocol, the endpoint is an email address.</p></li>
203    /// <li>
204    /// <p>For the <code>email-json</code> protocol, the endpoint is an email address.</p></li>
205    /// <li>
206    /// <p>For the <code>sms</code> protocol, the endpoint is a phone number of an SMS-enabled device.</p></li>
207    /// <li>
208    /// <p>For the <code>sqs</code> protocol, the endpoint is the ARN of an Amazon SQS queue.</p></li>
209    /// <li>
210    /// <p>For the <code>application</code> protocol, the endpoint is the EndpointArn of a mobile app and device.</p></li>
211    /// <li>
212    /// <p>For the <code>lambda</code> protocol, the endpoint is the ARN of an Lambda function.</p></li>
213    /// <li>
214    /// <p>For the <code>firehose</code> protocol, the endpoint is the ARN of an Amazon Data Firehose delivery stream.</p></li>
215    /// </ul>
216    pub fn endpoint(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
217        self.inner = self.inner.endpoint(input.into());
218        self
219    }
220    /// <p>The endpoint that you want to receive notifications. Endpoints vary by protocol:</p>
221    /// <ul>
222    /// <li>
223    /// <p>For the <code>http</code> protocol, the (public) endpoint is a URL beginning with <code>http://</code>.</p></li>
224    /// <li>
225    /// <p>For the <code>https</code> protocol, the (public) endpoint is a URL beginning with <code>https://</code>.</p></li>
226    /// <li>
227    /// <p>For the <code>email</code> protocol, the endpoint is an email address.</p></li>
228    /// <li>
229    /// <p>For the <code>email-json</code> protocol, the endpoint is an email address.</p></li>
230    /// <li>
231    /// <p>For the <code>sms</code> protocol, the endpoint is a phone number of an SMS-enabled device.</p></li>
232    /// <li>
233    /// <p>For the <code>sqs</code> protocol, the endpoint is the ARN of an Amazon SQS queue.</p></li>
234    /// <li>
235    /// <p>For the <code>application</code> protocol, the endpoint is the EndpointArn of a mobile app and device.</p></li>
236    /// <li>
237    /// <p>For the <code>lambda</code> protocol, the endpoint is the ARN of an Lambda function.</p></li>
238    /// <li>
239    /// <p>For the <code>firehose</code> protocol, the endpoint is the ARN of an Amazon Data Firehose delivery stream.</p></li>
240    /// </ul>
241    pub fn set_endpoint(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
242        self.inner = self.inner.set_endpoint(input);
243        self
244    }
245    /// <p>The endpoint that you want to receive notifications. Endpoints vary by protocol:</p>
246    /// <ul>
247    /// <li>
248    /// <p>For the <code>http</code> protocol, the (public) endpoint is a URL beginning with <code>http://</code>.</p></li>
249    /// <li>
250    /// <p>For the <code>https</code> protocol, the (public) endpoint is a URL beginning with <code>https://</code>.</p></li>
251    /// <li>
252    /// <p>For the <code>email</code> protocol, the endpoint is an email address.</p></li>
253    /// <li>
254    /// <p>For the <code>email-json</code> protocol, the endpoint is an email address.</p></li>
255    /// <li>
256    /// <p>For the <code>sms</code> protocol, the endpoint is a phone number of an SMS-enabled device.</p></li>
257    /// <li>
258    /// <p>For the <code>sqs</code> protocol, the endpoint is the ARN of an Amazon SQS queue.</p></li>
259    /// <li>
260    /// <p>For the <code>application</code> protocol, the endpoint is the EndpointArn of a mobile app and device.</p></li>
261    /// <li>
262    /// <p>For the <code>lambda</code> protocol, the endpoint is the ARN of an Lambda function.</p></li>
263    /// <li>
264    /// <p>For the <code>firehose</code> protocol, the endpoint is the ARN of an Amazon Data Firehose delivery stream.</p></li>
265    /// </ul>
266    pub fn get_endpoint(&self) -> &::std::option::Option<::std::string::String> {
267        self.inner.get_endpoint()
268    }
269    ///
270    /// Adds a key-value pair to `Attributes`.
271    ///
272    /// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
273    ///
274    /// <p>A map of attributes with their corresponding values.</p>
275    /// <p>The following lists the names, descriptions, and values of the special request parameters that the <code>Subscribe</code> action uses:</p>
276    /// <ul>
277    /// <li>
278    /// <p><code>DeliveryPolicy</code> – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints.</p></li>
279    /// <li>
280    /// <p><code>FilterPolicy</code> – The simple JSON object that lets your subscriber receive only a subset of messages, rather than receiving every message published to the topic.</p></li>
281    /// <li>
282    /// <p><code>FilterPolicyScope</code> – This attribute lets you choose the filtering scope by using one of the following string value types:</p>
283    /// <ul>
284    /// <li>
285    /// <p><code>MessageAttributes</code> (default) – The filter is applied on the message attributes.</p></li>
286    /// <li>
287    /// <p><code>MessageBody</code> – The filter is applied on the message body.</p></li>
288    /// </ul></li>
289    /// <li>
290    /// <p><code>RawMessageDelivery</code> – When set to <code>true</code>, enables raw message delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is otherwise created for Amazon SNS metadata.</p></li>
291    /// <li>
292    /// <p><code>RedrivePolicy</code> – When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing.</p></li>
293    /// </ul>
294    /// <p>The following attribute applies only to Amazon Data Firehose delivery stream subscriptions:</p>
295    /// <ul>
296    /// <li>
297    /// <p><code>SubscriptionRoleArn</code> – The ARN of the IAM role that has the following:</p>
298    /// <ul>
299    /// <li>
300    /// <p>Permission to write to the Firehose delivery stream</p></li>
301    /// <li>
302    /// <p>Amazon SNS listed as a trusted entity</p></li>
303    /// </ul>
304    /// <p>Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html">Fanout to Firehose delivery streams</a> in the <i>Amazon SNS Developer Guide</i>.</p></li>
305    /// </ul>
306    /// <p>The following attributes apply only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html">FIFO topics</a>:</p>
307    /// <ul>
308    /// <li>
309    /// <p><code>ReplayPolicy</code> – Adds or updates an inline policy document for a subscription to replay messages stored in the specified Amazon SNS topic.</p></li>
310    /// <li>
311    /// <p><code>ReplayStatus</code> – Retrieves the status of the subscription message replay, which can be one of the following:</p>
312    /// <ul>
313    /// <li>
314    /// <p><code>Completed</code> – The replay has successfully redelivered all messages, and is now delivering newly published messages. If an ending point was specified in the <code>ReplayPolicy</code> then the subscription will no longer receive newly published messages.</p></li>
315    /// <li>
316    /// <p><code>In progress</code> – The replay is currently replaying the selected messages.</p></li>
317    /// <li>
318    /// <p><code>Failed</code> – The replay was unable to complete.</p></li>
319    /// <li>
320    /// <p><code>Pending</code> – The default state while the replay initiates.</p></li>
321    /// </ul></li>
322    /// </ul>
323    pub fn attributes(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
324        self.inner = self.inner.attributes(k.into(), v.into());
325        self
326    }
327    /// <p>A map of attributes with their corresponding values.</p>
328    /// <p>The following lists the names, descriptions, and values of the special request parameters that the <code>Subscribe</code> action uses:</p>
329    /// <ul>
330    /// <li>
331    /// <p><code>DeliveryPolicy</code> – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints.</p></li>
332    /// <li>
333    /// <p><code>FilterPolicy</code> – The simple JSON object that lets your subscriber receive only a subset of messages, rather than receiving every message published to the topic.</p></li>
334    /// <li>
335    /// <p><code>FilterPolicyScope</code> – This attribute lets you choose the filtering scope by using one of the following string value types:</p>
336    /// <ul>
337    /// <li>
338    /// <p><code>MessageAttributes</code> (default) – The filter is applied on the message attributes.</p></li>
339    /// <li>
340    /// <p><code>MessageBody</code> – The filter is applied on the message body.</p></li>
341    /// </ul></li>
342    /// <li>
343    /// <p><code>RawMessageDelivery</code> – When set to <code>true</code>, enables raw message delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is otherwise created for Amazon SNS metadata.</p></li>
344    /// <li>
345    /// <p><code>RedrivePolicy</code> – When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing.</p></li>
346    /// </ul>
347    /// <p>The following attribute applies only to Amazon Data Firehose delivery stream subscriptions:</p>
348    /// <ul>
349    /// <li>
350    /// <p><code>SubscriptionRoleArn</code> – The ARN of the IAM role that has the following:</p>
351    /// <ul>
352    /// <li>
353    /// <p>Permission to write to the Firehose delivery stream</p></li>
354    /// <li>
355    /// <p>Amazon SNS listed as a trusted entity</p></li>
356    /// </ul>
357    /// <p>Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html">Fanout to Firehose delivery streams</a> in the <i>Amazon SNS Developer Guide</i>.</p></li>
358    /// </ul>
359    /// <p>The following attributes apply only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html">FIFO topics</a>:</p>
360    /// <ul>
361    /// <li>
362    /// <p><code>ReplayPolicy</code> – Adds or updates an inline policy document for a subscription to replay messages stored in the specified Amazon SNS topic.</p></li>
363    /// <li>
364    /// <p><code>ReplayStatus</code> – Retrieves the status of the subscription message replay, which can be one of the following:</p>
365    /// <ul>
366    /// <li>
367    /// <p><code>Completed</code> – The replay has successfully redelivered all messages, and is now delivering newly published messages. If an ending point was specified in the <code>ReplayPolicy</code> then the subscription will no longer receive newly published messages.</p></li>
368    /// <li>
369    /// <p><code>In progress</code> – The replay is currently replaying the selected messages.</p></li>
370    /// <li>
371    /// <p><code>Failed</code> – The replay was unable to complete.</p></li>
372    /// <li>
373    /// <p><code>Pending</code> – The default state while the replay initiates.</p></li>
374    /// </ul></li>
375    /// </ul>
376    pub fn set_attributes(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
377        self.inner = self.inner.set_attributes(input);
378        self
379    }
380    /// <p>A map of attributes with their corresponding values.</p>
381    /// <p>The following lists the names, descriptions, and values of the special request parameters that the <code>Subscribe</code> action uses:</p>
382    /// <ul>
383    /// <li>
384    /// <p><code>DeliveryPolicy</code> – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints.</p></li>
385    /// <li>
386    /// <p><code>FilterPolicy</code> – The simple JSON object that lets your subscriber receive only a subset of messages, rather than receiving every message published to the topic.</p></li>
387    /// <li>
388    /// <p><code>FilterPolicyScope</code> – This attribute lets you choose the filtering scope by using one of the following string value types:</p>
389    /// <ul>
390    /// <li>
391    /// <p><code>MessageAttributes</code> (default) – The filter is applied on the message attributes.</p></li>
392    /// <li>
393    /// <p><code>MessageBody</code> – The filter is applied on the message body.</p></li>
394    /// </ul></li>
395    /// <li>
396    /// <p><code>RawMessageDelivery</code> – When set to <code>true</code>, enables raw message delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is otherwise created for Amazon SNS metadata.</p></li>
397    /// <li>
398    /// <p><code>RedrivePolicy</code> – When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing.</p></li>
399    /// </ul>
400    /// <p>The following attribute applies only to Amazon Data Firehose delivery stream subscriptions:</p>
401    /// <ul>
402    /// <li>
403    /// <p><code>SubscriptionRoleArn</code> – The ARN of the IAM role that has the following:</p>
404    /// <ul>
405    /// <li>
406    /// <p>Permission to write to the Firehose delivery stream</p></li>
407    /// <li>
408    /// <p>Amazon SNS listed as a trusted entity</p></li>
409    /// </ul>
410    /// <p>Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html">Fanout to Firehose delivery streams</a> in the <i>Amazon SNS Developer Guide</i>.</p></li>
411    /// </ul>
412    /// <p>The following attributes apply only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html">FIFO topics</a>:</p>
413    /// <ul>
414    /// <li>
415    /// <p><code>ReplayPolicy</code> – Adds or updates an inline policy document for a subscription to replay messages stored in the specified Amazon SNS topic.</p></li>
416    /// <li>
417    /// <p><code>ReplayStatus</code> – Retrieves the status of the subscription message replay, which can be one of the following:</p>
418    /// <ul>
419    /// <li>
420    /// <p><code>Completed</code> – The replay has successfully redelivered all messages, and is now delivering newly published messages. If an ending point was specified in the <code>ReplayPolicy</code> then the subscription will no longer receive newly published messages.</p></li>
421    /// <li>
422    /// <p><code>In progress</code> – The replay is currently replaying the selected messages.</p></li>
423    /// <li>
424    /// <p><code>Failed</code> – The replay was unable to complete.</p></li>
425    /// <li>
426    /// <p><code>Pending</code> – The default state while the replay initiates.</p></li>
427    /// </ul></li>
428    /// </ul>
429    pub fn get_attributes(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
430        self.inner.get_attributes()
431    }
432    /// <p>Sets whether the response from the <code>Subscribe</code> request includes the subscription ARN, even if the subscription is not yet confirmed.</p>
433    /// <p>If you set this parameter to <code>true</code>, the response includes the ARN in all cases, even if the subscription is not yet confirmed. In addition to the ARN for confirmed subscriptions, the response also includes the <code>pending subscription</code> ARN value for subscriptions that aren't yet confirmed. A subscription becomes confirmed when the subscriber calls the <code>ConfirmSubscription</code> action with a confirmation token.</p>
434    /// <p></p>
435    /// <p>The default value is <code>false</code>.</p>
436    pub fn return_subscription_arn(mut self, input: bool) -> Self {
437        self.inner = self.inner.return_subscription_arn(input);
438        self
439    }
440    /// <p>Sets whether the response from the <code>Subscribe</code> request includes the subscription ARN, even if the subscription is not yet confirmed.</p>
441    /// <p>If you set this parameter to <code>true</code>, the response includes the ARN in all cases, even if the subscription is not yet confirmed. In addition to the ARN for confirmed subscriptions, the response also includes the <code>pending subscription</code> ARN value for subscriptions that aren't yet confirmed. A subscription becomes confirmed when the subscriber calls the <code>ConfirmSubscription</code> action with a confirmation token.</p>
442    /// <p></p>
443    /// <p>The default value is <code>false</code>.</p>
444    pub fn set_return_subscription_arn(mut self, input: ::std::option::Option<bool>) -> Self {
445        self.inner = self.inner.set_return_subscription_arn(input);
446        self
447    }
448    /// <p>Sets whether the response from the <code>Subscribe</code> request includes the subscription ARN, even if the subscription is not yet confirmed.</p>
449    /// <p>If you set this parameter to <code>true</code>, the response includes the ARN in all cases, even if the subscription is not yet confirmed. In addition to the ARN for confirmed subscriptions, the response also includes the <code>pending subscription</code> ARN value for subscriptions that aren't yet confirmed. A subscription becomes confirmed when the subscriber calls the <code>ConfirmSubscription</code> action with a confirmation token.</p>
450    /// <p></p>
451    /// <p>The default value is <code>false</code>.</p>
452    pub fn get_return_subscription_arn(&self) -> &::std::option::Option<bool> {
453        self.inner.get_return_subscription_arn()
454    }
455}