nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
#[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 UpdateOpsgenieIntegrationDetails {
    #[builder(into)]
    #[serde(rename = "apiKey")]
    api_key: String,
    #[serde(rename = "region")]
    region: super::OpsgenieRegion,
}
impl UpdateOpsgenieIntegrationDetails {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(api_key: impl Into<String>, region: super::OpsgenieRegion) -> Self {
        Self::builder().api_key(api_key).region(region).build()
    }
    #[inline]
    pub fn api_key(&self) -> &str {
        &*self.api_key
    }
    #[inline]
    pub fn region(&self) -> &super::OpsgenieRegion {
        &self.region
    }
}