blib/lib/Paws/Kendra/SubmitFeedback.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Kendra::SubmitFeedback;
3 use Moose;
4 has ClickFeedbackItems => (is => 'ro', isa => 'ArrayRef[Paws::Kendra::ClickFeedback]');
5 has IndexId => (is => 'ro', isa => 'Str', required => 1);
6 has QueryId => (is => 'ro', isa => 'Str', required => 1);
7 has RelevanceFeedbackItems => (is => 'ro', isa => 'ArrayRef[Paws::Kendra::RelevanceFeedback]');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'SubmitFeedback');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Kendra::SubmitFeedback - Arguments for method SubmitFeedback on L<Paws::Kendra>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method SubmitFeedback on the
25 L<AWSKendraFrontendService|Paws::Kendra> service. Use the attributes of this class
26 as arguments to method SubmitFeedback.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SubmitFeedback.
29  
30 =head1 SYNOPSIS
31  
32 my $kendra = Paws->service('Kendra');
33 $kendra->SubmitFeedback(
34 IndexId => 'MyIndexId',
35 QueryId => 'MyQueryId',
36 ClickFeedbackItems => [
37 {
38 ClickTime => '1970-01-01T01:00:00',
39 ResultId => 'MyResultId', # min: 1, max: 73
40  
41 },
42 ...
43 ], # OPTIONAL
44 RelevanceFeedbackItems => [
45 {
46 RelevanceValue => 'RELEVANT', # values: RELEVANT, NOT_RELEVANT
47 ResultId => 'MyResultId', # min: 1, max: 73
48  
49 },
50 ...
51 ], # OPTIONAL
52 );
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kendra/SubmitFeedback>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 ClickFeedbackItems => ArrayRef[L<Paws::Kendra::ClickFeedback>]
61  
62 Tells Amazon Kendra that a particular search result link was chosen by
63 the user.
64  
65  
66  
67 =head2 B<REQUIRED> IndexId => Str
68  
69 The identifier of the index that was queried.
70  
71  
72  
73 =head2 B<REQUIRED> QueryId => Str
74  
75 The identifier of the specific query for which you are submitting
76 feedback. The query ID is returned in the response to the C<Query>
77 operation.
78  
79  
80  
81 =head2 RelevanceFeedbackItems => ArrayRef[L<Paws::Kendra::RelevanceFeedback>]
82  
83 Provides Amazon Kendra with relevant or not relevant feedback for
84 whether a particular item was relevant to the search.
85  
86  
87  
88  
89 =head1 SEE ALSO
90  
91 This class forms part of L<Paws>, documenting arguments for method SubmitFeedback in L<Paws::Kendra>
92  
93 =head1 BUGS and CONTRIBUTIONS
94  
95 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
96  
97 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
98  
99 =cut
100