/*
 * 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};

/// ReplaceRrsetResponse : Response to PUT https://api.hetzner.cloud/v1/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplaceRrsetResponse {
    #[serde(rename = "rrset")]
    pub rrset: Box<models::ResourceRecordSet>,
}

impl ReplaceRrsetResponse {
    /// Response to PUT https://api.hetzner.cloud/v1/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}
    pub fn new(rrset: models::ResourceRecordSet) -> ReplaceRrsetResponse {
        ReplaceRrsetResponse {
            rrset: Box::new(rrset),
        }
    }
}
