blib/lib/Paws/LexModelsV2/SlotValueSelectionSetting.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::LexModelsV2::SlotValueSelectionSetting;
3 use Moose;
4 has RegexFilter => (is => 'ro', isa => 'Paws::LexModelsV2::SlotValueRegexFilter', request_name => 'regexFilter', traits => ['NameInRequest']);
5 has ResolutionStrategy => (is => 'ro', isa => 'Str', request_name => 'resolutionStrategy', traits => ['NameInRequest'], required => 1);
6  
7 1;
8  
9 ### main pod documentation begin ###
10  
11 =head1 NAME
12  
13 Paws::LexModelsV2::SlotValueSelectionSetting
14  
15 =head1 USAGE
16  
17 This class represents one of two things:
18  
19 =head3 Arguments in a call to a service
20  
21 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22 Each attribute should be used as a named argument in the calls that expect this type of object.
23  
24 As an example, if Att1 is expected to be a Paws::LexModelsV2::SlotValueSelectionSetting object:
25  
26 $service_obj->Method(Att1 => { RegexFilter => $value, ..., ResolutionStrategy => $value });
27  
28 =head3 Results returned from an API call
29  
30 Use accessors for each attribute. If Att1 is expected to be an Paws::LexModelsV2::SlotValueSelectionSetting object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->RegexFilter
34  
35 =head1 DESCRIPTION
36  
37 Contains settings used by Amazon Lex to select a slot value.
38  
39 =head1 ATTRIBUTES
40  
41  
42 =head2 RegexFilter => L<Paws::LexModelsV2::SlotValueRegexFilter>
43  
44 A regular expression used to validate the value of a slot.
45  
46  
47 =head2 B<REQUIRED> ResolutionStrategy => Str
48  
49 Determines the slot resolution strategy that Amazon Lex uses to return
50 slot type values. The field can be set to one of the following values:
51  
52 =over
53  
54 =item *
55  
56 OriginalValue - Returns the value entered by the user, if the user
57 value is similar to the slot value.
58  
59 =item *
60  
61 TopResolution - If there is a resolution list for the slot, return the
62 first value in the resolution list as the slot type value. If there is
63 no resolution list, null is returned.
64  
65 =back
66  
67 If you don't specify the valueSelectionStrategy, the default is
68 OriginalValue.
69  
70  
71  
72 =head1 SEE ALSO
73  
74 This class forms part of L<Paws>, describing an object used in L<Paws::LexModelsV2>
75  
76 =head1 BUGS and CONTRIBUTIONS
77  
78 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
79  
80 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
81  
82 =cut
83