amazon_spapi/models/services/range_slot_capacity_query.rs
1/*
2 * Selling Partner API for Services
3 *
4 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// RangeSlotCapacityQuery : Request schema for the `getRangeSlotCapacity` operation. This schema is used to define the time range and capacity types that are being queried.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RangeSlotCapacityQuery {
17 /// An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`.
18 #[serde(rename = "capacityTypes", skip_serializing_if = "Option::is_none")]
19 pub capacity_types: Option<Vec<models::services::CapacityType>>,
20 /// Start date time from which the capacity slots are being requested in ISO 8601 format.
21 #[serde(rename = "startDateTime")]
22 pub start_date_time: String,
23 /// End date time up to which the capacity slots are being requested in ISO 8601 format.
24 #[serde(rename = "endDateTime")]
25 pub end_date_time: String,
26}
27
28impl RangeSlotCapacityQuery {
29 /// Request schema for the `getRangeSlotCapacity` operation. This schema is used to define the time range and capacity types that are being queried.
30 pub fn new(start_date_time: String, end_date_time: String) -> RangeSlotCapacityQuery {
31 RangeSlotCapacityQuery {
32 capacity_types: None,
33 start_date_time,
34 end_date_time,
35 }
36 }
37}
38