1# -*- perl -*-
2# !!! DO NOT EDIT !!!
3# This file was automatically generated.
4package Net::Amazon::Validate::ItemSearch::de::Software;
5
6use 5.006;
7use strict;
8use warnings;
9
10sub new {
11    my ($class , %options) = @_;
12    my $self = {
13        '_default' => 'Title',
14        %options,
15    };
16
17    push @{$self->{_options}}, 'BrowseNode';
18    push @{$self->{_options}}, 'BrowseNode';
19    push @{$self->{_options}}, 'Condition';
20    push @{$self->{_options}}, 'Condition';
21    push @{$self->{_options}}, 'ItemPage';
22    push @{$self->{_options}}, 'ItemPage';
23    push @{$self->{_options}}, 'Keywords';
24    push @{$self->{_options}}, 'Keywords';
25    push @{$self->{_options}}, 'Manufacturer';
26    push @{$self->{_options}}, 'Manufacturer';
27    push @{$self->{_options}}, 'MaximumPrice';
28    push @{$self->{_options}}, 'MaximumPrice';
29    push @{$self->{_options}}, 'MerchantId';
30    push @{$self->{_options}}, 'MerchantId';
31    push @{$self->{_options}}, 'MinimumPrice';
32    push @{$self->{_options}}, 'MinimumPrice';
33    push @{$self->{_options}}, 'Sort';
34    push @{$self->{_options}}, 'Sort';
35    push @{$self->{_options}}, 'Title';
36    push @{$self->{_options}}, 'Title';
37
38    bless $self, $class;
39}
40
41sub user_or_default {
42    my ($self, $user) = @_;
43    if (defined $user && length($user) > 0) {
44        return $self->find_match($user);
45    }
46    return $self->default();
47}
48
49sub default {
50    my ($self) = @_;
51    return $self->{_default};
52}
53
54sub find_match {
55    my ($self, $value) = @_;
56    for (@{$self->{_options}}) {
57        return $_ if lc($_) eq lc($value);
58    }
59    die "$value is not a valid value for de::Software!\n";
60}
61
621;
63
64__END__
65
66=head1 NAME
67
68Net::Amazon::Validate::ItemSearch::de::Software - valid search indicies
69for the de locale and the Software SearchIndex.
70
71=head1 DESCRIPTION
72
73The default value is Title, unless mode is specified.
74
75The list of available values are:
76
77    BrowseNode
78    BrowseNode
79    Condition
80    Condition
81    ItemPage
82    ItemPage
83    Keywords
84    Keywords
85    Manufacturer
86    Manufacturer
87    MaximumPrice
88    MaximumPrice
89    MerchantId
90    MerchantId
91    MinimumPrice
92    MinimumPrice
93    Sort
94    Sort
95    Title
96    Title
97
98=cut
99