/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// ConsulIngressConfigEntry represents the Consul Configuration Entry type for
/// an Ingress Gateway.
///
/// https://www.consul.io/docs/agent/config-entries/ingress-gateway#available-fields
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct ConsulIngressConfigEntry {
    /// TLS specifies a TLS configuration for the gateway.
    #[serde(rename = "TLS", skip_serializing_if = "Option::is_none")]
    pub tls: Option<super::ConsulGatewayTlsConfig>,

    /// Listeners specifies a list of listeners in the mesh for the
    /// gateway. Listeners are uniquely identified by their port number.
    #[serde(
        rename = "Listeners",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub listeners: Vec<super::ConsulIngressListener>,
}
