amazon_spapi/models/notifications/
sqs_resource.rs

1/*
2 * Selling Partner API for Notifications
3 *
4 * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more.  For more information, refer to the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SqsResource : The information required to create an Amazon Simple Queue Service (Amazon SQS) queue destination.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SqsResource {
17    /// The Amazon Resource Name (ARN) associated with the SQS queue.
18    #[serde(rename = "arn")]
19    pub arn: String,
20}
21
22impl SqsResource {
23    /// The information required to create an Amazon Simple Queue Service (Amazon SQS) queue destination.
24    pub fn new(arn: String) -> SqsResource {
25        SqsResource {
26            arn,
27        }
28    }
29}
30