/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateBroadcastRequest {
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<Box<models::UpdateBroadcastRequestMessage>>,
    #[serde(rename = "template", skip_serializing_if = "Option::is_none")]
    pub template: Option<Box<models::UpdateBroadcastRequestTemplate>>,
    /// Recipient segment filters (tags, channels, subscription state).
    #[serde(rename = "segmentFilters", skip_serializing_if = "Option::is_none")]
    pub segment_filters: Option<serde_json::Value>,
}

impl UpdateBroadcastRequest {
    pub fn new() -> UpdateBroadcastRequest {
        UpdateBroadcastRequest {
            name: None,
            description: None,
            message: None,
            template: None,
            segment_filters: None,
        }
    }
}
