Amazon-SQS-Client
view release on metacpan or search on metacpan
lib/Amazon/SQS/Model/Error.pm view on Meta::CPAN
################################################################################
# Copyright 2008 Amazon Technologies, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
#
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
################################################################################
# __ _ _ ___
# ( )( \/\/ )/ __)
# /__\ \ / \__ \
# (_)(_) \/\/ (___/
#
# Amazon SQS Perl Library
# API Version: 2009-02-01
# Generated: Thu Apr 09 01:13:11 PDT 2009
#
package Amazon::SQS::Model::Error;
use base qw (Amazon::SQS::Model);
#
# Amazon::SQS::Model::Error
#
# Properties:
#
#
# Type: string
# Code: string
# Message: string
# Detail: Amazon::SQS::Model::Object
#
#
#
sub new {
my ($class, $data) = @_;
my $self = {};
$self->{_fields} = {
Type => { FieldValue => undef, FieldType => "string"},
Code => { FieldValue => undef, FieldType => "string"},
Message => { FieldValue => undef, FieldType => "string"},
Detail => {FieldValue => undef, FieldType => "Amazon::SQS::Model::Object"},
};
bless ($self, $class);
if (defined $data) {
$self->_fromHashRef($data);
}
return $self;
}
sub getType {
return shift->{_fields}->{Type}->{FieldValue};
}
sub setType {
my ($self, $value) = @_;
$self->{_fields}->{Type}->{FieldValue} = $value;
return $self;
}
sub withType {
my ($self, $value) = @_;
$self->setType($value);
return $self;
}
sub isSetType {
return defined (shift->{_fields}->{Type}->{FieldValue});
}
sub getCode {
return shift->{_fields}->{Code}->{FieldValue};
}
sub setCode {
my ($self, $value) = @_;
$self->{_fields}->{Code}->{FieldValue} = $value;
return $self;
}
sub withCode {
my ($self, $value) = @_;
$self->setCode($value);
return $self;
}
sub isSetCode {
return defined (shift->{_fields}->{Code}->{FieldValue});
}
sub getMessage {
return shift->{_fields}->{Message}->{FieldValue};
( run in 1.006 second using v1.01-cache-2.11-cpan-39bf76dae61 )