amazon_spapi/models/notifications/
destination_resource_specification.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/// DestinationResourceSpecification : The information required to create a destination resource. Applications should use one resource type (sqs or eventBridge) per destination.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DestinationResourceSpecification {
17    #[serde(rename = "sqs", skip_serializing_if = "Option::is_none")]
18    pub sqs: Option<Box<models::notifications::SqsResource>>,
19    #[serde(rename = "eventBridge", skip_serializing_if = "Option::is_none")]
20    pub event_bridge: Option<Box<models::notifications::EventBridgeResourceSpecification>>,
21}
22
23impl DestinationResourceSpecification {
24    /// The information required to create a destination resource. Applications should use one resource type (sqs or eventBridge) per destination.
25    pub fn new() -> DestinationResourceSpecification {
26        DestinationResourceSpecification {
27            sqs: None,
28            event_bridge: None,
29        }
30    }
31}
32