File Coverage

blib/lib/Paws/EC2/HostReservation.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::EC2::HostReservation;
2 1     1   439 use Moose;
  1         2  
  1         7  
3             has Count => (is => 'ro', isa => 'Int', request_name => 'count', traits => ['NameInRequest']);
4             has CurrencyCode => (is => 'ro', isa => 'Str', request_name => 'currencyCode', traits => ['NameInRequest']);
5             has Duration => (is => 'ro', isa => 'Int', request_name => 'duration', traits => ['NameInRequest']);
6             has End => (is => 'ro', isa => 'Str', request_name => 'end', traits => ['NameInRequest']);
7             has HostIdSet => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'hostIdSet', traits => ['NameInRequest']);
8             has HostReservationId => (is => 'ro', isa => 'Str', request_name => 'hostReservationId', traits => ['NameInRequest']);
9             has HourlyPrice => (is => 'ro', isa => 'Str', request_name => 'hourlyPrice', traits => ['NameInRequest']);
10             has InstanceFamily => (is => 'ro', isa => 'Str', request_name => 'instanceFamily', traits => ['NameInRequest']);
11             has OfferingId => (is => 'ro', isa => 'Str', request_name => 'offeringId', traits => ['NameInRequest']);
12             has PaymentOption => (is => 'ro', isa => 'Str', request_name => 'paymentOption', traits => ['NameInRequest']);
13             has Start => (is => 'ro', isa => 'Str', request_name => 'start', traits => ['NameInRequest']);
14             has State => (is => 'ro', isa => 'Str', request_name => 'state', traits => ['NameInRequest']);
15             has UpfrontPrice => (is => 'ro', isa => 'Str', request_name => 'upfrontPrice', traits => ['NameInRequest']);
16             1;
17              
18             ### main pod documentation begin ###
19              
20             =head1 NAME
21              
22             Paws::EC2::HostReservation
23              
24             =head1 USAGE
25              
26             This class represents one of two things:
27              
28             =head3 Arguments in a call to a service
29              
30             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
31             Each attribute should be used as a named argument in the calls that expect this type of object.
32              
33             As an example, if Att1 is expected to be a Paws::EC2::HostReservation object:
34              
35             $service_obj->Method(Att1 => { Count => $value, ..., UpfrontPrice => $value });
36              
37             =head3 Results returned from an API call
38              
39             Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::HostReservation object:
40              
41             $result = $service_obj->Method(...);
42             $result->Att1->Count
43              
44             =head1 DESCRIPTION
45              
46             This class has no description
47              
48             =head1 ATTRIBUTES
49              
50              
51             =head2 Count => Int
52              
53             The number of Dedicated Hosts the reservation is associated with.
54              
55              
56             =head2 CurrencyCode => Str
57              
58             The currency in which the C<upfrontPrice> and C<hourlyPrice> amounts
59             are specified. At this time, the only supported currency is C<USD>.
60              
61              
62             =head2 Duration => Int
63              
64             The length of the reservation's term, specified in seconds. Can be
65             C<31536000 (1 year)> | C<94608000 (3 years)>.
66              
67              
68             =head2 End => Str
69              
70             The date and time that the reservation ends.
71              
72              
73             =head2 HostIdSet => ArrayRef[Str|Undef]
74              
75             The IDs of the Dedicated Hosts associated with the reservation.
76              
77              
78             =head2 HostReservationId => Str
79              
80             The ID of the reservation that specifies the associated Dedicated
81             Hosts.
82              
83              
84             =head2 HourlyPrice => Str
85              
86             The hourly price of the reservation.
87              
88              
89             =head2 InstanceFamily => Str
90              
91             The instance family of the Dedicated Host Reservation. The instance
92             family on the Dedicated Host must be the same in order for it to
93             benefit from the reservation.
94              
95              
96             =head2 OfferingId => Str
97              
98             The ID of the reservation. This remains the same regardless of which
99             Dedicated Hosts are associated with it.
100              
101              
102             =head2 PaymentOption => Str
103              
104             The payment option selected for this reservation.
105              
106              
107             =head2 Start => Str
108              
109             The date and time that the reservation started.
110              
111              
112             =head2 State => Str
113              
114             The state of the reservation.
115              
116              
117             =head2 UpfrontPrice => Str
118              
119             The upfront price of the reservation.
120              
121              
122              
123             =head1 SEE ALSO
124              
125             This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
126              
127             =head1 BUGS and CONTRIBUTIONS
128              
129             The source code is located here: https://github.com/pplu/aws-sdk-perl
130              
131             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
132              
133             =cut