aws_sdk_medialive/types/
_maintenance_status.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Placeholder documentation for MaintenanceStatus
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct MaintenanceStatus {
7    /// The currently selected maintenance day.
8    pub maintenance_day: ::std::option::Option<crate::types::MaintenanceDay>,
9    /// Maintenance is required by the displayed date and time. Date and time is in ISO.
10    pub maintenance_deadline: ::std::option::Option<::std::string::String>,
11    /// The currently scheduled maintenance date and time. Date and time is in ISO.
12    pub maintenance_scheduled_date: ::std::option::Option<::std::string::String>,
13    /// The currently selected maintenance start time. Time is in UTC.
14    pub maintenance_start_time: ::std::option::Option<::std::string::String>,
15}
16impl MaintenanceStatus {
17    /// The currently selected maintenance day.
18    pub fn maintenance_day(&self) -> ::std::option::Option<&crate::types::MaintenanceDay> {
19        self.maintenance_day.as_ref()
20    }
21    /// Maintenance is required by the displayed date and time. Date and time is in ISO.
22    pub fn maintenance_deadline(&self) -> ::std::option::Option<&str> {
23        self.maintenance_deadline.as_deref()
24    }
25    /// The currently scheduled maintenance date and time. Date and time is in ISO.
26    pub fn maintenance_scheduled_date(&self) -> ::std::option::Option<&str> {
27        self.maintenance_scheduled_date.as_deref()
28    }
29    /// The currently selected maintenance start time. Time is in UTC.
30    pub fn maintenance_start_time(&self) -> ::std::option::Option<&str> {
31        self.maintenance_start_time.as_deref()
32    }
33}
34impl MaintenanceStatus {
35    /// Creates a new builder-style object to manufacture [`MaintenanceStatus`](crate::types::MaintenanceStatus).
36    pub fn builder() -> crate::types::builders::MaintenanceStatusBuilder {
37        crate::types::builders::MaintenanceStatusBuilder::default()
38    }
39}
40
41/// A builder for [`MaintenanceStatus`](crate::types::MaintenanceStatus).
42#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
43#[non_exhaustive]
44pub struct MaintenanceStatusBuilder {
45    pub(crate) maintenance_day: ::std::option::Option<crate::types::MaintenanceDay>,
46    pub(crate) maintenance_deadline: ::std::option::Option<::std::string::String>,
47    pub(crate) maintenance_scheduled_date: ::std::option::Option<::std::string::String>,
48    pub(crate) maintenance_start_time: ::std::option::Option<::std::string::String>,
49}
50impl MaintenanceStatusBuilder {
51    /// The currently selected maintenance day.
52    pub fn maintenance_day(mut self, input: crate::types::MaintenanceDay) -> Self {
53        self.maintenance_day = ::std::option::Option::Some(input);
54        self
55    }
56    /// The currently selected maintenance day.
57    pub fn set_maintenance_day(mut self, input: ::std::option::Option<crate::types::MaintenanceDay>) -> Self {
58        self.maintenance_day = input;
59        self
60    }
61    /// The currently selected maintenance day.
62    pub fn get_maintenance_day(&self) -> &::std::option::Option<crate::types::MaintenanceDay> {
63        &self.maintenance_day
64    }
65    /// Maintenance is required by the displayed date and time. Date and time is in ISO.
66    pub fn maintenance_deadline(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67        self.maintenance_deadline = ::std::option::Option::Some(input.into());
68        self
69    }
70    /// Maintenance is required by the displayed date and time. Date and time is in ISO.
71    pub fn set_maintenance_deadline(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72        self.maintenance_deadline = input;
73        self
74    }
75    /// Maintenance is required by the displayed date and time. Date and time is in ISO.
76    pub fn get_maintenance_deadline(&self) -> &::std::option::Option<::std::string::String> {
77        &self.maintenance_deadline
78    }
79    /// The currently scheduled maintenance date and time. Date and time is in ISO.
80    pub fn maintenance_scheduled_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
81        self.maintenance_scheduled_date = ::std::option::Option::Some(input.into());
82        self
83    }
84    /// The currently scheduled maintenance date and time. Date and time is in ISO.
85    pub fn set_maintenance_scheduled_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
86        self.maintenance_scheduled_date = input;
87        self
88    }
89    /// The currently scheduled maintenance date and time. Date and time is in ISO.
90    pub fn get_maintenance_scheduled_date(&self) -> &::std::option::Option<::std::string::String> {
91        &self.maintenance_scheduled_date
92    }
93    /// The currently selected maintenance start time. Time is in UTC.
94    pub fn maintenance_start_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
95        self.maintenance_start_time = ::std::option::Option::Some(input.into());
96        self
97    }
98    /// The currently selected maintenance start time. Time is in UTC.
99    pub fn set_maintenance_start_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
100        self.maintenance_start_time = input;
101        self
102    }
103    /// The currently selected maintenance start time. Time is in UTC.
104    pub fn get_maintenance_start_time(&self) -> &::std::option::Option<::std::string::String> {
105        &self.maintenance_start_time
106    }
107    /// Consumes the builder and constructs a [`MaintenanceStatus`](crate::types::MaintenanceStatus).
108    pub fn build(self) -> crate::types::MaintenanceStatus {
109        crate::types::MaintenanceStatus {
110            maintenance_day: self.maintenance_day,
111            maintenance_deadline: self.maintenance_deadline,
112            maintenance_scheduled_date: self.maintenance_scheduled_date,
113            maintenance_start_time: self.maintenance_start_time,
114        }
115    }
116}