AWS SDK for C++  0.14.3
AWS SDK for C++
Upload.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace DeviceFarm
32 {
33 namespace Model
34 {
35 
41  {
42  public:
43  Upload();
44  Upload(const Aws::Utils::Json::JsonValue& jsonValue);
45  Upload& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetArn() const{ return m_arn; }
52 
56  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 
61  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
62 
66  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 
71  inline Upload& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 
76  inline Upload& WithArn(Aws::String&& value) { SetArn(value); return *this;}
77 
81  inline Upload& WithArn(const char* value) { SetArn(value); return *this;}
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 
96  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 
106  inline Upload& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
111  inline Upload& WithName(Aws::String&& value) { SetName(value); return *this;}
112 
116  inline Upload& WithName(const char* value) { SetName(value); return *this;}
117 
121  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
122 
126  inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
127 
131  inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = value; }
132 
136  inline Upload& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
137 
141  inline Upload& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(value); return *this;}
142 
163  inline const UploadType& GetType() const{ return m_type; }
164 
185  inline void SetType(const UploadType& value) { m_typeHasBeenSet = true; m_type = value; }
186 
207  inline void SetType(UploadType&& value) { m_typeHasBeenSet = true; m_type = value; }
208 
229  inline Upload& WithType(const UploadType& value) { SetType(value); return *this;}
230 
251  inline Upload& WithType(UploadType&& value) { SetType(value); return *this;}
252 
259  inline const UploadStatus& GetStatus() const{ return m_status; }
260 
267  inline void SetStatus(const UploadStatus& value) { m_statusHasBeenSet = true; m_status = value; }
268 
275  inline void SetStatus(UploadStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
276 
283  inline Upload& WithStatus(const UploadStatus& value) { SetStatus(value); return *this;}
284 
291  inline Upload& WithStatus(UploadStatus&& value) { SetStatus(value); return *this;}
292 
297  inline const Aws::String& GetUrl() const{ return m_url; }
298 
303  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
304 
309  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = value; }
310 
315  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
316 
321  inline Upload& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
322 
327  inline Upload& WithUrl(Aws::String&& value) { SetUrl(value); return *this;}
328 
333  inline Upload& WithUrl(const char* value) { SetUrl(value); return *this;}
334 
340  inline const Aws::String& GetMetadata() const{ return m_metadata; }
341 
347  inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
348 
354  inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = value; }
355 
361  inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
362 
368  inline Upload& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
369 
375  inline Upload& WithMetadata(Aws::String&& value) { SetMetadata(value); return *this;}
376 
382  inline Upload& WithMetadata(const char* value) { SetMetadata(value); return *this;}
383 
387  inline const Aws::String& GetContentType() const{ return m_contentType; }
388 
392  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
393 
397  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
398 
402  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
403 
407  inline Upload& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
408 
412  inline Upload& WithContentType(Aws::String&& value) { SetContentType(value); return *this;}
413 
417  inline Upload& WithContentType(const char* value) { SetContentType(value); return *this;}
418 
422  inline const Aws::String& GetMessage() const{ return m_message; }
423 
427  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
428 
432  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
433 
437  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
438 
442  inline Upload& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
443 
447  inline Upload& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
448 
452  inline Upload& WithMessage(const char* value) { SetMessage(value); return *this;}
453 
454  private:
455  Aws::String m_arn;
456  bool m_arnHasBeenSet;
457  Aws::String m_name;
458  bool m_nameHasBeenSet;
459  Aws::Utils::DateTime m_created;
460  bool m_createdHasBeenSet;
461  UploadType m_type;
462  bool m_typeHasBeenSet;
463  UploadStatus m_status;
464  bool m_statusHasBeenSet;
465  Aws::String m_url;
466  bool m_urlHasBeenSet;
467  Aws::String m_metadata;
468  bool m_metadataHasBeenSet;
469  Aws::String m_contentType;
470  bool m_contentTypeHasBeenSet;
471  Aws::String m_message;
472  bool m_messageHasBeenSet;
473  };
474 
475 } // namespace Model
476 } // namespace DeviceFarm
477 } // namespace Aws
#define AWS_DEVICEFARM_API
Upload & WithStatus(const UploadStatus &value)
Definition: Upload.h:283
void SetCreated(Aws::Utils::DateTime &&value)
Definition: Upload.h:131
Upload & WithName(Aws::String &&value)
Definition: Upload.h:111
Upload & WithContentType(const Aws::String &value)
Definition: Upload.h:407
void SetMessage(const char *value)
Definition: Upload.h:437
Upload & WithMessage(const Aws::String &value)
Definition: Upload.h:442
Upload & WithStatus(UploadStatus &&value)
Definition: Upload.h:291
void SetMetadata(const char *value)
Definition: Upload.h:361
Upload & WithName(const Aws::String &value)
Definition: Upload.h:106
Upload & WithMetadata(const char *value)
Definition: Upload.h:382
void SetUrl(const char *value)
Definition: Upload.h:315
Upload & WithCreated(const Aws::Utils::DateTime &value)
Definition: Upload.h:136
const Aws::Utils::DateTime & GetCreated() const
Definition: Upload.h:121
Upload & WithContentType(const char *value)
Definition: Upload.h:417
void SetMessage(Aws::String &&value)
Definition: Upload.h:432
Upload & WithArn(Aws::String &&value)
Definition: Upload.h:76
const UploadStatus & GetStatus() const
Definition: Upload.h:259
Upload & WithCreated(Aws::Utils::DateTime &&value)
Definition: Upload.h:141
Upload & WithMessage(Aws::String &&value)
Definition: Upload.h:447
void SetName(Aws::String &&value)
Definition: Upload.h:96
Upload & WithArn(const Aws::String &value)
Definition: Upload.h:71
void SetType(const UploadType &value)
Definition: Upload.h:185
void SetArn(const char *value)
Definition: Upload.h:66
Upload & WithMetadata(const Aws::String &value)
Definition: Upload.h:368
const Aws::String & GetMessage() const
Definition: Upload.h:422
const Aws::String & GetArn() const
Definition: Upload.h:51
Upload & WithUrl(const Aws::String &value)
Definition: Upload.h:321
void SetUrl(Aws::String &&value)
Definition: Upload.h:309
void SetCreated(const Aws::Utils::DateTime &value)
Definition: Upload.h:126
void SetMessage(const Aws::String &value)
Definition: Upload.h:427
Upload & WithType(const UploadType &value)
Definition: Upload.h:229
void SetContentType(const char *value)
Definition: Upload.h:402
void SetName(const Aws::String &value)
Definition: Upload.h:91
const Aws::String & GetUrl() const
Definition: Upload.h:297
void SetContentType(Aws::String &&value)
Definition: Upload.h:397
Upload & WithType(UploadType &&value)
Definition: Upload.h:251
const UploadType & GetType() const
Definition: Upload.h:163
const Aws::String & GetMetadata() const
Definition: Upload.h:340
Upload & WithName(const char *value)
Definition: Upload.h:116
void SetStatus(const UploadStatus &value)
Definition: Upload.h:267
void SetArn(Aws::String &&value)
Definition: Upload.h:61
const Aws::String & GetContentType() const
Definition: Upload.h:387
void SetContentType(const Aws::String &value)
Definition: Upload.h:392
void SetMetadata(const Aws::String &value)
Definition: Upload.h:347
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Upload & WithUrl(Aws::String &&value)
Definition: Upload.h:327
Upload & WithMetadata(Aws::String &&value)
Definition: Upload.h:375
Upload & WithContentType(Aws::String &&value)
Definition: Upload.h:412
void SetUrl(const Aws::String &value)
Definition: Upload.h:303
Upload & WithArn(const char *value)
Definition: Upload.h:81
void SetStatus(UploadStatus &&value)
Definition: Upload.h:275
void SetMetadata(Aws::String &&value)
Definition: Upload.h:354
Upload & WithUrl(const char *value)
Definition: Upload.h:333
void SetType(UploadType &&value)
Definition: Upload.h:207
Upload & WithMessage(const char *value)
Definition: Upload.h:452
void SetName(const char *value)
Definition: Upload.h:101
const Aws::String & GetName() const
Definition: Upload.h:86
JSON (JavaScript Object Notation).
void SetArn(const Aws::String &value)
Definition: Upload.h:56