use serde::{Deserialize, Serialize}; /*
                                      * Compute Engine API
                                      *
                                      * Creates and runs virtual machines on Google Cloud Platform.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::compute_v1::models;

/// ConnectionDraining : Message containing connection draining configuration.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConnectionDraining {
    /// Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as described in Enabling connection draining.
    #[serde(rename = "drainingTimeoutSec", skip_serializing_if = "Option::is_none")]
    pub draining_timeout_sec: Option<i32>,
}

impl ConnectionDraining {
    /// Message containing connection draining configuration.
    pub fn new() -> ConnectionDraining {
        ConnectionDraining {
            draining_timeout_sec: None,
        }
    }
}
