/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 0.4.0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// CreateVolumeResponse : Response to POST https://api.hetzner.cloud/v1/volumes



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateVolumeResponse {
    #[serde(rename = "volume")]
    pub volume: Box<crate::models::Volume>,
    #[serde(rename = "action")]
    pub action: Box<crate::models::Action>,
    #[serde(rename = "next_actions")]
    pub next_actions: Vec<crate::models::Action>,
}

impl CreateVolumeResponse {
    /// Response to POST https://api.hetzner.cloud/v1/volumes
    pub fn new(volume: crate::models::Volume, action: crate::models::Action, next_actions: Vec<crate::models::Action>) -> CreateVolumeResponse {
        CreateVolumeResponse {
            volume: Box::new(volume),
            action: Box::new(action),
            next_actions,
        }
    }
}


