AWS SDK for C++  1.9.154
AWS SDK for C++
Upload.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace DeviceFarm
26 {
27 namespace Model
28 {
29 
37  {
38  public:
39  Upload();
43 
44 
48  inline const Aws::String& GetArn() const{ return m_arn; }
49 
53  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 
58  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
59 
63  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
64 
68  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 
73  inline Upload& WithArn(const Aws::String& value) { SetArn(value); return *this;}
74 
78  inline Upload& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
79 
83  inline Upload& WithArn(const char* value) { SetArn(value); return *this;}
84 
85 
89  inline const Aws::String& GetName() const{ return m_name; }
90 
94  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 
99  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 
104  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 
109  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
110 
114  inline Upload& WithName(const Aws::String& value) { SetName(value); return *this;}
115 
119  inline Upload& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
120 
124  inline Upload& WithName(const char* value) { SetName(value); return *this;}
125 
126 
130  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
131 
135  inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
136 
140  inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
141 
145  inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
146 
150  inline Upload& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
151 
155  inline Upload& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
156 
157 
183  inline const UploadType& GetType() const{ return m_type; }
184 
210  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
211 
237  inline void SetType(const UploadType& value) { m_typeHasBeenSet = true; m_type = value; }
238 
264  inline void SetType(UploadType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
265 
291  inline Upload& WithType(const UploadType& value) { SetType(value); return *this;}
292 
318  inline Upload& WithType(UploadType&& value) { SetType(std::move(value)); return *this;}
319 
320 
326  inline const UploadStatus& GetStatus() const{ return m_status; }
327 
333  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
334 
340  inline void SetStatus(const UploadStatus& value) { m_statusHasBeenSet = true; m_status = value; }
341 
347  inline void SetStatus(UploadStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
348 
354  inline Upload& WithStatus(const UploadStatus& value) { SetStatus(value); return *this;}
355 
361  inline Upload& WithStatus(UploadStatus&& value) { SetStatus(std::move(value)); return *this;}
362 
363 
368  inline const Aws::String& GetUrl() const{ return m_url; }
369 
374  inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
375 
380  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
381 
386  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
387 
392  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
393 
398  inline Upload& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
399 
404  inline Upload& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
405 
410  inline Upload& WithUrl(const char* value) { SetUrl(value); return *this;}
411 
412 
418  inline const Aws::String& GetMetadata() const{ return m_metadata; }
419 
425  inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
426 
432  inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
433 
439  inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
440 
446  inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
447 
453  inline Upload& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
454 
460  inline Upload& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
461 
467  inline Upload& WithMetadata(const char* value) { SetMetadata(value); return *this;}
468 
469 
474  inline const Aws::String& GetContentType() const{ return m_contentType; }
475 
480  inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
481 
486  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
487 
492  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
493 
498  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
499 
504  inline Upload& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
505 
510  inline Upload& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
511 
516  inline Upload& WithContentType(const char* value) { SetContentType(value); return *this;}
517 
518 
522  inline const Aws::String& GetMessage() const{ return m_message; }
523 
527  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
528 
532  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
533 
537  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
538 
542  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
543 
547  inline Upload& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
548 
552  inline Upload& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
553 
557  inline Upload& WithMessage(const char* value) { SetMessage(value); return *this;}
558 
559 
565  inline const UploadCategory& GetCategory() const{ return m_category; }
566 
572  inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
573 
579  inline void SetCategory(const UploadCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
580 
586  inline void SetCategory(UploadCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
587 
593  inline Upload& WithCategory(const UploadCategory& value) { SetCategory(value); return *this;}
594 
600  inline Upload& WithCategory(UploadCategory&& value) { SetCategory(std::move(value)); return *this;}
601 
602  private:
603 
604  Aws::String m_arn;
605  bool m_arnHasBeenSet;
606 
607  Aws::String m_name;
608  bool m_nameHasBeenSet;
609 
610  Aws::Utils::DateTime m_created;
611  bool m_createdHasBeenSet;
612 
613  UploadType m_type;
614  bool m_typeHasBeenSet;
615 
616  UploadStatus m_status;
617  bool m_statusHasBeenSet;
618 
619  Aws::String m_url;
620  bool m_urlHasBeenSet;
621 
622  Aws::String m_metadata;
623  bool m_metadataHasBeenSet;
624 
625  Aws::String m_contentType;
626  bool m_contentTypeHasBeenSet;
627 
628  Aws::String m_message;
629  bool m_messageHasBeenSet;
630 
631  UploadCategory m_category;
632  bool m_categoryHasBeenSet;
633  };
634 
635 } // namespace Model
636 } // namespace DeviceFarm
637 } // namespace Aws
Aws::DeviceFarm::Model::Upload::WithMetadata
Upload & WithMetadata(const Aws::String &value)
Definition: Upload.h:453
Aws::DeviceFarm::Model::Upload::SetName
void SetName(Aws::String &&value)
Definition: Upload.h:104
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DeviceFarm::Model::Upload::SetStatus
void SetStatus(UploadStatus &&value)
Definition: Upload.h:347
Aws::DeviceFarm::Model::Upload::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::Upload::UrlHasBeenSet
bool UrlHasBeenSet() const
Definition: Upload.h:374
Aws::DeviceFarm::Model::Upload::CreatedHasBeenSet
bool CreatedHasBeenSet() const
Definition: Upload.h:135
Aws::DeviceFarm::Model::Upload::GetContentType
const Aws::String & GetContentType() const
Definition: Upload.h:474
Aws::DeviceFarm::Model::Upload::GetCreated
const Aws::Utils::DateTime & GetCreated() const
Definition: Upload.h:130
Aws::DeviceFarm::Model::Upload::SetContentType
void SetContentType(const char *value)
Definition: Upload.h:498
Aws::DeviceFarm::Model::Upload::SetArn
void SetArn(Aws::String &&value)
Definition: Upload.h:63
Aws::DeviceFarm::Model::Upload::GetArn
const Aws::String & GetArn() const
Definition: Upload.h:48
Aws::DeviceFarm::Model::Upload::SetArn
void SetArn(const Aws::String &value)
Definition: Upload.h:58
Aws::DeviceFarm::Model::Upload::SetUrl
void SetUrl(const Aws::String &value)
Definition: Upload.h:380
Aws::DeviceFarm::Model::Upload::Upload
Upload()
Aws::DeviceFarm::Model::Upload::SetType
void SetType(UploadType &&value)
Definition: Upload.h:264
DateTime.h
Aws::DeviceFarm::Model::Upload::SetName
void SetName(const char *value)
Definition: Upload.h:109
Aws::DeviceFarm::Model::Upload::WithName
Upload & WithName(Aws::String &&value)
Definition: Upload.h:119
Aws::DeviceFarm::Model::Upload::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Upload.h:53
Aws::DeviceFarm::Model::Upload::WithContentType
Upload & WithContentType(Aws::String &&value)
Definition: Upload.h:510
Aws::DeviceFarm::Model::Upload::SetType
void SetType(const UploadType &value)
Definition: Upload.h:237
Aws::DeviceFarm::Model::Upload::GetUrl
const Aws::String & GetUrl() const
Definition: Upload.h:368
Aws::DeviceFarm::Model::UploadCategory
UploadCategory
Definition: UploadCategory.h:17
Aws::DeviceFarm::Model::Upload::GetCategory
const UploadCategory & GetCategory() const
Definition: Upload.h:565
Aws::DeviceFarm::Model::Upload::SetContentType
void SetContentType(const Aws::String &value)
Definition: Upload.h:486
Aws::DeviceFarm::Model::Upload::SetStatus
void SetStatus(const UploadStatus &value)
Definition: Upload.h:340
Aws::DeviceFarm::Model::Upload::Upload
Upload(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::Upload
Definition: Upload.h:37
Aws::DeviceFarm::Model::Upload::WithMetadata
Upload & WithMetadata(Aws::String &&value)
Definition: Upload.h:460
Aws::DeviceFarm::Model::Upload::CategoryHasBeenSet
bool CategoryHasBeenSet() const
Definition: Upload.h:572
Aws::DeviceFarm::Model::Upload::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Upload.h:333
Aws::DeviceFarm::Model::Upload::SetMetadata
void SetMetadata(const Aws::String &value)
Definition: Upload.h:432
Aws::DeviceFarm::Model::Upload::SetUrl
void SetUrl(const char *value)
Definition: Upload.h:392
UploadCategory.h
Aws::DeviceFarm::Model::Upload::WithCategory
Upload & WithCategory(const UploadCategory &value)
Definition: Upload.h:593
Aws::DeviceFarm::Model::Upload::WithArn
Upload & WithArn(const char *value)
Definition: Upload.h:83
Aws::DeviceFarm::Model::Upload::SetMetadata
void SetMetadata(const char *value)
Definition: Upload.h:446
Aws::DeviceFarm::Model::Upload::GetName
const Aws::String & GetName() const
Definition: Upload.h:89
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::Upload::WithName
Upload & WithName(const Aws::String &value)
Definition: Upload.h:114
Aws::DeviceFarm::Model::Upload::GetStatus
const UploadStatus & GetStatus() const
Definition: Upload.h:326
UploadType.h
Aws::DeviceFarm::Model::Upload::SetMetadata
void SetMetadata(Aws::String &&value)
Definition: Upload.h:439
Aws::DeviceFarm::Model::Upload::ContentTypeHasBeenSet
bool ContentTypeHasBeenSet() const
Definition: Upload.h:480
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
UploadStatus.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::Upload::WithCategory
Upload & WithCategory(UploadCategory &&value)
Definition: Upload.h:600
Aws::DeviceFarm::Model::Upload::WithUrl
Upload & WithUrl(Aws::String &&value)
Definition: Upload.h:404
Aws::DeviceFarm::Model::Upload::GetMessage
const Aws::String & GetMessage() const
Definition: Upload.h:522
Aws::DeviceFarm::Model::Upload::WithContentType
Upload & WithContentType(const char *value)
Definition: Upload.h:516
Aws::DeviceFarm::Model::Upload::WithUrl
Upload & WithUrl(const char *value)
Definition: Upload.h:410
Aws::DeviceFarm::Model::Upload::GetMetadata
const Aws::String & GetMetadata() const
Definition: Upload.h:418
Aws::DeviceFarm::Model::Upload::SetMessage
void SetMessage(const char *value)
Definition: Upload.h:542
Aws::DeviceFarm::Model::Upload::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Upload.h:210
Aws::DeviceFarm::Model::Upload::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: Upload.h:527
Aws::DeviceFarm::Model::Upload::WithStatus
Upload & WithStatus(const UploadStatus &value)
Definition: Upload.h:354
Aws::DeviceFarm::Model::Upload::WithType
Upload & WithType(UploadType &&value)
Definition: Upload.h:318
Aws::DeviceFarm::Model::Upload::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Upload.h:94
Aws::DeviceFarm::Model::Upload::operator=
Upload & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::Upload::WithCreated
Upload & WithCreated(Aws::Utils::DateTime &&value)
Definition: Upload.h:155
Aws::DeviceFarm::Model::Upload::WithContentType
Upload & WithContentType(const Aws::String &value)
Definition: Upload.h:504
Aws::DeviceFarm::Model::Upload::WithCreated
Upload & WithCreated(const Aws::Utils::DateTime &value)
Definition: Upload.h:150
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::DeviceFarm::Model::UploadType
UploadType
Definition: UploadType.h:17
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::Upload::WithMessage
Upload & WithMessage(const char *value)
Definition: Upload.h:557
Aws::DeviceFarm::Model::Upload::SetCreated
void SetCreated(Aws::Utils::DateTime &&value)
Definition: Upload.h:145
Aws::DeviceFarm::Model::Upload::WithType
Upload & WithType(const UploadType &value)
Definition: Upload.h:291
Aws::DeviceFarm::Model::Upload::WithName
Upload & WithName(const char *value)
Definition: Upload.h:124
Aws::DeviceFarm::Model::Upload::SetContentType
void SetContentType(Aws::String &&value)
Definition: Upload.h:492
Aws::DeviceFarm::Model::Upload::MetadataHasBeenSet
bool MetadataHasBeenSet() const
Definition: Upload.h:425
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::Upload::SetCategory
void SetCategory(UploadCategory &&value)
Definition: Upload.h:586
Aws::DeviceFarm::Model::Upload::SetCreated
void SetCreated(const Aws::Utils::DateTime &value)
Definition: Upload.h:140
Aws::DeviceFarm::Model::Upload::WithMessage
Upload & WithMessage(const Aws::String &value)
Definition: Upload.h:547
Aws::DeviceFarm::Model::Upload::SetArn
void SetArn(const char *value)
Definition: Upload.h:68
Aws::DeviceFarm::Model::UploadStatus
UploadStatus
Definition: UploadStatus.h:17
Aws::DeviceFarm::Model::Upload::WithMessage
Upload & WithMessage(Aws::String &&value)
Definition: Upload.h:552
Aws::DeviceFarm::Model::Upload::SetName
void SetName(const Aws::String &value)
Definition: Upload.h:99
Aws::DeviceFarm::Model::Upload::SetCategory
void SetCategory(const UploadCategory &value)
Definition: Upload.h:579
Aws::DeviceFarm::Model::Upload::WithMetadata
Upload & WithMetadata(const char *value)
Definition: Upload.h:467
Aws::DeviceFarm::Model::Upload::WithUrl
Upload & WithUrl(const Aws::String &value)
Definition: Upload.h:398
Aws::DeviceFarm::Model::Upload::SetUrl
void SetUrl(Aws::String &&value)
Definition: Upload.h:386
Aws::DeviceFarm::Model::Upload::SetMessage
void SetMessage(Aws::String &&value)
Definition: Upload.h:537
Aws::DeviceFarm::Model::Upload::GetType
const UploadType & GetType() const
Definition: Upload.h:183
Aws::DeviceFarm::Model::Upload::SetMessage
void SetMessage(const Aws::String &value)
Definition: Upload.h:532
Aws::DeviceFarm::Model::Upload::WithArn
Upload & WithArn(const Aws::String &value)
Definition: Upload.h:73
Aws::DeviceFarm::Model::Upload::WithStatus
Upload & WithStatus(UploadStatus &&value)
Definition: Upload.h:361
Aws::DeviceFarm::Model::Upload::WithArn
Upload & WithArn(Aws::String &&value)
Definition: Upload.h:78