amazon_spapi/models/notifications/
aggregation_settings.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/// AggregationSettings : A container that holds all of the necessary properties to configure the aggregation of notifications.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AggregationSettings {
17    #[serde(rename = "aggregationTimePeriod")]
18    pub aggregation_time_period: models::notifications::AggregationTimePeriod,
19}
20
21impl AggregationSettings {
22    /// A container that holds all of the necessary properties to configure the aggregation of notifications.
23    pub fn new(aggregation_time_period: models::notifications::AggregationTimePeriod) -> AggregationSettings {
24        AggregationSettings {
25            aggregation_time_period,
26        }
27    }
28}
29