« lib/Amazon/SQS/Model/ChangeMessageVisibilityBatchRequestEntry.pm
↑ Summary
lib/Amazon/SQS/Model/SendMessageRequest.pm »
| 1 | ################################################################################ | ||
| 2 | # Copyright 2008 Amazon Technologies, Inc. | ||
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | # | ||
| 5 | # You may not use this file except in compliance with the License. | ||
| 6 | # You may obtain a copy of the License at: http://aws.amazon.com/apache2.0 | ||
| 7 | # This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
| 8 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
| 9 | # specific language governing permissions and limitations under the License. | ||
| 10 | # | ||
| 11 | # Copyright 2016 Robert C. Lauer | ||
| 12 | # | ||
| 13 | # Note: The software contained in this distribution has been modified from the | ||
| 14 | # original. You may freely use and distribute this software under the | ||
| 15 | # terms of the original license. | ||
| 16 | # | ||
| 17 | ################################################################################ | ||
| 18 | # __ _ _ ___ | ||
| 19 | # ( )( \/\/ )/ __) | ||
| 20 | # /__\ \ / \__ \ | ||
| 21 | # (_)(_) \/\/ (___/ | ||
| 22 | # | ||
| 23 | # Amazon SQS Perl Library | ||
| 24 | # API Version: 2009-02-01 | ||
| 25 | # Generated: Thu Apr 09 01:13:11 PDT 2009 | ||
| 26 | # | ||
| 27 | |||
| 28 | # This work has been modified from the original Copyright 2016 Robert C. Lauer | ||
| 29 | |||
| 30 | package Amazon::SQS::Model::MessageAttributeValue; | ||
| 31 | |||
| 32 | use base qw (Amazon::SQS::Model); | ||
| 33 | |||
| 34 | |||
| 35 | |||
| 36 | # | ||
| 37 | # Amazon::SQS::Model::MessageAttributeValue | ||
| 38 | # | ||
| 39 | # Properties: | ||
| 40 | # | ||
| 41 | # | ||
| 42 | # BinaryValue: string | ||
| 43 | # StringValue: string | ||
| 44 | # DataType: string ('StringValue', 'BinaryValue') | ||
| 45 | # | ||
| 46 | sub new { | ||
| 47 | my ($class, $data) = @_; | ||
| 48 | my $self = {}; | ||
| 49 | $self->{_fields} = { | ||
| 50 | BinaryValue => {FieldValue => undef, FieldType => "string"}, | ||
| 51 | StringValue => {FieldValue => undef, FieldType => "string"}, | ||
| 52 | DataType => { FieldValue => undef, FieldType => "string"} | ||
| 53 | }; | ||
| 54 | |||
| 55 | bless ($self, $class); | ||
| 56 | if (defined $data) { | ||
| 57 | $self->_fromHashRef($data); | ||
| 58 | } | ||
| 59 | |||
| 60 | return $self; | ||
| 61 | } | ||
| 62 | |||
| 63 | sub getBinaryValue { | ||
| 64 | return shift->{_fields}->{BinaryValue}->{FieldValue}; | ||
| 65 | } | ||
| 66 | |||
| 67 | |||
| 68 | sub setBinaryValue { | ||
| 69 | my ($self, $value) = @_; | ||
| 70 | |||
| 71 | $self->{_fields}->{BinaryValue}->{FieldValue} = $value; | ||
| 72 | return $self; | ||
| 73 | } | ||
| 74 | |||
| 75 | |||
| 76 | sub withBinaryValue { | ||
| 77 | my ($self, $value) = @_; | ||
| 78 | $self->setBinaryValue($value); | ||
| 79 | return $self; | ||
| 80 | } | ||
| 81 | |||
| 82 | |||
| 83 | sub isSetBinaryValue { | ||
| 84 | return defined (shift->{_fields}->{BinaryValue}->{FieldValue}); | ||
| 85 | } | ||
| 86 | |||
| 87 | |||
| 88 | sub getStringValue { | ||
| 89 | return shift->{_fields}->{StringValue}->{FieldValue}; | ||
| 90 | } | ||
| 91 | |||
| 92 | |||
| 93 | sub setStringValue { | ||
| 94 | my ($self, $value) = @_; | ||
| 95 | |||
| 96 | $self->{_fields}->{StringValue}->{FieldValue} = $value; | ||
| 97 | return $self; | ||
| 98 | } | ||
| 99 | |||
| 100 | |||
| 101 | sub withStringValue { | ||
| 102 | my ($self, $value) = @_; | ||
| 103 | $self->setStringValue($value); | ||
| 104 | return $self; | ||
| 105 | } | ||
| 106 | |||
| 107 | |||
| 108 | sub isSetStringValue { | ||
| 109 | return defined (shift->{_fields}->{StringValue}->{FieldValue}); | ||
| 110 | } | ||
| 111 | |||
| 112 | |||
| 113 | sub getDataType { | ||
| 114 | return shift->{_fields}->{DataType}->{FieldValue}; | ||
| 115 | } | ||
| 116 | |||
| 117 | sub setDataType { | ||
| 118 | my ($self, $value) = @_; | ||
| 119 | |||
| 120 | $self->{_fields}->{DataType}->{FieldValue} = $value; | ||
| 121 | return $self; | ||
| 122 | } | ||
| 123 | |||
| 124 | |||
| 125 | sub withDataType { | ||
| 126 | my ($self, $value) = @_; | ||
| 127 | $self->setDataType($value); | ||
| 128 | return $self; | ||
| 129 | } | ||
| 130 | |||
| 131 | |||
| 132 | sub isSetDataType { | ||
| 133 | return defined (shift->{_fields}->{DataType}->{FieldValue}); | ||
| 134 | } | ||
| 135 | |||
| 136 | |||
| 137 | 1; |