/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * 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 TestSmtpRequestSmtp {
    #[serde(rename = "host")]
    pub host: String,
    #[serde(rename = "username")]
    pub username: String,
    #[serde(rename = "password")]
    pub password: String,
    #[serde(rename = "port")]
    pub port: i32,
    #[serde(rename = "from")]
    pub from: String,
    #[serde(rename = "tls_implicit")]
    pub tls_implicit: bool,
    #[serde(rename = "disable_tls")]
    pub disable_tls: bool,
}

impl TestSmtpRequestSmtp {
    pub fn new(host: String, username: String, password: String, port: i32, from: String, tls_implicit: bool, disable_tls: bool) -> TestSmtpRequestSmtp {
        TestSmtpRequestSmtp {
            host,
            username,
            password,
            port,
            from,
            tls_implicit,
            disable_tls,
        }
    }
}

