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

/// DeleteServiceRequest : Request for POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/delete_service
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeleteServiceRequest {
    /// The listen port of the service you want to delete.
    #[serde(rename = "listen_port")]
    pub listen_port: i32,
}

impl DeleteServiceRequest {
    /// Request for POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/delete_service
    pub fn new(listen_port: i32) -> DeleteServiceRequest {
        DeleteServiceRequest { listen_port }
    }
}
