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

/// ChangeTypeOfLoadBalancerRequest : Request for POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/change_type
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangeTypeOfLoadBalancerRequest {
    /// ID or name of Load Balancer type the Load Balancer should migrate to.
    #[serde(rename = "load_balancer_type")]
    pub load_balancer_type: String,
}

impl ChangeTypeOfLoadBalancerRequest {
    /// Request for POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/change_type
    pub fn new(load_balancer_type: String) -> ChangeTypeOfLoadBalancerRequest {
        ChangeTypeOfLoadBalancerRequest { load_balancer_type }
    }
}
