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

use crate::models;
use serde::{Deserialize, Serialize};

/// ReplaceFloatingIpResponse : Response to PUT https://api.hetzner.cloud/v1/floating_ips/{id}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplaceFloatingIpResponse {
    #[serde(rename = "floating_ip")]
    pub floating_ip: Box<models::FloatingIp>,
}

impl ReplaceFloatingIpResponse {
    /// Response to PUT https://api.hetzner.cloud/v1/floating_ips/{id}
    pub fn new(floating_ip: models::FloatingIp) -> ReplaceFloatingIpResponse {
        ReplaceFloatingIpResponse {
            floating_ip: Box::new(floating_ip),
        }
    }
}
