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

/// ChangeZonesPrimaryNameserversRequest : Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/actions/change_primary_nameservers
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangeZonesPrimaryNameserversRequest {
    /// Primary nameservers of the Zone.
    #[serde(rename = "primary_nameservers")]
    pub primary_nameservers: Vec<models::Nameserver>,
}

impl ChangeZonesPrimaryNameserversRequest {
    /// Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/actions/change_primary_nameservers
    pub fn new(
        primary_nameservers: Vec<models::Nameserver>,
    ) -> ChangeZonesPrimaryNameserversRequest {
        ChangeZonesPrimaryNameserversRequest {
            primary_nameservers,
        }
    }
}
