1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
/*
* Selling Partner API for Services
*
* With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
/// FixedSlot : In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct FixedSlot {
/// Start date time of slot in ISO 8601 format with precision of seconds.
#[serde(default, rename = "startDateTime", skip_serializing_if = "Option::is_none")]
pub start_date_time: Option<String>,
/// Scheduled capacity corresponding to the slot. This capacity represents the originally allocated capacity as per resource schedule.
#[serde(default, rename = "scheduledCapacity", skip_serializing_if = "Option::is_none")]
pub scheduled_capacity: Option<i32>,
/// Available capacity corresponding to the slot. This capacity represents the capacity available for allocation to reservations.
#[serde(default, rename = "availableCapacity", skip_serializing_if = "Option::is_none")]
pub available_capacity: Option<i32>,
/// Encumbered capacity corresponding to the slot. This capacity represents the capacity allocated for Amazon Jobs/Appointments/Orders.
#[serde(default, rename = "encumberedCapacity", skip_serializing_if = "Option::is_none")]
pub encumbered_capacity: Option<i32>,
/// Reserved capacity corresponding to the slot. This capacity represents the capacity made unavailable due to events like Breaks/Leaves/Lunch.
#[serde(default, rename = "reservedCapacity", skip_serializing_if = "Option::is_none")]
pub reserved_capacity: Option<i32>,
}
impl FixedSlot {
/// In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration.
pub fn new() -> FixedSlot {
FixedSlot {
start_date_time: None,
scheduled_capacity: None,
available_capacity: None,
encumbered_capacity: None,
reserved_capacity: None,
}
}
}