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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// The maintenance setting of a flow
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Maintenance {
/// A day of a week when the maintenance will happen. Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday.
pub maintenance_day: ::std::option::Option<crate::types::MaintenanceDay>,
/// The Maintenance has to be performed before this deadline in ISO UTC format. Example: 2021-01-30T08:30:00Z.
pub maintenance_deadline: ::std::option::Option<::std::string::String>,
/// A scheduled date in ISO UTC format when the maintenance will happen. Use YYYY-MM-DD format. Example: 2021-01-30.
pub maintenance_scheduled_date: ::std::option::Option<::std::string::String>,
/// UTC time when the maintenance will happen. Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00.
pub maintenance_start_hour: ::std::option::Option<::std::string::String>,
}
impl Maintenance {
/// A day of a week when the maintenance will happen. Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday.
pub fn maintenance_day(&self) -> ::std::option::Option<&crate::types::MaintenanceDay> {
self.maintenance_day.as_ref()
}
/// The Maintenance has to be performed before this deadline in ISO UTC format. Example: 2021-01-30T08:30:00Z.
pub fn maintenance_deadline(&self) -> ::std::option::Option<&str> {
self.maintenance_deadline.as_deref()
}
/// A scheduled date in ISO UTC format when the maintenance will happen. Use YYYY-MM-DD format. Example: 2021-01-30.
pub fn maintenance_scheduled_date(&self) -> ::std::option::Option<&str> {
self.maintenance_scheduled_date.as_deref()
}
/// UTC time when the maintenance will happen. Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00.
pub fn maintenance_start_hour(&self) -> ::std::option::Option<&str> {
self.maintenance_start_hour.as_deref()
}
}
impl Maintenance {
/// Creates a new builder-style object to manufacture [`Maintenance`](crate::types::Maintenance).
pub fn builder() -> crate::types::builders::MaintenanceBuilder {
crate::types::builders::MaintenanceBuilder::default()
}
}
/// A builder for [`Maintenance`](crate::types::Maintenance).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct MaintenanceBuilder {
pub(crate) maintenance_day: ::std::option::Option<crate::types::MaintenanceDay>,
pub(crate) maintenance_deadline: ::std::option::Option<::std::string::String>,
pub(crate) maintenance_scheduled_date: ::std::option::Option<::std::string::String>,
pub(crate) maintenance_start_hour: ::std::option::Option<::std::string::String>,
}
impl MaintenanceBuilder {
/// A day of a week when the maintenance will happen. Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday.
pub fn maintenance_day(mut self, input: crate::types::MaintenanceDay) -> Self {
self.maintenance_day = ::std::option::Option::Some(input);
self
}
/// A day of a week when the maintenance will happen. Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday.
pub fn set_maintenance_day(mut self, input: ::std::option::Option<crate::types::MaintenanceDay>) -> Self {
self.maintenance_day = input;
self
}
/// A day of a week when the maintenance will happen. Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday.
pub fn get_maintenance_day(&self) -> &::std::option::Option<crate::types::MaintenanceDay> {
&self.maintenance_day
}
/// The Maintenance has to be performed before this deadline in ISO UTC format. Example: 2021-01-30T08:30:00Z.
pub fn maintenance_deadline(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.maintenance_deadline = ::std::option::Option::Some(input.into());
self
}
/// The Maintenance has to be performed before this deadline in ISO UTC format. Example: 2021-01-30T08:30:00Z.
pub fn set_maintenance_deadline(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.maintenance_deadline = input;
self
}
/// The Maintenance has to be performed before this deadline in ISO UTC format. Example: 2021-01-30T08:30:00Z.
pub fn get_maintenance_deadline(&self) -> &::std::option::Option<::std::string::String> {
&self.maintenance_deadline
}
/// A scheduled date in ISO UTC format when the maintenance will happen. Use YYYY-MM-DD format. Example: 2021-01-30.
pub fn maintenance_scheduled_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.maintenance_scheduled_date = ::std::option::Option::Some(input.into());
self
}
/// A scheduled date in ISO UTC format when the maintenance will happen. Use YYYY-MM-DD format. Example: 2021-01-30.
pub fn set_maintenance_scheduled_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.maintenance_scheduled_date = input;
self
}
/// A scheduled date in ISO UTC format when the maintenance will happen. Use YYYY-MM-DD format. Example: 2021-01-30.
pub fn get_maintenance_scheduled_date(&self) -> &::std::option::Option<::std::string::String> {
&self.maintenance_scheduled_date
}
/// UTC time when the maintenance will happen. Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00.
pub fn maintenance_start_hour(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.maintenance_start_hour = ::std::option::Option::Some(input.into());
self
}
/// UTC time when the maintenance will happen. Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00.
pub fn set_maintenance_start_hour(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.maintenance_start_hour = input;
self
}
/// UTC time when the maintenance will happen. Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00.
pub fn get_maintenance_start_hour(&self) -> &::std::option::Option<::std::string::String> {
&self.maintenance_start_hour
}
/// Consumes the builder and constructs a [`Maintenance`](crate::types::Maintenance).
pub fn build(self) -> crate::types::Maintenance {
crate::types::Maintenance {
maintenance_day: self.maintenance_day,
maintenance_deadline: self.maintenance_deadline,
maintenance_scheduled_date: self.maintenance_scheduled_date,
maintenance_start_hour: self.maintenance_start_hour,
}
}
}