blib/lib/Paws/FraudDetector/CreateVariable.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::FraudDetector::CreateVariable;
3 use Moose;
4 has DataSource => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'dataSource' , required => 1);
5 has DataType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'dataType' , required => 1);
6 has DefaultValue => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'defaultValue' , required => 1);
7 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
8 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::FraudDetector::Tag]', traits => ['NameInRequest'], request_name => 'tags' );
10 has VariableType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'variableType' );
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVariable');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::FraudDetector::CreateVariableResult');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::FraudDetector::CreateVariable - Arguments for method CreateVariable on L<Paws::FraudDetector>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateVariable on the
28 L<Amazon Fraud Detector|Paws::FraudDetector> service. Use the attributes of this class
29 as arguments to method CreateVariable.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVariable.
32  
33 =head1 SYNOPSIS
34  
35 my $frauddetector = Paws->service('FraudDetector');
36 my $CreateVariableResult = $frauddetector->CreateVariable(
37 DataSource => 'EVENT',
38 DataType => 'STRING',
39 DefaultValue => 'Mystring',
40 Name => 'Mystring',
41 Description => 'Mystring', # OPTIONAL
42 Tags => [
43 {
44 Key => 'MytagKey', # min: 1, max: 128
45 Value => 'MytagValue', # max: 256
46  
47 },
48 ...
49 ], # OPTIONAL
50 VariableType => 'Mystring', # OPTIONAL
51 );
52  
53 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.
54 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/frauddetector/CreateVariable>
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 B<REQUIRED> DataSource => Str
60  
61 The source of the data.
62  
63 Valid values are: C<"EVENT">, C<"MODEL_SCORE">, C<"EXTERNAL_MODEL_SCORE">
64  
65 =head2 B<REQUIRED> DataType => Str
66  
67 The data type.
68  
69 Valid values are: C<"STRING">, C<"INTEGER">, C<"FLOAT">, C<"BOOLEAN">
70  
71 =head2 B<REQUIRED> DefaultValue => Str
72  
73 The default value for the variable when no value is received.
74  
75  
76  
77 =head2 Description => Str
78  
79 The description.
80  
81  
82  
83 =head2 B<REQUIRED> Name => Str
84  
85 The name of the variable.
86  
87  
88  
89 =head2 Tags => ArrayRef[L<Paws::FraudDetector::Tag>]
90  
91 A collection of key and value pairs.
92  
93  
94  
95 =head2 VariableType => Str
96  
97 The variable type. For more information see Variable types
98 (https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types).
99  
100 Valid Values: C<AUTH_CODE | AVS | BILLING_ADDRESS_L1 |
101 BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME |
102 BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL |
103 CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL |
104 FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE |
105 PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 |
106 SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME
107 | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT>
108  
109  
110  
111  
112 =head1 SEE ALSO
113  
114 This class forms part of L<Paws>, documenting arguments for method CreateVariable in L<Paws::FraudDetector>
115  
116 =head1 BUGS and CONTRIBUTIONS
117  
118 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
119  
120 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
121  
122 =cut
123