#[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 {
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),
}
}
}