#[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 SetFavoritesListRequest {
    #[builder(default, list(item(type = super::FavoriteResource)))]
    #[serde(rename = "resources", skip_serializing_if = "Vec::is_empty", default)]
    resources: Vec<super::FavoriteResource>,
}
impl SetFavoritesListRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The resources to set as the user's favorites. Note that the provided list will overwrite
    /// all the user's previous favorites.
    #[inline]
    pub fn resources(&self) -> &[super::FavoriteResource] {
        &*self.resources
    }
}
