Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/*******************************************************************************
3
 *  Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
 *
6
 *  You may not use this file except in compliance with the License.
7
 *  You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
8
 *  This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
 *  CONDITIONS OF ANY KIND, either express or implied. See the License for the
10
 *  specific language governing permissions and limitations under the License.
11
 * *****************************************************************************
12
 */
13
 
14
 
15
/**
16
 *  @see CheckoutByAmazon_Service_Model
17
 */
18
require_once ('CheckoutByAmazon/Service/Model.php');
19
 
20
 
21
 
22
/**
23
 * CheckoutByAmazon_Service_Model_Destination
24
 *
25
 * Properties:
26
 * <ul>
27
 *
28
 * <li>DestinationName: string</li>
29
 * <li>DestinationType: DestinationType</li>
30
 * <li>PhysicalDestinationAttributes: CheckoutByAmazon_Service_Model_PhysicalDestinationAttributes</li>
31
 * <li>DigitalDestinationAttributes: CheckoutByAmazon_Service_Model_DigitalDestinationAttributes</li>
32
 *
33
 * </ul>
34
 */
35
class CheckoutByAmazon_Service_Model_Destination extends CheckoutByAmazon_Service_Model
36
{
37
 
38
 
39
    /**
40
     * Construct new CheckoutByAmazon_Service_Model_Destination
41
     *
42
     * @param mixed $data DOMElement or Associative Array to construct from.
43
     *
44
     * Valid properties:
45
     * <ul>
46
     *
47
     * <li>DestinationName: string</li>
48
     * <li>DestinationType: DestinationType</li>
49
     * <li>PhysicalDestinationAttributes: CheckoutByAmazon_Service_Model_PhysicalDestinationAttributes</li>
50
     * <li>DigitalDestinationAttributes: CheckoutByAmazon_Service_Model_DigitalDestinationAttributes</li>
51
     *
52
     * </ul>
53
     */
54
    public function __construct($data = null)
55
    {
56
        $this->_fields = array (
57
        'DestinationName' => array('FieldValue' => null, 'FieldType' => 'string'),
58
        'DestinationType' => array('FieldValue' => null, 'FieldType' => 'DestinationType'),
59
        'PhysicalDestinationAttributes' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_PhysicalDestinationAttributes'),
60
        'DigitalDestinationAttributes' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_DigitalDestinationAttributes'),
61
        );
62
        parent::__construct($data);
63
    }
64
 
65
        /**
66
     * Gets the value of the DestinationName property.
67
     *
68
     * @return string DestinationName
69
     */
70
    public function getDestinationName()
71
    {
72
        return $this->_fields['DestinationName']['FieldValue'];
73
    }
74
 
75
    /**
76
     * Sets the value of the DestinationName property.
77
     *
78
     * @param string DestinationName
79
     * @return this instance
80
     */
81
    public function setDestinationName($value)
82
    {
83
        $this->_fields['DestinationName']['FieldValue'] = $value;
84
        return $this;
85
    }
86
 
87
 
88
    /**
89
     * Checks if DestinationName is set
90
     *
91
     * @return bool true if DestinationName  is set
92
     */
93
    public function isSetDestinationName()
94
    {
95
        return !is_null($this->_fields['DestinationName']['FieldValue']);
96
    }
97
 
98
    /**
99
     * Gets the value of the DestinationType property.
100
     *
101
     * @return DestinationType DestinationType
102
     */
103
    public function getDestinationType()
104
    {
105
        return $this->_fields['DestinationType']['FieldValue'];
106
    }
107
 
108
    /**
109
     * Sets the value of the DestinationType property.
110
     *
111
     * @param DestinationType DestinationType
112
     * @return this instance
113
     */
114
    public function setDestinationType($value)
115
    {
116
        $this->_fields['DestinationType']['FieldValue'] = $value;
117
        return $this;
118
    }
119
 
120
    /**
121
     * Sets the value of the DestinationType and returns this instance
122
     *
123
     * @param DestinationType $value DestinationType
124
     * @return CheckoutByAmazon_Service_Model_Destination instance
125
     */
126
    public function withDestinationType($value)
127
    {
128
        $this->setDestinationType($value);
129
        return $this;
130
    }
131
 
132
 
133
    /**
134
     * Checks if DestinationType is set
135
     *
136
     * @return bool true if DestinationType  is set
137
     */
138
    public function isSetDestinationType()
139
    {
140
        return !is_null($this->_fields['DestinationType']['FieldValue']);
141
    }
142
 
143
    /**
144
     * Gets the value of the PhysicalDestinationAttributes.
145
     *
146
     * @return PhysicalDestinationAttributes PhysicalDestinationAttributes
147
     */
148
    public function getPhysicalDestinationAttributes()
149
    {
150
        return $this->_fields['PhysicalDestinationAttributes']['FieldValue'];
151
    }
152
 
153
    /**
154
     * Sets the value of the PhysicalDestinationAttributes.
155
     *
156
     * @param PhysicalDestinationAttributes PhysicalDestinationAttributes
157
     * @return void
158
     */
159
    public function setPhysicalDestinationAttributes($value)
160
    {
161
        $this->_fields['PhysicalDestinationAttributes']['FieldValue'] = $value;
162
        return;
163
    }
164
 
165
    /**
166
     * Sets the value of the PhysicalDestinationAttributes  and returns this instance
167
     *
168
     * @param PhysicalDestinationAttributes $value PhysicalDestinationAttributes
169
     * @return CheckoutByAmazon_Service_Model_Destination instance
170
     */
171
    public function withPhysicalDestinationAttributes($value)
172
    {
173
        $this->setPhysicalDestinationAttributes($value);
174
        return $this;
175
    }
176
 
177
 
178
    /**
179
     * Checks if PhysicalDestinationAttributes  is set
180
     *
181
     * @return bool true if PhysicalDestinationAttributes property is set
182
     */
183
    public function isSetPhysicalDestinationAttributes()
184
    {
185
        return !is_null($this->_fields['PhysicalDestinationAttributes']['FieldValue']);
186
 
187
    }
188
 
189
    /**
190
     * Gets the value of the DigitalDestinationAttributes.
191
     *
192
     * @return DigitalDestinationAttributes DigitalDestinationAttributes
193
     */
194
    public function getDigitalDestinationAttributes()
195
    {
196
        return $this->_fields['DigitalDestinationAttributes']['FieldValue'];
197
    }
198
 
199
    /**
200
     * Sets the value of the DigitalDestinationAttributes.
201
     *
202
     * @param DigitalDestinationAttributes DigitalDestinationAttributes
203
     * @return void
204
     */
205
    public function setDigitalDestinationAttributes($value)
206
    {
207
        $this->_fields['DigitalDestinationAttributes']['FieldValue'] = $value;
208
        return;
209
    }
210
 
211
    /**
212
     * Sets the value of the DigitalDestinationAttributes  and returns this instance
213
     *
214
     * @param DigitalDestinationAttributes $value DigitalDestinationAttributes
215
     * @return CheckoutByAmazon_Service_Model_Destination instance
216
     */
217
    public function withDigitalDestinationAttributes($value)
218
    {
219
        $this->setDigitalDestinationAttributes($value);
220
        return $this;
221
    }
222
 
223
 
224
    /**
225
     * Checks if DigitalDestinationAttributes  is set
226
     *
227
     * @return bool true if DigitalDestinationAttributes property is set
228
     */
229
    public function isSetDigitalDestinationAttributes()
230
    {
231
        return !is_null($this->_fields['DigitalDestinationAttributes']['FieldValue']);
232
 
233
    }
234
 
235
 
236
 
237
 
238
}
239
?>