File Coverage

blib/lib/Paws/ElasticTranscoder/CreatePreset.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::ElasticTranscoder::CreatePreset;
3 1     1   390 use Moose;
  1         3  
  1         8  
4             has Audio => (is => 'ro', isa => 'Paws::ElasticTranscoder::AudioParameters');
5             has Container => (is => 'ro', isa => 'Str', required => 1);
6             has Description => (is => 'ro', isa => 'Str');
7             has Name => (is => 'ro', isa => 'Str', required => 1);
8             has Thumbnails => (is => 'ro', isa => 'Paws::ElasticTranscoder::Thumbnails');
9             has Video => (is => 'ro', isa => 'Paws::ElasticTranscoder::VideoParameters');
10              
11 1     1   6148 use MooseX::ClassAttribute;
  1         3  
  1         10  
12              
13             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreatePreset');
14             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2012-09-25/presets');
15             class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ElasticTranscoder::CreatePresetResponse');
17             class_has _result_key => (isa => 'Str', is => 'ro');
18             1;
19              
20             ### main pod documentation begin ###
21              
22             =head1 NAME
23              
24             Paws::ElasticTranscoder::CreatePreset - Arguments for method CreatePreset on Paws::ElasticTranscoder
25              
26             =head1 DESCRIPTION
27              
28             This class represents the parameters used for calling the method CreatePreset on the
29             Amazon Elastic Transcoder service. Use the attributes of this class
30             as arguments to method CreatePreset.
31              
32             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePreset.
33              
34             As an example:
35              
36             $service_obj->CreatePreset(Att1 => $value1, Att2 => $value2, ...);
37              
38             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.
39              
40             =head1 ATTRIBUTES
41              
42              
43             =head2 Audio => L<Paws::ElasticTranscoder::AudioParameters>
44              
45             A section of the request body that specifies the audio parameters.
46              
47              
48              
49             =head2 B<REQUIRED> Container => Str
50              
51             The container type for the output file. Valid values include C<flac>,
52             C<flv>, C<fmp4>, C<gif>, C<mp3>, C<mp4>, C<mpg>, C<mxf>, C<oga>,
53             C<ogg>, C<ts>, and C<webm>.
54              
55              
56              
57             =head2 Description => Str
58              
59             A description of the preset.
60              
61              
62              
63             =head2 B<REQUIRED> Name => Str
64              
65             The name of the preset. We recommend that the name be unique within the
66             AWS account, but uniqueness is not enforced.
67              
68              
69              
70             =head2 Thumbnails => L<Paws::ElasticTranscoder::Thumbnails>
71              
72             A section of the request body that specifies the thumbnail parameters,
73             if any.
74              
75              
76              
77             =head2 Video => L<Paws::ElasticTranscoder::VideoParameters>
78              
79             A section of the request body that specifies the video parameters.
80              
81              
82              
83              
84             =head1 SEE ALSO
85              
86             This class forms part of L<Paws>, documenting arguments for method CreatePreset in L<Paws::ElasticTranscoder>
87              
88             =head1 BUGS and CONTRIBUTIONS
89              
90             The source code is located here: https://github.com/pplu/aws-sdk-perl
91              
92             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
93              
94             =cut
95