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 java.io.OutputStream;
5
 
6
import javax.xml.bind.annotation.XmlAccessType;
7
import javax.xml.bind.annotation.XmlAccessorType;
8
import javax.xml.bind.annotation.XmlElement;
9
import javax.xml.bind.annotation.XmlRootElement;
10
import javax.xml.bind.annotation.XmlType;
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="FeedSubmissionId" type="{http://www.w3.org/2001/XMLSchema}string"/>
26
 *       &lt;/sequence>
27
 *     &lt;/restriction>
28
 *   &lt;/complexContent>
29
 * &lt;/complexType>
30
 * </pre>
31
 * Generated by AWS Code Generator
32
 * <p/>
33
 * Tue Feb 03 16:00:09 PST 2009
34
 * 
35
 */
36
@XmlAccessorType(XmlAccessType.FIELD)
37
@XmlType(name = "", propOrder = {
38
    "marketplace",
39
    "merchant",
40
    "feedSubmissionId",
41
    "feedSubmissionResultOutputStream"
42
})
43
@XmlRootElement(name = "GetFeedSubmissionResultRequest")
44
public class GetFeedSubmissionResultRequest {
45
 
46
    @XmlElement(name = "Marketplace")
47
    protected String marketplace;
48
    @XmlElement(name = "Merchant", required = true)
49
    protected String merchant;
50
    @XmlElement(name = "FeedSubmissionId", required = true)
51
    protected String feedSubmissionId;
52
    @XmlElement(name = "FeedSubmissionResultOutputStream")
53
    protected OutputStream feedSubmissionResultOutputStream;
54
 
55
    /**
56
     * Default constructor
57
     * 
58
     */
59
    public GetFeedSubmissionResultRequest() {
60
        super();
61
    }
62
 
63
    /**
64
     * Value constructor
65
     * 
66
     */
67
    public GetFeedSubmissionResultRequest(final String marketplace, final String merchant, final String feedSubmissionId) {
68
        this.marketplace = marketplace;
69
        this.merchant = merchant;
70
        this.feedSubmissionId = feedSubmissionId;
71
    }
72
 
73
    /**
74
     * Gets the value of the marketplace property.
75
     * 
76
     * @deprecated  See {@link #setMarketplace(String)}
77
     * @return
78
     *     possible object is
79
     *     {@link String }
80
     *     
81
     */
82
    public String getMarketplace() {
83
        return marketplace;
84
    }
85
 
86
    /**
87
     * Sets the value of the marketplace property.
88
     * 
89
     * @deprecated Not used anymore.  MWS ignores this parameter, but it is left
90
     * in here for backwards compatibility.
91
     * @param value
92
     *     allowed object is
93
     *     {@link String }
94
     *     
95
     */
96
    public void setMarketplace(String value) {
97
        this.marketplace = value;
98
    }
99
 
100
    /**
101
     * @deprecated  See {@link #setMarketplace(String)}
102
     */
103
    public boolean isSetMarketplace() {
104
        return (this.marketplace!= null);
105
    }
106
 
107
    /**
108
     * Gets the value of the merchant property.
109
     * 
110
     * @return
111
     *     possible object is
112
     *     {@link String }
113
     *     
114
     */
115
    public String getMerchant() {
116
        return merchant;
117
    }
118
 
119
    /**
120
     * Sets the value of the merchant property.
121
     * 
122
     * @param value
123
     *     allowed object is
124
     *     {@link String }
125
     *     
126
     */
127
    public void setMerchant(String value) {
128
        this.merchant = value;
129
    }
130
 
131
    public boolean isSetMerchant() {
132
        return (this.merchant!= null);
133
    }
134
 
135
    /**
136
     * Gets the value of the feedSubmissionId property.
137
     * 
138
     * @return
139
     *     possible object is
140
     *     {@link String }
141
     *     
142
     */
143
    public String getFeedSubmissionId() {
144
        return feedSubmissionId;
145
    }
146
 
147
    /**
148
     * Sets the value of the feedSubmissionId property.
149
     * 
150
     * @param value
151
     *     allowed object is
152
     *     {@link String }
153
     *     
154
     */
155
    public void setFeedSubmissionId(String value) {
156
        this.feedSubmissionId = value;
157
    }
158
 
159
    public boolean isSetFeedSubmissionId() {
160
        return (this.feedSubmissionId!= null);
161
    }
162
 
163
    public OutputStream getFeedSubmissionResultOutputStream( ) {
164
        return this.feedSubmissionResultOutputStream;
165
    }
166
 
167
    public void setFeedSubmissionResultOutputStream( OutputStream feedSubmissionResultOutputStream ) {
168
        this.feedSubmissionResultOutputStream = feedSubmissionResultOutputStream;
169
    }
170
 
171
    /**
172
     * Sets the value of the Marketplace property.
173
     * 
174
     * @deprecated  See {@link #setMarketplace(String)}
175
     * @param value
176
     * @return
177
     *     this instance
178
     */
179
    public GetFeedSubmissionResultRequest withMarketplace(String value) {
180
        setMarketplace(value);
181
        return this;
182
    }
183
 
184
    /**
185
     * Sets the value of the Merchant property.
186
     * 
187
     * @param value
188
     * @return
189
     *     this instance
190
     */
191
    public GetFeedSubmissionResultRequest withMerchant(String value) {
192
        setMerchant(value);
193
        return this;
194
    }
195
 
196
    /**
197
     * Sets the value of the FeedSubmissionId property.
198
     * 
199
     * @param value
200
     * @return
201
     *     this instance
202
     */
203
    public GetFeedSubmissionResultRequest withFeedSubmissionId(String value) {
204
        setFeedSubmissionId(value);
205
        return this;
206
    }
207
 
208
    /**
209
     *
210
     * JSON fragment representation of this object
211
     *
212
     * @return JSON fragment for this object. Name for outer
213
     * object expected to be set by calling method. This fragment
214
     * returns inner properties representation only
215
     *
216
     */
217
    protected String toJSONFragment() {
218
        StringBuffer json = new StringBuffer();
219
        boolean first = true;
220
        if (isSetMarketplace()) {
221
            if (!first) json.append(", ");
222
            json.append(quoteJSON("Marketplace"));
223
            json.append(" : ");
224
            json.append(quoteJSON(getMarketplace()));
225
            first = false;
226
        }
227
        if (isSetMerchant()) {
228
            if (!first) json.append(", ");
229
            json.append(quoteJSON("Merchant"));
230
            json.append(" : ");
231
            json.append(quoteJSON(getMerchant()));
232
            first = false;
233
        }
234
        if (isSetFeedSubmissionId()) {
235
            if (!first) json.append(", ");
236
            json.append(quoteJSON("FeedSubmissionId"));
237
            json.append(" : ");
238
            json.append(quoteJSON(getFeedSubmissionId()));
239
            first = false;
240
        }
241
        return json.toString();
242
    }
243
 
244
    /**
245
     *
246
     * Quote JSON string
247
     */
248
    private String quoteJSON(String string) {
249
        StringBuffer sb = new StringBuffer();
250
        sb.append("\"");
251
        int length = string.length();
252
        for (int i = 0; i < length; ++i) {
253
            char c = string.charAt(i);
254
            switch (c) {
255
            case '"':
256
                sb.append("\\\"");
257
                break;
258
            case '\\':
259
                sb.append("\\\\");
260
                break;
261
            case '/':
262
                sb.append("\\/");
263
                break;
264
            case '\b':
265
                sb.append("\\b");
266
                break;
267
            case '\f':
268
                sb.append("\\f");
269
                break;
270
            case '\n':
271
                sb.append("\\n");
272
                break;
273
            case '\r':
274
                sb.append("\\r");
275
                break;
276
            case '\t':
277
                sb.append("\\t");
278
                break;
279
            default:
280
                if (c <  ' ') {
281
                    sb.append("\\u" + String.format("%03x", Integer.valueOf(c)));
282
                } else {
283
                sb.append(c);
284
            }
285
        }
286
        }
287
        sb.append("\"");
288
        return sb.toString();
289
    }
290
 
291
 
292
}