#[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 SearchPropertyValuesRequest {
    #[builder(custom(type = super::SearchMetadataRequest, convert = Box::new))]
    #[serde(rename = "search")]
    search: Box<super::SearchMetadataRequest>,
    #[builder(into)]
    #[serde(rename = "propertyKey")]
    property_key: String,
}
impl SearchPropertyValuesRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        search: super::SearchMetadataRequest,
        property_key: impl Into<String>,
    ) -> Self {
        Self::builder().search(search).property_key(property_key).build()
    }
    #[inline]
    pub fn search(&self) -> &super::SearchMetadataRequest {
        &*self.search
    }
    #[inline]
    pub fn property_key(&self) -> &str {
        &*self.property_key
    }
}
