amazon_spapi/models/notifications/create_destination_request.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/// CreateDestinationRequest : The request schema for the `createDestination` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateDestinationRequest {
17 #[serde(rename = "resourceSpecification")]
18 pub resource_specification: Box<models::notifications::DestinationResourceSpecification>,
19 /// A developer-defined name to help identify this destination.
20 #[serde(rename = "name")]
21 pub name: String,
22}
23
24impl CreateDestinationRequest {
25 /// The request schema for the `createDestination` operation.
26 pub fn new(resource_specification: models::notifications::DestinationResourceSpecification, name: String) -> CreateDestinationRequest {
27 CreateDestinationRequest {
28 resource_specification: Box::new(resource_specification),
29 name,
30 }
31 }
32}
33