/*
 * Tapis Notifications API
 *
 * The Tapis Notifications API provides for management of subscriptions and event publication
 *
 * The version of the OpenAPI document: 25Q4.0
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Notification {
    #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
    pub uuid: Option<String>,
    #[serde(rename = "tenant", skip_serializing_if = "Option::is_none")]
    pub tenant: Option<String>,
    #[serde(rename = "subscriptionName", skip_serializing_if = "Option::is_none")]
    pub subscription_name: Option<String>,
    #[serde(rename = "deliveryTarget", skip_serializing_if = "Option::is_none")]
    pub delivery_target: Option<Box<models::DeliveryTarget>>,
    #[serde(rename = "eventUuid", skip_serializing_if = "Option::is_none")]
    pub event_uuid: Option<String>,
    #[serde(rename = "event", skip_serializing_if = "Option::is_none")]
    pub event: Option<Box<models::Event>>,
    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
    pub created: Option<String>,
}

impl Notification {
    pub fn new() -> Notification {
        Notification {
            uuid: None,
            tenant: None,
            subscription_name: None,
            delivery_target: None,
            event_uuid: None,
            event: None,
            created: None,
        }
    }
}
