blib/lib/Paws/Personalize/CreateDataset.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Personalize::CreateDataset;
3 use Moose;
4 has DatasetGroupArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'datasetGroupArn' , required => 1);
5 has DatasetType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'datasetType' , required => 1);
6 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
7 has SchemaArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'schemaArn' , required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDataset');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Personalize::CreateDatasetResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Personalize::CreateDataset - Arguments for method CreateDataset on L<Paws::Personalize>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateDataset on the
25 L<Amazon Personalize|Paws::Personalize> service. Use the attributes of this class
26 as arguments to method CreateDataset.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDataset.
29  
30 =head1 SYNOPSIS
31  
32 my $personalize = Paws->service('Personalize');
33 my $CreateDatasetResponse = $personalize->CreateDataset(
34 DatasetGroupArn => 'MyArn',
35 DatasetType => 'MyDatasetType',
36 Name => 'MyName',
37 SchemaArn => 'MyArn',
38  
39 );
40  
41 # Results:
42 my $DatasetArn = $CreateDatasetResponse->DatasetArn;
43  
44 # Returns a L<Paws::Personalize::CreateDatasetResponse> object.
45  
46 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.
47 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/personalize/CreateDataset>
48  
49 =head1 ATTRIBUTES
50  
51  
52 =head2 B<REQUIRED> DatasetGroupArn => Str
53  
54 The Amazon Resource Name (ARN) of the dataset group to add the dataset
55 to.
56  
57  
58  
59 =head2 B<REQUIRED> DatasetType => Str
60  
61 The type of dataset.
62  
63 One of the following (case insensitive) values:
64  
65 =over
66  
67 =item *
68  
69 Interactions
70  
71 =item *
72  
73 Items
74  
75 =item *
76  
77 Users
78  
79 =back
80  
81  
82  
83  
84 =head2 B<REQUIRED> Name => Str
85  
86 The name for the dataset.
87  
88  
89  
90 =head2 B<REQUIRED> SchemaArn => Str
91  
92 The ARN of the schema to associate with the dataset. The schema defines
93 the dataset fields.
94  
95  
96  
97  
98 =head1 SEE ALSO
99  
100 This class forms part of L<Paws>, documenting arguments for method CreateDataset in L<Paws::Personalize>
101  
102 =head1 BUGS and CONTRIBUTIONS
103  
104 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
105  
106 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
107  
108 =cut
109