#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct Influx2ConnectionDetails {
    #[builder(into)]
    #[serde(rename = "host")]
    host: String,
    #[serde(rename = "port")]
    port: i32,
    #[builder(default, map(key(type = String, into), value(type = super::HeaderValue)))]
    #[serde(
        rename = "headers",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    headers: std::collections::BTreeMap<String, super::HeaderValue>,
    #[serde(rename = "org")]
    org: super::influx::OrgId,
    #[serde(rename = "tokenSecretRid")]
    token_secret_rid: super::SecretRid,
}
impl Influx2ConnectionDetails {
    #[inline]
    pub fn host(&self) -> &str {
        &*self.host
    }
    #[inline]
    pub fn port(&self) -> i32 {
        self.port
    }
    /// A map of header name to value
    #[inline]
    pub fn headers(&self) -> &std::collections::BTreeMap<String, super::HeaderValue> {
        &self.headers
    }
    #[inline]
    pub fn org(&self) -> &super::influx::OrgId {
        &self.org
    }
    /// Secret Rid of token secret stored in Secrets Service.
    #[inline]
    pub fn token_secret_rid(&self) -> &super::SecretRid {
        &self.token_secret_rid
    }
}
