use serde::{Deserialize, Serialize};

#[allow(unused_imports)]
use super::super::models::*;
#[allow(unused_imports)]
use super::*;

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DeleteBootVolumeRequest {
    /// The OCID of the boot volume.
    pub boot_volume_id: String,

    /// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub if_match: Option<String>,
}

/// Required fields for DeleteBootVolumeRequest
pub struct DeleteBootVolumeRequestRequired {
    /// The OCID of the boot volume.
    pub boot_volume_id: String,
}

impl DeleteBootVolumeRequest {
    /// Create a new DeleteBootVolumeRequest with required fields
    pub fn new(required: DeleteBootVolumeRequestRequired) -> Self {
        Self {
            boot_volume_id: required.boot_volume_id,

            if_match: None,
        }
    }

    /// Set boot_volume_id
    pub fn set_boot_volume_id(mut self, value: String) -> Self {
        self.boot_volume_id = value;
        self
    }

    /// Set if_match
    pub fn set_if_match(mut self, value: Option<String>) -> Self {
        self.if_match = value;
        self
    }

    /// Set if_match (unwraps Option)
    pub fn with_if_match(mut self, value: impl Into<String>) -> Self {
        self.if_match = Some(value.into());
        self
    }
}
