/*
 * 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.1
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

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

/// ConnectionLogContext : Additional context about the connection attempt
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConnectionLogContext {
    #[serde(rename = "isHeadlessMode", skip_serializing_if = "Option::is_none")]
    pub is_headless_mode: Option<bool>,
    #[serde(
        rename = "hasCustomRedirectUrl",
        skip_serializing_if = "Option::is_none"
    )]
    pub has_custom_redirect_url: Option<bool>,
    #[serde(rename = "isReconnection", skip_serializing_if = "Option::is_none")]
    pub is_reconnection: Option<bool>,
    /// Using bring-your-own-keys
    #[serde(rename = "isBYOK", skip_serializing_if = "Option::is_none")]
    pub is_byok: Option<bool>,
    #[serde(rename = "invitationToken", skip_serializing_if = "Option::is_none")]
    pub invitation_token: Option<String>,
    #[serde(rename = "connectToken", skip_serializing_if = "Option::is_none")]
    pub connect_token: Option<String>,
}

impl ConnectionLogContext {
    /// Additional context about the connection attempt
    pub fn new() -> ConnectionLogContext {
        ConnectionLogContext {
            is_headless_mode: None,
            has_custom_redirect_url: None,
            is_reconnection: None,
            is_byok: None,
            invitation_token: None,
            connect_token: None,
        }
    }
}
