/*
 * Tapis Applications API
 *
 * The Tapis Applications API provides for management of Tapis applications including permissions.
 *
 * The version of the OpenAPI document: 26Q1.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 NotifDeliveryTarget {
    #[serde(rename = "deliveryMethod")]
    pub delivery_method: models::NotifDeliveryMethod,
    #[serde(rename = "deliveryAddress")]
    pub delivery_address: String,
}

impl NotifDeliveryTarget {
    pub fn new(
        delivery_method: models::NotifDeliveryMethod,
        delivery_address: String,
    ) -> NotifDeliveryTarget {
        NotifDeliveryTarget {
            delivery_method,
            delivery_address,
        }
    }
}
