/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

/// InterfaceRedundancyGroupAssociationRequest : InterfaceRedundancyGroupAssociation Serializer.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct InterfaceRedundancyGroupAssociationRequest {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<uuid::Uuid>,
    #[serde(rename = "priority")]
    pub priority: i32,
    #[serde(rename = "interface_redundancy_group")]
    pub interface_redundancy_group:
        Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
    #[serde(rename = "interface")]
    pub interface: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
}

impl InterfaceRedundancyGroupAssociationRequest {
    /// InterfaceRedundancyGroupAssociation Serializer.
    pub fn new(
        priority: i32,
        interface_redundancy_group: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
        interface: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
    ) -> InterfaceRedundancyGroupAssociationRequest {
        InterfaceRedundancyGroupAssociationRequest {
            id: None,
            priority,
            interface_redundancy_group: Box::new(interface_redundancy_group),
            interface: Box::new(interface),
        }
    }
}
