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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Placeholder documentation for MaintenanceUpdateSettings
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct MaintenanceUpdateSettings {
    /// Choose one day of the week for maintenance. The chosen day is used for all future maintenance windows.
    pub maintenance_day: ::std::option::Option<crate::types::MaintenanceDay>,
    /// Choose a specific date for maintenance to occur. The chosen date is used for the next maintenance window only.
    pub maintenance_scheduled_date: ::std::option::Option<::std::string::String>,
    /// Choose the hour that maintenance will start. The chosen time is used for all future maintenance windows.
    pub maintenance_start_time: ::std::option::Option<::std::string::String>,
}
impl MaintenanceUpdateSettings {
    /// Choose one day of the week for maintenance. The chosen day is used for all future maintenance windows.
    pub fn maintenance_day(&self) -> ::std::option::Option<&crate::types::MaintenanceDay> {
        self.maintenance_day.as_ref()
    }
    /// Choose a specific date for maintenance to occur. The chosen date is used for the next maintenance window only.
    pub fn maintenance_scheduled_date(&self) -> ::std::option::Option<&str> {
        self.maintenance_scheduled_date.as_deref()
    }
    /// Choose the hour that maintenance will start. The chosen time is used for all future maintenance windows.
    pub fn maintenance_start_time(&self) -> ::std::option::Option<&str> {
        self.maintenance_start_time.as_deref()
    }
}
impl MaintenanceUpdateSettings {
    /// Creates a new builder-style object to manufacture [`MaintenanceUpdateSettings`](crate::types::MaintenanceUpdateSettings).
    pub fn builder() -> crate::types::builders::MaintenanceUpdateSettingsBuilder {
        crate::types::builders::MaintenanceUpdateSettingsBuilder::default()
    }
}

/// A builder for [`MaintenanceUpdateSettings`](crate::types::MaintenanceUpdateSettings).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct MaintenanceUpdateSettingsBuilder {
    pub(crate) maintenance_day: ::std::option::Option<crate::types::MaintenanceDay>,
    pub(crate) maintenance_scheduled_date: ::std::option::Option<::std::string::String>,
    pub(crate) maintenance_start_time: ::std::option::Option<::std::string::String>,
}
impl MaintenanceUpdateSettingsBuilder {
    /// Choose one day of the week for maintenance. The chosen day is used for all future maintenance windows.
    pub fn maintenance_day(mut self, input: crate::types::MaintenanceDay) -> Self {
        self.maintenance_day = ::std::option::Option::Some(input);
        self
    }
    /// Choose one day of the week for maintenance. The chosen day is used for all future maintenance windows.
    pub fn set_maintenance_day(mut self, input: ::std::option::Option<crate::types::MaintenanceDay>) -> Self {
        self.maintenance_day = input;
        self
    }
    /// Choose one day of the week for maintenance. The chosen day is used for all future maintenance windows.
    pub fn get_maintenance_day(&self) -> &::std::option::Option<crate::types::MaintenanceDay> {
        &self.maintenance_day
    }
    /// Choose a specific date for maintenance to occur. The chosen date is used for the next maintenance window only.
    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
    }
    /// Choose a specific date for maintenance to occur. The chosen date is used for the next maintenance window only.
    pub fn set_maintenance_scheduled_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.maintenance_scheduled_date = input;
        self
    }
    /// Choose a specific date for maintenance to occur. The chosen date is used for the next maintenance window only.
    pub fn get_maintenance_scheduled_date(&self) -> &::std::option::Option<::std::string::String> {
        &self.maintenance_scheduled_date
    }
    /// Choose the hour that maintenance will start. The chosen time is used for all future maintenance windows.
    pub fn maintenance_start_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.maintenance_start_time = ::std::option::Option::Some(input.into());
        self
    }
    /// Choose the hour that maintenance will start. The chosen time is used for all future maintenance windows.
    pub fn set_maintenance_start_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.maintenance_start_time = input;
        self
    }
    /// Choose the hour that maintenance will start. The chosen time is used for all future maintenance windows.
    pub fn get_maintenance_start_time(&self) -> &::std::option::Option<::std::string::String> {
        &self.maintenance_start_time
    }
    /// Consumes the builder and constructs a [`MaintenanceUpdateSettings`](crate::types::MaintenanceUpdateSettings).
    pub fn build(self) -> crate::types::MaintenanceUpdateSettings {
        crate::types::MaintenanceUpdateSettings {
            maintenance_day: self.maintenance_day,
            maintenance_scheduled_date: self.maintenance_scheduled_date,
            maintenance_start_time: self.maintenance_start_time,
        }
    }
}