Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12451 kshitij.so 1
 
2
package com.amazonaws.mws.model;
3
 
4
import javax.xml.bind.annotation.XmlAccessType;
5
import javax.xml.bind.annotation.XmlAccessorType;
6
import javax.xml.bind.annotation.XmlElement;
7
import javax.xml.bind.annotation.XmlRootElement;
8
import javax.xml.bind.annotation.XmlSchemaType;
9
import javax.xml.bind.annotation.XmlType;
10
import javax.xml.datatype.XMLGregorianCalendar;
11
 
12
 
13
/**
14
 * <p>Java class for anonymous complex type.
15
 * 
16
 * <p>The following schema fragment specifies the expected content contained within this class.
17
 * 
18
 * <pre>
19
 * &lt;complexType>
20
 *   &lt;complexContent>
21
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22
 *       &lt;sequence>
23
 *         &lt;element name="Marketplace" type="{http://www.w3.org/2001/XMLSchema}string"/>
24
 *         &lt;element name="Merchant" type="{http://www.w3.org/2001/XMLSchema}string"/>
25
 *         &lt;element name="FeedSubmissionIdList" type="{http://mws.amazonaws.com/doc/2009-01-01/}IdList" minOccurs="0"/>
26
 *         &lt;element name="MaxCount" type="{http://mws.amazonaws.com/doc/2009-01-01/}Count" minOccurs="0"/>
27
 *         &lt;element name="FeedTypeList" type="{http://mws.amazonaws.com/doc/2009-01-01/}TypeList" minOccurs="0"/>
28
 *         &lt;element name="FeedProcessingStatusList" type="{http://mws.amazonaws.com/doc/2009-01-01/}StatusList" minOccurs="0"/>
29
 *         &lt;element name="SubmittedFromDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
30
 *         &lt;element name="SubmittedToDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
31
 *       &lt;/sequence>
32
 *     &lt;/restriction>
33
 *   &lt;/complexContent>
34
 * &lt;/complexType>
35
 * </pre>
36
 * Generated by AWS Code Generator
37
 * <p/>
38
 * Wed Feb 18 13:28:59 PST 2009
39
 * 
40
 */
41
@XmlAccessorType(XmlAccessType.FIELD)
42
@XmlType(name = "", propOrder = {
43
    "marketplace",
44
    "merchant",
45
    "feedSubmissionIdList",
46
    "maxCount",
47
    "feedTypeList",
48
    "feedProcessingStatusList",
49
    "submittedFromDate",
50
    "submittedToDate"
51
})
52
@XmlRootElement(name = "GetFeedSubmissionListRequest")
53
public class GetFeedSubmissionListRequest {
54
 
55
    @XmlElement(name = "Marketplace")
56
    protected String marketplace;
57
    @XmlElement(name = "Merchant", required = true)
58
    protected String merchant;
59
    @XmlElement(name = "FeedSubmissionIdList")
60
    protected IdList feedSubmissionIdList;
61
    @XmlElement(name = "MaxCount")
62
    protected Integer maxCount;
63
    @XmlElement(name = "FeedTypeList")
64
    protected TypeList feedTypeList;
65
    @XmlElement(name = "FeedProcessingStatusList")
66
    protected StatusList feedProcessingStatusList;
67
    @XmlElement(name = "SubmittedFromDate")
68
    @XmlSchemaType(name = "dateTime")
69
    protected XMLGregorianCalendar submittedFromDate;
70
    @XmlElement(name = "SubmittedToDate")
71
    @XmlSchemaType(name = "dateTime")
72
    protected XMLGregorianCalendar submittedToDate;
73
 
74
    /**
75
     * Default constructor
76
     * 
77
     */
78
    public GetFeedSubmissionListRequest() {
79
        super();
80
    }
81
 
82
    /**
83
     * Value constructor
84
     * 
85
     */
86
    public GetFeedSubmissionListRequest(final String marketplace, final String merchant, final IdList feedSubmissionIdList, final Integer maxCount, final TypeList feedTypeList, final StatusList feedProcessingStatusList, final XMLGregorianCalendar submittedFromDate, final XMLGregorianCalendar submittedToDate) {
87
        this.marketplace = marketplace;
88
        this.merchant = merchant;
89
        this.feedSubmissionIdList = feedSubmissionIdList;
90
        this.maxCount = maxCount;
91
        this.feedTypeList = feedTypeList;
92
        this.feedProcessingStatusList = feedProcessingStatusList;
93
        this.submittedFromDate = submittedFromDate;
94
        this.submittedToDate = submittedToDate;
95
    }
96
 
97
    /**
98
     * Gets the value of the marketplace property.
99
     * 
100
     * @deprecated  See {@link #setMarketplace(String)}
101
     * @return
102
     *     possible object is
103
     *     {@link String }
104
     *     
105
     */
106
    public String getMarketplace() {
107
        return marketplace;
108
    }
109
 
110
    /**
111
     * Sets the value of the marketplace property.
112
     * 
113
     * @deprecated Not used anymore.  MWS ignores this parameter, but it is left
114
     * in here for backwards compatibility.
115
     * @param value
116
     *     allowed object is
117
     *     {@link String }
118
     *     
119
     */
120
    public void setMarketplace(String value) {
121
        this.marketplace = value;
122
    }
123
 
124
    /**
125
     * @deprecated  See {@link #setMarketplace(String)}
126
     */
127
    public boolean isSetMarketplace() {
128
        return (this.marketplace!= null);
129
    }
130
 
131
    /**
132
     * Gets the value of the merchant property.
133
     * 
134
     * @return
135
     *     possible object is
136
     *     {@link String }
137
     *     
138
     */
139
    public String getMerchant() {
140
        return merchant;
141
    }
142
 
143
    /**
144
     * Sets the value of the merchant property.
145
     * 
146
     * @param value
147
     *     allowed object is
148
     *     {@link String }
149
     *     
150
     */
151
    public void setMerchant(String value) {
152
        this.merchant = value;
153
    }
154
 
155
    public boolean isSetMerchant() {
156
        return (this.merchant!= null);
157
    }
158
 
159
    /**
160
     * Gets the value of the feedSubmissionIdList property.
161
     * 
162
     * @return
163
     *     possible object is
164
     *     {@link IdList }
165
     *     
166
     */
167
    public IdList getFeedSubmissionIdList() {
168
        return feedSubmissionIdList;
169
    }
170
 
171
    /**
172
     * Sets the value of the feedSubmissionIdList property.
173
     * 
174
     * @param value
175
     *     allowed object is
176
     *     {@link IdList }
177
     *     
178
     */
179
    public void setFeedSubmissionIdList(IdList value) {
180
        this.feedSubmissionIdList = value;
181
    }
182
 
183
    public boolean isSetFeedSubmissionIdList() {
184
        return (this.feedSubmissionIdList!= null);
185
    }
186
 
187
    /**
188
     * Gets the value of the maxCount property.
189
     * 
190
     * @return
191
     *     possible object is
192
     *     {@link Integer }
193
     *     
194
     */
195
    public Integer getMaxCount() {
196
        return maxCount;
197
    }
198
 
199
    /**
200
     * Sets the value of the maxCount property.
201
     * 
202
     * @param value
203
     *     allowed object is
204
     *     {@link Integer }
205
     *     
206
     */
207
    public void setMaxCount(Integer value) {
208
        this.maxCount = value;
209
    }
210
 
211
    public boolean isSetMaxCount() {
212
        return (this.maxCount!= null);
213
    }
214
 
215
    /**
216
     * Gets the value of the feedTypeList property.
217
     * 
218
     * @return
219
     *     possible object is
220
     *     {@link TypeList }
221
     *     
222
     */
223
    public TypeList getFeedTypeList() {
224
        return feedTypeList;
225
    }
226
 
227
    /**
228
     * Sets the value of the feedTypeList property.
229
     * 
230
     * @param value
231
     *     allowed object is
232
     *     {@link TypeList }
233
     *     
234
     */
235
    public void setFeedTypeList(TypeList value) {
236
        this.feedTypeList = value;
237
    }
238
 
239
    public boolean isSetFeedTypeList() {
240
        return (this.feedTypeList!= null);
241
    }
242
 
243
    /**
244
     * Gets the value of the feedProcessingStatusList property.
245
     * 
246
     * @return
247
     *     possible object is
248
     *     {@link StatusList }
249
     *     
250
     */
251
    public StatusList getFeedProcessingStatusList() {
252
        return feedProcessingStatusList;
253
    }
254
 
255
    /**
256
     * Sets the value of the feedProcessingStatusList property.
257
     * 
258
     * @param value
259
     *     allowed object is
260
     *     {@link StatusList }
261
     *     
262
     */
263
    public void setFeedProcessingStatusList(StatusList value) {
264
        this.feedProcessingStatusList = value;
265
    }
266
 
267
    public boolean isSetFeedProcessingStatusList() {
268
        return (this.feedProcessingStatusList!= null);
269
    }
270
 
271
    /**
272
     * Gets the value of the submittedFromDate property.
273
     * 
274
     * @return
275
     *     possible object is
276
     *     {@link XMLGregorianCalendar }
277
     *     
278
     */
279
    public XMLGregorianCalendar getSubmittedFromDate() {
280
        return submittedFromDate;
281
    }
282
 
283
    /**
284
     * Sets the value of the submittedFromDate property.
285
     * 
286
     * @param value
287
     *     allowed object is
288
     *     {@link XMLGregorianCalendar }
289
     *     
290
     */
291
    public void setSubmittedFromDate(XMLGregorianCalendar value) {
292
        this.submittedFromDate = value;
293
    }
294
 
295
    public boolean isSetSubmittedFromDate() {
296
        return (this.submittedFromDate!= null);
297
    }
298
 
299
    /**
300
     * Gets the value of the submittedToDate property.
301
     * 
302
     * @return
303
     *     possible object is
304
     *     {@link XMLGregorianCalendar }
305
     *     
306
     */
307
    public XMLGregorianCalendar getSubmittedToDate() {
308
        return submittedToDate;
309
    }
310
 
311
    /**
312
     * Sets the value of the submittedToDate property.
313
     * 
314
     * @param value
315
     *     allowed object is
316
     *     {@link XMLGregorianCalendar }
317
     *     
318
     */
319
    public void setSubmittedToDate(XMLGregorianCalendar value) {
320
        this.submittedToDate = value;
321
    }
322
 
323
    public boolean isSetSubmittedToDate() {
324
        return (this.submittedToDate!= null);
325
    }
326
 
327
    /**
328
     * Sets the value of the Marketplace property.
329
     * 
330
     * @deprecated  See {@link #setMarketplace(String)}
331
     * @param value
332
     * @return
333
     *     this instance
334
     */
335
    public GetFeedSubmissionListRequest withMarketplace(String value) {
336
        setMarketplace(value);
337
        return this;
338
    }
339
 
340
    /**
341
     * Sets the value of the Merchant property.
342
     * 
343
     * @param value
344
     * @return
345
     *     this instance
346
     */
347
    public GetFeedSubmissionListRequest withMerchant(String value) {
348
        setMerchant(value);
349
        return this;
350
    }
351
 
352
    /**
353
     * Sets the value of the FeedSubmissionIdList property.
354
     * 
355
     * @param value
356
     * @return
357
     *     this instance
358
     */
359
    public GetFeedSubmissionListRequest withFeedSubmissionIdList(IdList value) {
360
        setFeedSubmissionIdList(value);
361
        return this;
362
    }
363
 
364
    /**
365
     * Sets the value of the MaxCount property.
366
     * 
367
     * @param value
368
     * @return
369
     *     this instance
370
     */
371
    public GetFeedSubmissionListRequest withMaxCount(Integer value) {
372
        setMaxCount(value);
373
        return this;
374
    }
375
 
376
    /**
377
     * Sets the value of the FeedTypeList property.
378
     * 
379
     * @param value
380
     * @return
381
     *     this instance
382
     */
383
    public GetFeedSubmissionListRequest withFeedTypeList(TypeList value) {
384
        setFeedTypeList(value);
385
        return this;
386
    }
387
 
388
    /**
389
     * Sets the value of the FeedProcessingStatusList property.
390
     * 
391
     * @param value
392
     * @return
393
     *     this instance
394
     */
395
    public GetFeedSubmissionListRequest withFeedProcessingStatusList(StatusList value) {
396
        setFeedProcessingStatusList(value);
397
        return this;
398
    }
399
 
400
    /**
401
     * Sets the value of the SubmittedFromDate property.
402
     * 
403
     * @param value
404
     * @return
405
     *     this instance
406
     */
407
    public GetFeedSubmissionListRequest withSubmittedFromDate(XMLGregorianCalendar value) {
408
        setSubmittedFromDate(value);
409
        return this;
410
    }
411
 
412
    /**
413
     * Sets the value of the SubmittedToDate property.
414
     * 
415
     * @param value
416
     * @return
417
     *     this instance
418
     */
419
    public GetFeedSubmissionListRequest withSubmittedToDate(XMLGregorianCalendar value) {
420
        setSubmittedToDate(value);
421
        return this;
422
    }
423
 
424
 
425
 
426
    /**
427
     *
428
     * JSON fragment representation of this object
429
     *
430
     * @return JSON fragment for this object. Name for outer
431
     * object expected to be set by calling method. This fragment
432
     * returns inner properties representation only
433
     *
434
     */
435
    protected String toJSONFragment() {
436
        StringBuffer json = new StringBuffer();
437
        boolean first = true;
438
        if (isSetMarketplace()) {
439
            if (!first) json.append(", ");
440
            json.append(quoteJSON("Marketplace"));
441
            json.append(" : ");
442
            json.append(quoteJSON(getMarketplace()));
443
            first = false;
444
        }
445
        if (isSetMerchant()) {
446
            if (!first) json.append(", ");
447
            json.append(quoteJSON("Merchant"));
448
            json.append(" : ");
449
            json.append(quoteJSON(getMerchant()));
450
            first = false;
451
        }
452
        if (isSetFeedSubmissionIdList()) {
453
            if (!first) json.append(", ");
454
            json.append("\"FeedSubmissionIdList\" : {");
455
            IdList  feedSubmissionIdList = getFeedSubmissionIdList();
456
 
457
 
458
            json.append(feedSubmissionIdList.toJSONFragment());
459
            json.append("}");
460
            first = false;
461
        }
462
        if (isSetMaxCount()) {
463
            if (!first) json.append(", ");
464
            json.append(quoteJSON("MaxCount"));
465
            json.append(" : ");
466
            json.append(quoteJSON(getMaxCount() + ""));
467
            first = false;
468
        }
469
        if (isSetFeedTypeList()) {
470
            if (!first) json.append(", ");
471
            json.append("\"FeedTypeList\" : {");
472
            TypeList  feedTypeList = getFeedTypeList();
473
 
474
 
475
            json.append(feedTypeList.toJSONFragment());
476
            json.append("}");
477
            first = false;
478
        }
479
        if (isSetFeedProcessingStatusList()) {
480
            if (!first) json.append(", ");
481
            json.append("\"FeedProcessingStatusList\" : {");
482
            StatusList  feedProcessingStatusList = getFeedProcessingStatusList();
483
 
484
 
485
            json.append(feedProcessingStatusList.toJSONFragment());
486
            json.append("}");
487
            first = false;
488
        }
489
        if (isSetSubmittedFromDate()) {
490
            if (!first) json.append(", ");
491
            json.append(quoteJSON("SubmittedFromDate"));
492
            json.append(" : ");
493
            json.append(quoteJSON(getSubmittedFromDate() + ""));
494
            first = false;
495
        }
496
        if (isSetSubmittedToDate()) {
497
            if (!first) json.append(", ");
498
            json.append(quoteJSON("SubmittedToDate"));
499
            json.append(" : ");
500
            json.append(quoteJSON(getSubmittedToDate() + ""));
501
            first = false;
502
        }
503
        return json.toString();
504
    }
505
 
506
    /**
507
     *
508
     * Quote JSON string
509
     */
510
    private String quoteJSON(String string) {
511
        StringBuffer sb = new StringBuffer();
512
        sb.append("\"");
513
        int length = string.length();
514
        for (int i = 0; i < length; ++i) {
515
            char c = string.charAt(i);
516
            switch (c) {
517
            case '"':
518
                sb.append("\\\"");
519
                break;
520
            case '\\':
521
                sb.append("\\\\");
522
                break;
523
            case '/':
524
                sb.append("\\/");
525
                break;
526
            case '\b':
527
                sb.append("\\b");
528
                break;
529
            case '\f':
530
                sb.append("\\f");
531
                break;
532
            case '\n':
533
                sb.append("\\n");
534
                break;
535
            case '\r':
536
                sb.append("\\r");
537
                break;
538
            case '\t':
539
                sb.append("\\t");
540
                break;
541
            default:
542
                if (c <  ' ') {
543
                    sb.append("\\u" + String.format("%03x", Integer.valueOf(c)));
544
                } else {
545
                sb.append(c);
546
            }
547
        }
548
        }
549
        sb.append("\"");
550
        return sb.toString();
551
    }
552
 
553
 
554
}