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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
// 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 DescribeCasesInput {
/// <p>A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.</p>
pub case_id_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The ID displayed for a case in the Amazon Web Services Support Center user interface.</p>
pub display_id: ::std::option::Option<::std::string::String>,
/// <p>The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub after_time: ::std::option::Option<::std::string::String>,
/// <p>The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub before_time: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether to include resolved support cases in the <code>DescribeCases</code> response. By default, resolved cases aren't included.</p>
pub include_resolved_cases: ::std::option::Option<bool>,
/// <p>A resumption point for pagination.</p>
pub next_token: ::std::option::Option<::std::string::String>,
/// <p>The maximum number of results to return before paginating.</p>
pub max_results: ::std::option::Option<i32>,
/// <p>The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the <code>language</code> parameter if you want support in that language.</p>
pub language: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether to include communications in the <code>DescribeCases</code> response. By default, communications are included.</p>
pub include_communications: ::std::option::Option<bool>,
}
impl DescribeCasesInput {
/// <p>A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.case_id_list.is_none()`.
pub fn case_id_list(&self) -> &[::std::string::String] {
self.case_id_list.as_deref().unwrap_or_default()
}
/// <p>The ID displayed for a case in the Amazon Web Services Support Center user interface.</p>
pub fn display_id(&self) -> ::std::option::Option<&str> {
self.display_id.as_deref()
}
/// <p>The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub fn after_time(&self) -> ::std::option::Option<&str> {
self.after_time.as_deref()
}
/// <p>The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub fn before_time(&self) -> ::std::option::Option<&str> {
self.before_time.as_deref()
}
/// <p>Specifies whether to include resolved support cases in the <code>DescribeCases</code> response. By default, resolved cases aren't included.</p>
pub fn include_resolved_cases(&self) -> ::std::option::Option<bool> {
self.include_resolved_cases
}
/// <p>A resumption point for pagination.</p>
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
/// <p>The maximum number of results to return before paginating.</p>
pub fn max_results(&self) -> ::std::option::Option<i32> {
self.max_results
}
/// <p>The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the <code>language</code> parameter if you want support in that language.</p>
pub fn language(&self) -> ::std::option::Option<&str> {
self.language.as_deref()
}
/// <p>Specifies whether to include communications in the <code>DescribeCases</code> response. By default, communications are included.</p>
pub fn include_communications(&self) -> ::std::option::Option<bool> {
self.include_communications
}
}
impl DescribeCasesInput {
/// Creates a new builder-style object to manufacture [`DescribeCasesInput`](crate::operation::describe_cases::DescribeCasesInput).
pub fn builder() -> crate::operation::describe_cases::builders::DescribeCasesInputBuilder {
crate::operation::describe_cases::builders::DescribeCasesInputBuilder::default()
}
}
/// A builder for [`DescribeCasesInput`](crate::operation::describe_cases::DescribeCasesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeCasesInputBuilder {
pub(crate) case_id_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) display_id: ::std::option::Option<::std::string::String>,
pub(crate) after_time: ::std::option::Option<::std::string::String>,
pub(crate) before_time: ::std::option::Option<::std::string::String>,
pub(crate) include_resolved_cases: ::std::option::Option<bool>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) max_results: ::std::option::Option<i32>,
pub(crate) language: ::std::option::Option<::std::string::String>,
pub(crate) include_communications: ::std::option::Option<bool>,
}
impl DescribeCasesInputBuilder {
/// Appends an item to `case_id_list`.
///
/// To override the contents of this collection use [`set_case_id_list`](Self::set_case_id_list).
///
/// <p>A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.</p>
pub fn case_id_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.case_id_list.unwrap_or_default();
v.push(input.into());
self.case_id_list = ::std::option::Option::Some(v);
self
}
/// <p>A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.</p>
pub fn set_case_id_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.case_id_list = input;
self
}
/// <p>A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.</p>
pub fn get_case_id_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.case_id_list
}
/// <p>The ID displayed for a case in the Amazon Web Services Support Center user interface.</p>
pub fn display_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.display_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID displayed for a case in the Amazon Web Services Support Center user interface.</p>
pub fn set_display_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.display_id = input;
self
}
/// <p>The ID displayed for a case in the Amazon Web Services Support Center user interface.</p>
pub fn get_display_id(&self) -> &::std::option::Option<::std::string::String> {
&self.display_id
}
/// <p>The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub fn after_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.after_time = ::std::option::Option::Some(input.into());
self
}
/// <p>The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub fn set_after_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.after_time = input;
self
}
/// <p>The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub fn get_after_time(&self) -> &::std::option::Option<::std::string::String> {
&self.after_time
}
/// <p>The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub fn before_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.before_time = ::std::option::Option::Some(input.into());
self
}
/// <p>The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub fn set_before_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.before_time = input;
self
}
/// <p>The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.</p>
pub fn get_before_time(&self) -> &::std::option::Option<::std::string::String> {
&self.before_time
}
/// <p>Specifies whether to include resolved support cases in the <code>DescribeCases</code> response. By default, resolved cases aren't included.</p>
pub fn include_resolved_cases(mut self, input: bool) -> Self {
self.include_resolved_cases = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to include resolved support cases in the <code>DescribeCases</code> response. By default, resolved cases aren't included.</p>
pub fn set_include_resolved_cases(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_resolved_cases = input;
self
}
/// <p>Specifies whether to include resolved support cases in the <code>DescribeCases</code> response. By default, resolved cases aren't included.</p>
pub fn get_include_resolved_cases(&self) -> &::std::option::Option<bool> {
&self.include_resolved_cases
}
/// <p>A resumption point for pagination.</p>
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
/// <p>A resumption point for pagination.</p>
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
/// <p>A resumption point for pagination.</p>
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
/// <p>The maximum number of results to return before paginating.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = ::std::option::Option::Some(input);
self
}
/// <p>The maximum number of results to return before paginating.</p>
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
/// <p>The maximum number of results to return before paginating.</p>
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
&self.max_results
}
/// <p>The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the <code>language</code> parameter if you want support in that language.</p>
pub fn language(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.language = ::std::option::Option::Some(input.into());
self
}
/// <p>The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the <code>language</code> parameter if you want support in that language.</p>
pub fn set_language(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.language = input;
self
}
/// <p>The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the <code>language</code> parameter if you want support in that language.</p>
pub fn get_language(&self) -> &::std::option::Option<::std::string::String> {
&self.language
}
/// <p>Specifies whether to include communications in the <code>DescribeCases</code> response. By default, communications are included.</p>
pub fn include_communications(mut self, input: bool) -> Self {
self.include_communications = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to include communications in the <code>DescribeCases</code> response. By default, communications are included.</p>
pub fn set_include_communications(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_communications = input;
self
}
/// <p>Specifies whether to include communications in the <code>DescribeCases</code> response. By default, communications are included.</p>
pub fn get_include_communications(&self) -> &::std::option::Option<bool> {
&self.include_communications
}
/// Consumes the builder and constructs a [`DescribeCasesInput`](crate::operation::describe_cases::DescribeCasesInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_cases::DescribeCasesInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_cases::DescribeCasesInput {
case_id_list: self.case_id_list,
display_id: self.display_id,
after_time: self.after_time,
before_time: self.before_time,
include_resolved_cases: self.include_resolved_cases,
next_token: self.next_token,
max_results: self.max_results,
language: self.language,
include_communications: self.include_communications,
})
}
}