blib/lib/Paws/Support/CreateCase.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Support::CreateCase;
3 use Moose;
4 has AttachmentSetId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'attachmentSetId' );
5 has CategoryCode => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'categoryCode' );
6 has CcEmailAddresses => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'ccEmailAddresses' );
7 has CommunicationBody => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'communicationBody' , required => 1);
8 has IssueType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'issueType' );
9 has Language => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'language' );
10 has ServiceCode => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'serviceCode' );
11 has SeverityCode => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'severityCode' );
12 has Subject => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'subject' , required => 1);
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateCase');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Support::CreateCaseResponse');
18 class_has _result_key => (isa => 'Str', is => 'ro');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::Support::CreateCase - Arguments for method CreateCase on L<Paws::Support>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateCase on the
30 L<AWS Support|Paws::Support> service. Use the attributes of this class
31 as arguments to method CreateCase.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateCase.
34  
35 =head1 SYNOPSIS
36  
37 my $support = Paws->service('Support');
38 my $CreateCaseResponse = $support->CreateCase(
39 CommunicationBody => 'MyCommunicationBody',
40 Subject => 'MySubject',
41 AttachmentSetId => 'MyAttachmentSetId', # OPTIONAL
42 CategoryCode => 'MyCategoryCode', # OPTIONAL
43 CcEmailAddresses => [ 'MyCcEmailAddress', ... ], # OPTIONAL
44 IssueType => 'MyIssueType', # OPTIONAL
45 Language => 'MyLanguage', # OPTIONAL
46 ServiceCode => 'MyServiceCode', # OPTIONAL
47 SeverityCode => 'MySeverityCode', # OPTIONAL
48 );
49  
50 # Results:
51 my $CaseId = $CreateCaseResponse->CaseId;
52  
53 # Returns a L<Paws::Support::CreateCaseResponse> object.
54  
55 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/support/CreateCase>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 AttachmentSetId => Str
62  
63 The ID of a set of one or more attachments for the case. Create the set
64 by using the AddAttachmentsToSet operation.
65  
66  
67  
68 =head2 CategoryCode => Str
69  
70 The category of problem for the support case. You also use the
71 DescribeServices operation to get the category code for a service. Each
72 AWS service defines its own set of category codes.
73  
74  
75  
76 =head2 CcEmailAddresses => ArrayRef[Str|Undef]
77  
78 A list of email addresses that AWS Support copies on case
79 correspondence. AWS Support identifies the account that creates the
80 case when you specify your AWS credentials in an HTTP POST method or
81 use the AWS SDKs (http://aws.amazon.com/tools/).
82  
83  
84  
85 =head2 B<REQUIRED> CommunicationBody => Str
86  
87 The communication body text that describes the issue. This text appears
88 in the B<Description> field on the AWS Support Center Create Case
89 (https://console.aws.amazon.com/support/home#/case/create) page.
90  
91  
92  
93 =head2 IssueType => Str
94  
95 The type of issue for the case. You can specify C<customer-service> or
96 C<technical>. If you don't specify a value, the default is
97 C<technical>.
98  
99  
100  
101 =head2 Language => Str
102  
103 The language in which AWS Support handles the case. You must specify
104 the ISO 639-1 code for the C<language> parameter if you want support in
105 that language. Currently, English ("en") and Japanese ("ja") are
106 supported.
107  
108  
109  
110 =head2 ServiceCode => Str
111  
112 The code for the AWS service. You can use the DescribeServices
113 operation to get the possible C<serviceCode> values.
114  
115  
116  
117 =head2 SeverityCode => Str
118  
119 A value that indicates the urgency of the case. This value determines
120 the response time according to your service level agreement with AWS
121 Support. You can use the DescribeSeverityLevels operation to get the
122 possible values for C<severityCode>.
123  
124 For more information, see SeverityLevel and Choosing a Severity
125 (https://docs.aws.amazon.com/awssupport/latest/user/getting-started.html#choosing-severity)
126 in the I<AWS Support User Guide>.
127  
128 The availability of severity levels depends on the support plan for the
129 AWS account.
130  
131  
132  
133 =head2 B<REQUIRED> Subject => Str
134  
135 The title of the support case. The title appears in the B<Subject>
136 field on the AWS Support Center Create Case
137 (https://console.aws.amazon.com/support/home#/case/create) page.
138  
139  
140  
141  
142 =head1 SEE ALSO
143  
144 This class forms part of L<Paws>, documenting arguments for method CreateCase in L<Paws::Support>
145  
146 =head1 BUGS and CONTRIBUTIONS
147  
148 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
149  
150 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
151  
152 =cut
153