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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
// 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 CreateCaseInput {
/// <p>The title of the support case. The title appears in the <b>Subject</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
pub subject: ::std::option::Option<::std::string::String>,
/// <p>The code for the Amazon Web Services service. You can use the <code>DescribeServices</code> operation to get the possible <code>serviceCode</code> values.</p>
pub service_code: ::std::option::Option<::std::string::String>,
/// <p>A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the <code>DescribeSeverityLevels</code> operation to get the possible values for <code>severityCode</code>.</p>
/// <p>For more information, see <code>SeverityLevel</code> and <a href="https://docs.aws.amazon.com/awssupport/latest/user/getting-started.html#choosing-severity">Choosing a Severity</a> in the <i>Amazon Web Services Support User Guide</i>.</p><note>
/// <p>The availability of severity levels depends on the support plan for the Amazon Web Services account.</p>
/// </note>
pub severity_code: ::std::option::Option<::std::string::String>,
/// <p>The category of problem for the support case. You also use the <code>DescribeServices</code> operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes.</p>
pub category_code: ::std::option::Option<::std::string::String>,
/// <p>The communication body text that describes the issue. This text appears in the <b>Description</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
pub communication_body: ::std::option::Option<::std::string::String>,
/// <p>A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the <a href="http://aws.amazon.com/tools/">Amazon Web Services SDKs</a>.</p>
pub cc_email_addresses: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") , Chinese ("zh"), Spanish ("es"), Portuguese ("pt"), French ("fr"), Korean (“ko”), and Turkish ("tr"). 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>The type of issue for the case. You can specify <code>customer-service</code> or <code>technical</code>. If you don't specify a value, the default is <code>technical</code>.</p>
pub issue_type: ::std::option::Option<::std::string::String>,
/// <p>The ID of a set of one or more attachments for the case. Create the set by using the <code>AddAttachmentsToSet</code> operation. Each attachment in the set must be 5 MB or smaller. To attach files larger than 5 MB, use <code>uploadIds</code>.</p>
pub attachment_set_id: ::std::option::Option<::std::string::String>,
/// <p>A list of upload IDs that identify attachments to add to the case. Each <code>uploadId</code> is returned by the <code>GetAttachmentUploadLinks</code> operation. The upload must reach the <code>attachment-ready</code> state by calling <code>CompleteAttachmentUpload</code> before it can be passed here. Use <code>uploadIds</code> to attach files of any supported size, including files larger than 5 MB.</p>
pub upload_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>Specifies whether to validate the request without actually creating the case. When set to <code>true</code>, the request is validated but no case is created, and the operation returns a <code>DryRunOperationException</code>. When omitted or set to <code>false</code>, the request runs normally.</p>
pub dry_run: ::std::option::Option<bool>,
}
impl CreateCaseInput {
/// <p>The title of the support case. The title appears in the <b>Subject</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
pub fn subject(&self) -> ::std::option::Option<&str> {
self.subject.as_deref()
}
/// <p>The code for the Amazon Web Services service. You can use the <code>DescribeServices</code> operation to get the possible <code>serviceCode</code> values.</p>
pub fn service_code(&self) -> ::std::option::Option<&str> {
self.service_code.as_deref()
}
/// <p>A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the <code>DescribeSeverityLevels</code> operation to get the possible values for <code>severityCode</code>.</p>
/// <p>For more information, see <code>SeverityLevel</code> and <a href="https://docs.aws.amazon.com/awssupport/latest/user/getting-started.html#choosing-severity">Choosing a Severity</a> in the <i>Amazon Web Services Support User Guide</i>.</p><note>
/// <p>The availability of severity levels depends on the support plan for the Amazon Web Services account.</p>
/// </note>
pub fn severity_code(&self) -> ::std::option::Option<&str> {
self.severity_code.as_deref()
}
/// <p>The category of problem for the support case. You also use the <code>DescribeServices</code> operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes.</p>
pub fn category_code(&self) -> ::std::option::Option<&str> {
self.category_code.as_deref()
}
/// <p>The communication body text that describes the issue. This text appears in the <b>Description</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
pub fn communication_body(&self) -> ::std::option::Option<&str> {
self.communication_body.as_deref()
}
/// <p>A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the <a href="http://aws.amazon.com/tools/">Amazon Web Services SDKs</a>.</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 `.cc_email_addresses.is_none()`.
pub fn cc_email_addresses(&self) -> &[::std::string::String] {
self.cc_email_addresses.as_deref().unwrap_or_default()
}
/// <p>The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") , Chinese ("zh"), Spanish ("es"), Portuguese ("pt"), French ("fr"), Korean (“ko”), and Turkish ("tr"). 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>The type of issue for the case. You can specify <code>customer-service</code> or <code>technical</code>. If you don't specify a value, the default is <code>technical</code>.</p>
pub fn issue_type(&self) -> ::std::option::Option<&str> {
self.issue_type.as_deref()
}
/// <p>The ID of a set of one or more attachments for the case. Create the set by using the <code>AddAttachmentsToSet</code> operation. Each attachment in the set must be 5 MB or smaller. To attach files larger than 5 MB, use <code>uploadIds</code>.</p>
pub fn attachment_set_id(&self) -> ::std::option::Option<&str> {
self.attachment_set_id.as_deref()
}
/// <p>A list of upload IDs that identify attachments to add to the case. Each <code>uploadId</code> is returned by the <code>GetAttachmentUploadLinks</code> operation. The upload must reach the <code>attachment-ready</code> state by calling <code>CompleteAttachmentUpload</code> before it can be passed here. Use <code>uploadIds</code> to attach files of any supported size, including files larger than 5 MB.</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 `.upload_ids.is_none()`.
pub fn upload_ids(&self) -> &[::std::string::String] {
self.upload_ids.as_deref().unwrap_or_default()
}
/// <p>Specifies whether to validate the request without actually creating the case. When set to <code>true</code>, the request is validated but no case is created, and the operation returns a <code>DryRunOperationException</code>. When omitted or set to <code>false</code>, the request runs normally.</p>
pub fn dry_run(&self) -> ::std::option::Option<bool> {
self.dry_run
}
}
impl CreateCaseInput {
/// Creates a new builder-style object to manufacture [`CreateCaseInput`](crate::operation::create_case::CreateCaseInput).
pub fn builder() -> crate::operation::create_case::builders::CreateCaseInputBuilder {
crate::operation::create_case::builders::CreateCaseInputBuilder::default()
}
}
/// A builder for [`CreateCaseInput`](crate::operation::create_case::CreateCaseInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateCaseInputBuilder {
pub(crate) subject: ::std::option::Option<::std::string::String>,
pub(crate) service_code: ::std::option::Option<::std::string::String>,
pub(crate) severity_code: ::std::option::Option<::std::string::String>,
pub(crate) category_code: ::std::option::Option<::std::string::String>,
pub(crate) communication_body: ::std::option::Option<::std::string::String>,
pub(crate) cc_email_addresses: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) language: ::std::option::Option<::std::string::String>,
pub(crate) issue_type: ::std::option::Option<::std::string::String>,
pub(crate) attachment_set_id: ::std::option::Option<::std::string::String>,
pub(crate) upload_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) dry_run: ::std::option::Option<bool>,
}
impl CreateCaseInputBuilder {
/// <p>The title of the support case. The title appears in the <b>Subject</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
/// This field is required.
pub fn subject(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.subject = ::std::option::Option::Some(input.into());
self
}
/// <p>The title of the support case. The title appears in the <b>Subject</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
pub fn set_subject(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.subject = input;
self
}
/// <p>The title of the support case. The title appears in the <b>Subject</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
pub fn get_subject(&self) -> &::std::option::Option<::std::string::String> {
&self.subject
}
/// <p>The code for the Amazon Web Services service. You can use the <code>DescribeServices</code> operation to get the possible <code>serviceCode</code> values.</p>
pub fn service_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_code = ::std::option::Option::Some(input.into());
self
}
/// <p>The code for the Amazon Web Services service. You can use the <code>DescribeServices</code> operation to get the possible <code>serviceCode</code> values.</p>
pub fn set_service_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_code = input;
self
}
/// <p>The code for the Amazon Web Services service. You can use the <code>DescribeServices</code> operation to get the possible <code>serviceCode</code> values.</p>
pub fn get_service_code(&self) -> &::std::option::Option<::std::string::String> {
&self.service_code
}
/// <p>A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the <code>DescribeSeverityLevels</code> operation to get the possible values for <code>severityCode</code>.</p>
/// <p>For more information, see <code>SeverityLevel</code> and <a href="https://docs.aws.amazon.com/awssupport/latest/user/getting-started.html#choosing-severity">Choosing a Severity</a> in the <i>Amazon Web Services Support User Guide</i>.</p><note>
/// <p>The availability of severity levels depends on the support plan for the Amazon Web Services account.</p>
/// </note>
pub fn severity_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.severity_code = ::std::option::Option::Some(input.into());
self
}
/// <p>A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the <code>DescribeSeverityLevels</code> operation to get the possible values for <code>severityCode</code>.</p>
/// <p>For more information, see <code>SeverityLevel</code> and <a href="https://docs.aws.amazon.com/awssupport/latest/user/getting-started.html#choosing-severity">Choosing a Severity</a> in the <i>Amazon Web Services Support User Guide</i>.</p><note>
/// <p>The availability of severity levels depends on the support plan for the Amazon Web Services account.</p>
/// </note>
pub fn set_severity_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.severity_code = input;
self
}
/// <p>A value that indicates the urgency of the case. This value determines the response time according to your service level agreement with Amazon Web Services Support. You can use the <code>DescribeSeverityLevels</code> operation to get the possible values for <code>severityCode</code>.</p>
/// <p>For more information, see <code>SeverityLevel</code> and <a href="https://docs.aws.amazon.com/awssupport/latest/user/getting-started.html#choosing-severity">Choosing a Severity</a> in the <i>Amazon Web Services Support User Guide</i>.</p><note>
/// <p>The availability of severity levels depends on the support plan for the Amazon Web Services account.</p>
/// </note>
pub fn get_severity_code(&self) -> &::std::option::Option<::std::string::String> {
&self.severity_code
}
/// <p>The category of problem for the support case. You also use the <code>DescribeServices</code> operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes.</p>
pub fn category_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.category_code = ::std::option::Option::Some(input.into());
self
}
/// <p>The category of problem for the support case. You also use the <code>DescribeServices</code> operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes.</p>
pub fn set_category_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.category_code = input;
self
}
/// <p>The category of problem for the support case. You also use the <code>DescribeServices</code> operation to get the category code for a service. Each Amazon Web Services service defines its own set of category codes.</p>
pub fn get_category_code(&self) -> &::std::option::Option<::std::string::String> {
&self.category_code
}
/// <p>The communication body text that describes the issue. This text appears in the <b>Description</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
/// This field is required.
pub fn communication_body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.communication_body = ::std::option::Option::Some(input.into());
self
}
/// <p>The communication body text that describes the issue. This text appears in the <b>Description</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
pub fn set_communication_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.communication_body = input;
self
}
/// <p>The communication body text that describes the issue. This text appears in the <b>Description</b> field on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.</p>
pub fn get_communication_body(&self) -> &::std::option::Option<::std::string::String> {
&self.communication_body
}
/// Appends an item to `cc_email_addresses`.
///
/// To override the contents of this collection use [`set_cc_email_addresses`](Self::set_cc_email_addresses).
///
/// <p>A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the <a href="http://aws.amazon.com/tools/">Amazon Web Services SDKs</a>.</p>
pub fn cc_email_addresses(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.cc_email_addresses.unwrap_or_default();
v.push(input.into());
self.cc_email_addresses = ::std::option::Option::Some(v);
self
}
/// <p>A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the <a href="http://aws.amazon.com/tools/">Amazon Web Services SDKs</a>.</p>
pub fn set_cc_email_addresses(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.cc_email_addresses = input;
self
}
/// <p>A list of email addresses that Amazon Web Services Support copies on case correspondence. Amazon Web Services Support identifies the account that creates the case when you specify your Amazon Web Services credentials in an HTTP POST method or use the <a href="http://aws.amazon.com/tools/">Amazon Web Services SDKs</a>.</p>
pub fn get_cc_email_addresses(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.cc_email_addresses
}
/// <p>The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") , Chinese ("zh"), Spanish ("es"), Portuguese ("pt"), French ("fr"), Korean (“ko”), and Turkish ("tr"). 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") , Chinese ("zh"), Spanish ("es"), Portuguese ("pt"), French ("fr"), Korean (“ko”), and Turkish ("tr"). 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") , Chinese ("zh"), Spanish ("es"), Portuguese ("pt"), French ("fr"), Korean (“ko”), and Turkish ("tr"). 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>The type of issue for the case. You can specify <code>customer-service</code> or <code>technical</code>. If you don't specify a value, the default is <code>technical</code>.</p>
pub fn issue_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.issue_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The type of issue for the case. You can specify <code>customer-service</code> or <code>technical</code>. If you don't specify a value, the default is <code>technical</code>.</p>
pub fn set_issue_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.issue_type = input;
self
}
/// <p>The type of issue for the case. You can specify <code>customer-service</code> or <code>technical</code>. If you don't specify a value, the default is <code>technical</code>.</p>
pub fn get_issue_type(&self) -> &::std::option::Option<::std::string::String> {
&self.issue_type
}
/// <p>The ID of a set of one or more attachments for the case. Create the set by using the <code>AddAttachmentsToSet</code> operation. Each attachment in the set must be 5 MB or smaller. To attach files larger than 5 MB, use <code>uploadIds</code>.</p>
pub fn attachment_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.attachment_set_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of a set of one or more attachments for the case. Create the set by using the <code>AddAttachmentsToSet</code> operation. Each attachment in the set must be 5 MB or smaller. To attach files larger than 5 MB, use <code>uploadIds</code>.</p>
pub fn set_attachment_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.attachment_set_id = input;
self
}
/// <p>The ID of a set of one or more attachments for the case. Create the set by using the <code>AddAttachmentsToSet</code> operation. Each attachment in the set must be 5 MB or smaller. To attach files larger than 5 MB, use <code>uploadIds</code>.</p>
pub fn get_attachment_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.attachment_set_id
}
/// Appends an item to `upload_ids`.
///
/// To override the contents of this collection use [`set_upload_ids`](Self::set_upload_ids).
///
/// <p>A list of upload IDs that identify attachments to add to the case. Each <code>uploadId</code> is returned by the <code>GetAttachmentUploadLinks</code> operation. The upload must reach the <code>attachment-ready</code> state by calling <code>CompleteAttachmentUpload</code> before it can be passed here. Use <code>uploadIds</code> to attach files of any supported size, including files larger than 5 MB.</p>
pub fn upload_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.upload_ids.unwrap_or_default();
v.push(input.into());
self.upload_ids = ::std::option::Option::Some(v);
self
}
/// <p>A list of upload IDs that identify attachments to add to the case. Each <code>uploadId</code> is returned by the <code>GetAttachmentUploadLinks</code> operation. The upload must reach the <code>attachment-ready</code> state by calling <code>CompleteAttachmentUpload</code> before it can be passed here. Use <code>uploadIds</code> to attach files of any supported size, including files larger than 5 MB.</p>
pub fn set_upload_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.upload_ids = input;
self
}
/// <p>A list of upload IDs that identify attachments to add to the case. Each <code>uploadId</code> is returned by the <code>GetAttachmentUploadLinks</code> operation. The upload must reach the <code>attachment-ready</code> state by calling <code>CompleteAttachmentUpload</code> before it can be passed here. Use <code>uploadIds</code> to attach files of any supported size, including files larger than 5 MB.</p>
pub fn get_upload_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.upload_ids
}
/// <p>Specifies whether to validate the request without actually creating the case. When set to <code>true</code>, the request is validated but no case is created, and the operation returns a <code>DryRunOperationException</code>. When omitted or set to <code>false</code>, the request runs normally.</p>
pub fn dry_run(mut self, input: bool) -> Self {
self.dry_run = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to validate the request without actually creating the case. When set to <code>true</code>, the request is validated but no case is created, and the operation returns a <code>DryRunOperationException</code>. When omitted or set to <code>false</code>, the request runs normally.</p>
pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
self.dry_run = input;
self
}
/// <p>Specifies whether to validate the request without actually creating the case. When set to <code>true</code>, the request is validated but no case is created, and the operation returns a <code>DryRunOperationException</code>. When omitted or set to <code>false</code>, the request runs normally.</p>
pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
&self.dry_run
}
/// Consumes the builder and constructs a [`CreateCaseInput`](crate::operation::create_case::CreateCaseInput).
pub fn build(self) -> ::std::result::Result<crate::operation::create_case::CreateCaseInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_case::CreateCaseInput {
subject: self.subject,
service_code: self.service_code,
severity_code: self.severity_code,
category_code: self.category_code,
communication_body: self.communication_body,
cc_email_addresses: self.cc_email_addresses,
language: self.language,
issue_type: self.issue_type,
attachment_set_id: self.attachment_set_id,
upload_ids: self.upload_ids,
dry_run: self.dry_run,
})
}
}