aws_sdk_support/client/create_case.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateCase`](crate::operation::create_case::builders::CreateCaseFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`subject(impl Into<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::subject) / [`set_subject(Option<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::set_subject):<br>required: **true**<br><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><br>
7 /// - [`service_code(impl Into<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::service_code) / [`set_service_code(Option<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::set_service_code):<br>required: **false**<br><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><br>
8 /// - [`severity_code(impl Into<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::severity_code) / [`set_severity_code(Option<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::set_severity_code):<br>required: **false**<br><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><br>
9 /// - [`category_code(impl Into<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::category_code) / [`set_category_code(Option<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::set_category_code):<br>required: **false**<br><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><br>
10 /// - [`communication_body(impl Into<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::communication_body) / [`set_communication_body(Option<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::set_communication_body):<br>required: **true**<br><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><br>
11 /// - [`cc_email_addresses(impl Into<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::cc_email_addresses) / [`set_cc_email_addresses(Option<Vec::<String>>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::set_cc_email_addresses):<br>required: **false**<br><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><br>
12 /// - [`language(impl Into<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::language) / [`set_language(Option<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::set_language):<br>required: **false**<br><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><br>
13 /// - [`issue_type(impl Into<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::issue_type) / [`set_issue_type(Option<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::set_issue_type):<br>required: **false**<br><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><br>
14 /// - [`attachment_set_id(impl Into<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::attachment_set_id) / [`set_attachment_set_id(Option<String>)`](crate::operation::create_case::builders::CreateCaseFluentBuilder::set_attachment_set_id):<br>required: **false**<br><p>The ID of a set of one or more attachments for the case. Create the set by using the <code>AddAttachmentsToSet</code> operation.</p><br>
15 /// - On success, responds with [`CreateCaseOutput`](crate::operation::create_case::CreateCaseOutput) with field(s):
16 /// - [`case_id(Option<String>)`](crate::operation::create_case::CreateCaseOutput::case_id): <p>The support case ID requested or returned in the call. The case ID is an alphanumeric string in the following format: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i></p>
17 /// - On failure, responds with [`SdkError<CreateCaseError>`](crate::operation::create_case::CreateCaseError)
18 pub fn create_case(&self) -> crate::operation::create_case::builders::CreateCaseFluentBuilder {
19 crate::operation::create_case::builders::CreateCaseFluentBuilder::new(self.handle.clone())
20 }
21}