| 1 | # -*- perl -*- | ||
| 2 | # !!! DO NOT EDIT !!! | ||
| 3 | # This file was automatically generated. | ||
| 4 | package Net::Amazon::Validate::Type::CustomerContentLookup; | ||
| 5 | |||
| 6 | use 5.006; | ||
| 7 | use strict; | ||
| 8 | use warnings; | ||
| 9 | |||
| 10 | use constant RESPONSEGROUP_VALID_VALUES => { | ||
| 11 | 'CustomerFull' => 1, | ||
| 12 | 'CustomerInfo' => 1, | ||
| 13 | 'CustomerLists' => 1, | ||
| 14 | 'CustomerReviews' => 1, | ||
| 15 | 'TaggedGuides' => 1, | ||
| 16 | 'TaggedItems' => 1, | ||
| 17 | 'TaggedListmaniaLists' => 1, | ||
| 18 | 'Tags' => 1, | ||
| 19 | 'TagsSummary' => 1, | ||
| 20 | }; | ||
| 21 | |||
| 22 | sub new { | ||
| 23 | my ($class , %options) = @_; | ||
| 24 | my $self = { | ||
| 25 | %options, | ||
| 26 | }; | ||
| 27 | bless $self, $class; | ||
| 28 | } | ||
| 29 | |||
| 30 | sub assert { | ||
| 31 | my ($self, $value, $name, $href) = @_; | ||
| 32 | die "Unknown type in Net::Amazon::Request constructor: $value" unless defined $href->{$value}; | ||
| 33 | } | ||
| 34 | |||
| 35 | sub validate { | ||
| 36 | my ($self, $value, $name, $href) = @_; | ||
| 37 | if ( ref ($value) eq 'ARRAY' ) { | ||
| 38 | $self->assert($_, $name, $href) for (@$value); | ||
| 39 | } else { | ||
| 40 | $self->assert($value, $name, $href); | ||
| 41 | } | ||
| 42 | } | ||
| 43 | |||
| 44 | sub ResponseGroup { | ||
| 45 | my ($self, $value) = @_; | ||
| 46 | $self->validate($value, "ResponseGroup", (RESPONSEGROUP_VALID_VALUES)); | ||
| 47 | } | ||
| 48 | |||
| 49 | 1; |