#[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 TimescaleConnectionDetails {
    #[builder(into)]
    #[serde(rename = "database")]
    database: String,
    #[builder(into)]
    #[serde(rename = "host")]
    host: String,
    #[serde(rename = "port")]
    port: i32,
    #[builder(into)]
    #[serde(rename = "username")]
    username: String,
    #[serde(rename = "passwordSecretRid")]
    password_secret_rid: super::SecretRid,
}
impl TimescaleConnectionDetails {
    #[inline]
    pub fn database(&self) -> &str {
        &*self.database
    }
    #[inline]
    pub fn host(&self) -> &str {
        &*self.host
    }
    #[inline]
    pub fn port(&self) -> i32 {
        self.port
    }
    /// This is also the reference to the secret containing the password
    #[inline]
    pub fn username(&self) -> &str {
        &*self.username
    }
    /// Secret Rid of password secret stored in Secrets Service.
    #[inline]
    pub fn password_secret_rid(&self) -> &super::SecretRid {
        &self.password_secret_rid
    }
}
