/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SetCaptureConfigRequest {
    #[serde(rename = "trigger_kind")]
    pub trigger_kind: models::CaptureTriggerKind,
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "is_flow")]
    pub is_flow: bool,
    #[serde(rename = "trigger_config", skip_serializing_if = "Option::is_none")]
    pub trigger_config: Option<serde_json::Value>,
}

impl SetCaptureConfigRequest {
    pub fn new(trigger_kind: models::CaptureTriggerKind, path: String, is_flow: bool) -> SetCaptureConfigRequest {
        SetCaptureConfigRequest {
            trigger_kind,
            path,
            is_flow,
            trigger_config: None,
        }
    }
}

