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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateBusinessReportScheduleInput {
    /// <p>The ARN of the business report schedule.</p>
    pub schedule_arn: ::std::option::Option<::std::string::String>,
    /// <p>The S3 location of the output reports.</p>
    pub s3_bucket_name: ::std::option::Option<::std::string::String>,
    /// <p>The S3 key where the report is delivered.</p>
    pub s3_key_prefix: ::std::option::Option<::std::string::String>,
    /// <p>The format of the generated report (individual CSV files or zipped files of individual files).</p>
    pub format: ::std::option::Option<crate::types::BusinessReportFormat>,
    /// <p>The name identifier of the schedule.</p>
    pub schedule_name: ::std::option::Option<::std::string::String>,
    /// <p>The recurrence of the reports.</p>
    pub recurrence: ::std::option::Option<crate::types::BusinessReportRecurrence>,
}
impl UpdateBusinessReportScheduleInput {
    /// <p>The ARN of the business report schedule.</p>
    pub fn schedule_arn(&self) -> ::std::option::Option<&str> {
        self.schedule_arn.as_deref()
    }
    /// <p>The S3 location of the output reports.</p>
    pub fn s3_bucket_name(&self) -> ::std::option::Option<&str> {
        self.s3_bucket_name.as_deref()
    }
    /// <p>The S3 key where the report is delivered.</p>
    pub fn s3_key_prefix(&self) -> ::std::option::Option<&str> {
        self.s3_key_prefix.as_deref()
    }
    /// <p>The format of the generated report (individual CSV files or zipped files of individual files).</p>
    pub fn format(&self) -> ::std::option::Option<&crate::types::BusinessReportFormat> {
        self.format.as_ref()
    }
    /// <p>The name identifier of the schedule.</p>
    pub fn schedule_name(&self) -> ::std::option::Option<&str> {
        self.schedule_name.as_deref()
    }
    /// <p>The recurrence of the reports.</p>
    pub fn recurrence(&self) -> ::std::option::Option<&crate::types::BusinessReportRecurrence> {
        self.recurrence.as_ref()
    }
}
impl UpdateBusinessReportScheduleInput {
    /// Creates a new builder-style object to manufacture [`UpdateBusinessReportScheduleInput`](crate::operation::update_business_report_schedule::UpdateBusinessReportScheduleInput).
    pub fn builder() -> crate::operation::update_business_report_schedule::builders::UpdateBusinessReportScheduleInputBuilder {
        crate::operation::update_business_report_schedule::builders::UpdateBusinessReportScheduleInputBuilder::default()
    }
}

/// A builder for [`UpdateBusinessReportScheduleInput`](crate::operation::update_business_report_schedule::UpdateBusinessReportScheduleInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateBusinessReportScheduleInputBuilder {
    pub(crate) schedule_arn: ::std::option::Option<::std::string::String>,
    pub(crate) s3_bucket_name: ::std::option::Option<::std::string::String>,
    pub(crate) s3_key_prefix: ::std::option::Option<::std::string::String>,
    pub(crate) format: ::std::option::Option<crate::types::BusinessReportFormat>,
    pub(crate) schedule_name: ::std::option::Option<::std::string::String>,
    pub(crate) recurrence: ::std::option::Option<crate::types::BusinessReportRecurrence>,
}
impl UpdateBusinessReportScheduleInputBuilder {
    /// <p>The ARN of the business report schedule.</p>
    pub fn schedule_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.schedule_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the business report schedule.</p>
    pub fn set_schedule_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.schedule_arn = input;
        self
    }
    /// <p>The ARN of the business report schedule.</p>
    pub fn get_schedule_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.schedule_arn
    }
    /// <p>The S3 location of the output reports.</p>
    pub fn s3_bucket_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.s3_bucket_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The S3 location of the output reports.</p>
    pub fn set_s3_bucket_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.s3_bucket_name = input;
        self
    }
    /// <p>The S3 location of the output reports.</p>
    pub fn get_s3_bucket_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.s3_bucket_name
    }
    /// <p>The S3 key where the report is delivered.</p>
    pub fn s3_key_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.s3_key_prefix = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The S3 key where the report is delivered.</p>
    pub fn set_s3_key_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.s3_key_prefix = input;
        self
    }
    /// <p>The S3 key where the report is delivered.</p>
    pub fn get_s3_key_prefix(&self) -> &::std::option::Option<::std::string::String> {
        &self.s3_key_prefix
    }
    /// <p>The format of the generated report (individual CSV files or zipped files of individual files).</p>
    pub fn format(mut self, input: crate::types::BusinessReportFormat) -> Self {
        self.format = ::std::option::Option::Some(input);
        self
    }
    /// <p>The format of the generated report (individual CSV files or zipped files of individual files).</p>
    pub fn set_format(mut self, input: ::std::option::Option<crate::types::BusinessReportFormat>) -> Self {
        self.format = input;
        self
    }
    /// <p>The format of the generated report (individual CSV files or zipped files of individual files).</p>
    pub fn get_format(&self) -> &::std::option::Option<crate::types::BusinessReportFormat> {
        &self.format
    }
    /// <p>The name identifier of the schedule.</p>
    pub fn schedule_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.schedule_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name identifier of the schedule.</p>
    pub fn set_schedule_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.schedule_name = input;
        self
    }
    /// <p>The name identifier of the schedule.</p>
    pub fn get_schedule_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.schedule_name
    }
    /// <p>The recurrence of the reports.</p>
    pub fn recurrence(mut self, input: crate::types::BusinessReportRecurrence) -> Self {
        self.recurrence = ::std::option::Option::Some(input);
        self
    }
    /// <p>The recurrence of the reports.</p>
    pub fn set_recurrence(mut self, input: ::std::option::Option<crate::types::BusinessReportRecurrence>) -> Self {
        self.recurrence = input;
        self
    }
    /// <p>The recurrence of the reports.</p>
    pub fn get_recurrence(&self) -> &::std::option::Option<crate::types::BusinessReportRecurrence> {
        &self.recurrence
    }
    /// Consumes the builder and constructs a [`UpdateBusinessReportScheduleInput`](crate::operation::update_business_report_schedule::UpdateBusinessReportScheduleInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::update_business_report_schedule::UpdateBusinessReportScheduleInput,
        ::aws_smithy_http::operation::error::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::update_business_report_schedule::UpdateBusinessReportScheduleInput {
            schedule_arn: self.schedule_arn,
            s3_bucket_name: self.s3_bucket_name,
            s3_key_prefix: self.s3_key_prefix,
            format: self.format,
            schedule_name: self.schedule_name,
            recurrence: self.recurrence,
        })
    }
}