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

/// ChangeRrsetsProtectionRequest : Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/change_protection
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangeRrsetsProtectionRequest {
    /// Prevent the Resource from being changed.
    #[serde(rename = "change")]
    pub change: bool,
}

impl ChangeRrsetsProtectionRequest {
    /// Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/change_protection
    pub fn new(change: bool) -> ChangeRrsetsProtectionRequest {
        ChangeRrsetsProtectionRequest { change }
    }
}
