/* Code generated by Azure.Iot.Operations.ProtocolCompilerLib v1.0.0.0; DO NOT EDIT. */
#![allow(unused_imports)]

use std::collections::HashMap;

use chrono::{DateTime, Utc};
use derive_builder::Builder;
use iso8601_duration::Duration;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use super::super::common_types::{b64::Bytes, date_only::Date, decimal::Decimal, time_only::Time};
use super::authentication_schema::AuthenticationSchema;
use super::trust_settings_schema::TrustSettingsSchema;

#[derive(Serialize, Deserialize, Debug, Clone, Builder)]
pub struct InboundSchemaMapValueSchema {
    /// Stringified JSON that contains connectivity type specific further configuration (e.g. OPC UA, ONVIF).
    #[serde(rename = "additionalConfiguration")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub additional_configuration: Option<String>,

    /// The endpoint address & port. This can be either an IP address (e.g., 192.168.1.1) or a fully qualified domain name (FQDN, e.g., server.example.com).
    pub address: String,

    /// Defines the client authentication mechanism to the server.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub authentication: Option<AuthenticationSchema>,

    /// Type of connection endpoint.
    #[serde(rename = "endpointType")]
    pub endpoint_type: String,

    /// Defines server trust settings for the endpoint.
    #[serde(rename = "trustSettings")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub trust_settings: Option<TrustSettingsSchema>,

    /// Version associated with device endpoint.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub version: Option<String>,
}
