blib/lib/Paws/IoTEvents/AssetPropertyVariant.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::IoTEvents::AssetPropertyVariant;
3 use Moose;
4 has BooleanValue => (is => 'ro', isa => 'Str', request_name => 'booleanValue', traits => ['NameInRequest']);
5 has DoubleValue => (is => 'ro', isa => 'Str', request_name => 'doubleValue', traits => ['NameInRequest']);
6 has IntegerValue => (is => 'ro', isa => 'Str', request_name => 'integerValue', traits => ['NameInRequest']);
7 has StringValue => (is => 'ro', isa => 'Str', request_name => 'stringValue', traits => ['NameInRequest']);
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::IoTEvents::AssetPropertyVariant
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::IoTEvents::AssetPropertyVariant object:
27  
28 $service_obj->Method(Att1 => { BooleanValue => $value, ..., StringValue => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::IoTEvents::AssetPropertyVariant object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->BooleanValue
36  
37 =head1 DESCRIPTION
38  
39 A structure that contains an asset property value. For more
40 information, see Variant
41 (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html)
42 in the I<AWS IoT SiteWise API Reference>.
43  
44 You must use expressions for all parameters in C<AssetPropertyVariant>.
45 The expressions accept literals, operators, functions, references, and
46 substitution templates.
47  
48 B<Examples>
49  
50 =over
51  
52 =item *
53  
54 For literal values, the expressions must contain single quotes. For
55 example, the value for the C<integerValue> parameter can be C<'100'>.
56  
57 =item *
58  
59 For references, you must specify either variables or parameters. For
60 example, the value for the C<booleanValue> parameter can be
61 C<$variable.offline>.
62  
63 =item *
64  
65 For a substitution template, you must use C<${}>, and the template must
66 be in single quotes. A substitution template can also contain a
67 combination of literals, operators, functions, references, and
68 substitution templates.
69  
70 In the following example, the value for the C<doubleValue> parameter
71 uses a substitution template.
72  
73 C<'${$input.TemperatureInput.sensorData.temperature * 6 / 5 + 32}'>
74  
75 =back
76  
77 For more information, see Expressions
78 (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html)
79 in the I<AWS IoT Events Developer Guide>.
80  
81 You must specify one of the following value types, depending on the
82 C<dataType> of the specified asset property. For more information, see
83 AssetProperty
84 (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetProperty.html)
85 in the I<AWS IoT SiteWise API Reference>.
86  
87 =head1 ATTRIBUTES
88  
89  
90 =head2 BooleanValue => Str
91  
92 The asset property value is a Boolean value that must be C<'TRUE'> or
93 C<'FALSE'>. You must use an expression, and the evaluated result should
94 be a Boolean value.
95  
96  
97 =head2 DoubleValue => Str
98  
99 The asset property value is a double. You must use an expression, and
100 the evaluated result should be a double.
101  
102  
103 =head2 IntegerValue => Str
104  
105 The asset property value is an integer. You must use an expression, and
106 the evaluated result should be an integer.
107  
108  
109 =head2 StringValue => Str
110  
111 The asset property value is a string. You must use an expression, and
112 the evaluated result should be a string.
113  
114  
115  
116 =head1 SEE ALSO
117  
118 This class forms part of L<Paws>, describing an object used in L<Paws::IoTEvents>
119  
120 =head1 BUGS and CONTRIBUTIONS
121  
122 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
123  
124 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
125  
126 =cut
127