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

/// ChangeLoadBalancerProtectionRequest : Request for POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/change_protection
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangeLoadBalancerProtectionRequest {
    /// If true, prevents the Load Balancer from being deleted.
    #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
    pub delete: Option<bool>,
}

impl ChangeLoadBalancerProtectionRequest {
    /// Request for POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/change_protection
    pub fn new() -> ChangeLoadBalancerProtectionRequest {
        ChangeLoadBalancerProtectionRequest { delete: None }
    }
}
