File Coverage

blib/lib/Paws/LexModels/PutSlotType.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::LexModels::PutSlotType;
3 1     1   546 use Moose;
  1         2  
  1         7  
4             has Checksum => (is => 'ro', isa => 'Str');
5             has Description => (is => 'ro', isa => 'Str');
6             has EnumerationValues => (is => 'ro', isa => 'ArrayRef[Paws::LexModels::EnumerationValue]');
7             has Name => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'name' , required => 1);
8              
9 1     1   6236 use MooseX::ClassAttribute;
  1         2  
  1         9  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutSlotType');
12             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/slottypes/{name}/versions/$LATEST');
13             class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
14             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModels::PutSlotTypeResponse');
15             class_has _result_key => (isa => 'Str', is => 'ro');
16             1;
17              
18             ### main pod documentation begin ###
19              
20             =head1 NAME
21              
22             Paws::LexModels::PutSlotType - Arguments for method PutSlotType on Paws::LexModels
23              
24             =head1 DESCRIPTION
25              
26             This class represents the parameters used for calling the method PutSlotType on the
27             Amazon Lex Model Building Service service. Use the attributes of this class
28             as arguments to method PutSlotType.
29              
30             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutSlotType.
31              
32             As an example:
33              
34             $service_obj->PutSlotType(Att1 => $value1, Att2 => $value2, ...);
35              
36             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.
37              
38             =head1 ATTRIBUTES
39              
40              
41             =head2 Checksum => Str
42              
43             Identifies a specific revision of the C<$LATEST> version.
44              
45             When you create a new slot type, leave the C<checksum> field blank. If
46             you specify a checksum you get a C<BadRequestException> exception.
47              
48             When you want to update a slot type, set the C<checksum> field to the
49             checksum of the most recent revision of the C<$LATEST> version. If you
50             don't specify the C< checksum> field, or if the checksum does not match
51             the C<$LATEST> version, you get a C<PreconditionFailedException>
52             exception.
53              
54              
55              
56             =head2 Description => Str
57              
58             A description of the slot type.
59              
60              
61              
62             =head2 EnumerationValues => ArrayRef[L<Paws::LexModels::EnumerationValue>]
63              
64             A list of C<EnumerationValue> objects that defines the values that the
65             slot type can take.
66              
67              
68              
69             =head2 B<REQUIRED> Name => Str
70              
71             The name of the slot type. The name is I<not> case sensitive.
72              
73             The name can't match a built-in slot type name, or a built-in slot type
74             name with "AMAZON." removed. For example, because there is a built-in
75             slot type called C<AMAZON.DATE>, you can't create a custom slot type
76             called C<DATE>.
77              
78             For a list of built-in slot types, see Slot Type Reference in the
79             I<Alexa Skills Kit>.
80              
81              
82              
83              
84             =head1 SEE ALSO
85              
86             This class forms part of L<Paws>, documenting arguments for method PutSlotType in L<Paws::LexModels>
87              
88             =head1 BUGS and CONTRIBUTIONS
89              
90             The source code is located here: https://github.com/pplu/aws-sdk-perl
91              
92             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
93              
94             =cut
95