AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Upload.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/devicefarm/model/UploadType.h>
11#include <aws/devicefarm/model/UploadStatus.h>
12#include <aws/devicefarm/model/UploadCategory.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DeviceFarm
26{
27namespace Model
28{
29
36 class Upload
37 {
38 public:
39 AWS_DEVICEFARM_API Upload();
40 AWS_DEVICEFARM_API Upload(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEVICEFARM_API Upload& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline Upload& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline Upload& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline Upload& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline Upload& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline Upload& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline Upload& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
78 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
79 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
80 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
81 inline Upload& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
82 inline Upload& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
84
86
110 inline const UploadType& GetType() const{ return m_type; }
111 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
112 inline void SetType(const UploadType& value) { m_typeHasBeenSet = true; m_type = value; }
113 inline void SetType(UploadType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
114 inline Upload& WithType(const UploadType& value) { SetType(value); return *this;}
115 inline Upload& WithType(UploadType&& value) { SetType(std::move(value)); return *this;}
117
119
124 inline const UploadStatus& GetStatus() const{ return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 inline void SetStatus(const UploadStatus& value) { m_statusHasBeenSet = true; m_status = value; }
127 inline void SetStatus(UploadStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
128 inline Upload& WithStatus(const UploadStatus& value) { SetStatus(value); return *this;}
129 inline Upload& WithStatus(UploadStatus&& value) { SetStatus(std::move(value)); return *this;}
131
133
137 inline const Aws::String& GetUrl() const{ return m_url; }
138 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
139 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
140 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
141 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
142 inline Upload& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
143 inline Upload& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
144 inline Upload& WithUrl(const char* value) { SetUrl(value); return *this;}
146
148
153 inline const Aws::String& GetMetadata() const{ return m_metadata; }
154 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
155 inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
156 inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
157 inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
158 inline Upload& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
159 inline Upload& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
160 inline Upload& WithMetadata(const char* value) { SetMetadata(value); return *this;}
162
164
168 inline const Aws::String& GetContentType() const{ return m_contentType; }
169 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
170 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
171 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
172 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
173 inline Upload& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
174 inline Upload& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
175 inline Upload& WithContentType(const char* value) { SetContentType(value); return *this;}
177
179
182 inline const Aws::String& GetMessage() const{ return m_message; }
183 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
184 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
185 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
186 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
187 inline Upload& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
188 inline Upload& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
189 inline Upload& WithMessage(const char* value) { SetMessage(value); return *this;}
191
193
198 inline const UploadCategory& GetCategory() const{ return m_category; }
199 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
200 inline void SetCategory(const UploadCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
201 inline void SetCategory(UploadCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
202 inline Upload& WithCategory(const UploadCategory& value) { SetCategory(value); return *this;}
203 inline Upload& WithCategory(UploadCategory&& value) { SetCategory(std::move(value)); return *this;}
205 private:
206
207 Aws::String m_arn;
208 bool m_arnHasBeenSet = false;
209
210 Aws::String m_name;
211 bool m_nameHasBeenSet = false;
212
213 Aws::Utils::DateTime m_created;
214 bool m_createdHasBeenSet = false;
215
216 UploadType m_type;
217 bool m_typeHasBeenSet = false;
218
219 UploadStatus m_status;
220 bool m_statusHasBeenSet = false;
221
222 Aws::String m_url;
223 bool m_urlHasBeenSet = false;
224
225 Aws::String m_metadata;
226 bool m_metadataHasBeenSet = false;
227
228 Aws::String m_contentType;
229 bool m_contentTypeHasBeenSet = false;
230
231 Aws::String m_message;
232 bool m_messageHasBeenSet = false;
233
234 UploadCategory m_category;
235 bool m_categoryHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace DeviceFarm
240} // namespace Aws
void SetMessage(const char *value)
Definition Upload.h:186
Upload & WithUrl(const char *value)
Definition Upload.h:144
Upload & WithStatus(const UploadStatus &value)
Definition Upload.h:128
Upload & WithCategory(const UploadCategory &value)
Definition Upload.h:202
void SetUrl(const char *value)
Definition Upload.h:141
void SetMetadata(const Aws::String &value)
Definition Upload.h:155
const Aws::String & GetMessage() const
Definition Upload.h:182
Upload & WithCategory(UploadCategory &&value)
Definition Upload.h:203
bool CreatedHasBeenSet() const
Definition Upload.h:78
bool ContentTypeHasBeenSet() const
Definition Upload.h:169
Upload & WithContentType(const char *value)
Definition Upload.h:175
const Aws::String & GetContentType() const
Definition Upload.h:168
Upload & WithUrl(Aws::String &&value)
Definition Upload.h:143
void SetContentType(Aws::String &&value)
Definition Upload.h:171
Upload & WithUrl(const Aws::String &value)
Definition Upload.h:142
Upload & WithStatus(UploadStatus &&value)
Definition Upload.h:129
bool CategoryHasBeenSet() const
Definition Upload.h:199
void SetMetadata(const char *value)
Definition Upload.h:157
Upload & WithCreated(const Aws::Utils::DateTime &value)
Definition Upload.h:81
Upload & WithType(UploadType &&value)
Definition Upload.h:115
bool StatusHasBeenSet() const
Definition Upload.h:125
const UploadType & GetType() const
Definition Upload.h:110
Upload & WithName(Aws::String &&value)
Definition Upload.h:69
const UploadStatus & GetStatus() const
Definition Upload.h:124
Upload & WithMetadata(Aws::String &&value)
Definition Upload.h:159
Upload & WithArn(const char *value)
Definition Upload.h:56
void SetName(Aws::String &&value)
Definition Upload.h:66
void SetCreated(Aws::Utils::DateTime &&value)
Definition Upload.h:80
bool MetadataHasBeenSet() const
Definition Upload.h:154
Upload & WithCreated(Aws::Utils::DateTime &&value)
Definition Upload.h:82
Upload & WithMessage(Aws::String &&value)
Definition Upload.h:188
bool MessageHasBeenSet() const
Definition Upload.h:183
AWS_DEVICEFARM_API Upload & operator=(Aws::Utils::Json::JsonView jsonValue)
Upload & WithMetadata(const Aws::String &value)
Definition Upload.h:158
AWS_DEVICEFARM_API Upload(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API Upload()
void SetCategory(const UploadCategory &value)
Definition Upload.h:200
void SetName(const char *value)
Definition Upload.h:67
const Aws::Utils::DateTime & GetCreated() const
Definition Upload.h:77
Upload & WithName(const char *value)
Definition Upload.h:70
void SetType(UploadType &&value)
Definition Upload.h:113
void SetUrl(Aws::String &&value)
Definition Upload.h:140
const Aws::String & GetName() const
Definition Upload.h:63
Upload & WithType(const UploadType &value)
Definition Upload.h:114
void SetCategory(UploadCategory &&value)
Definition Upload.h:201
void SetType(const UploadType &value)
Definition Upload.h:112
Upload & WithMetadata(const char *value)
Definition Upload.h:160
const UploadCategory & GetCategory() const
Definition Upload.h:198
Upload & WithMessage(const char *value)
Definition Upload.h:189
void SetStatus(UploadStatus &&value)
Definition Upload.h:127
void SetUrl(const Aws::String &value)
Definition Upload.h:139
void SetCreated(const Aws::Utils::DateTime &value)
Definition Upload.h:79
const Aws::String & GetArn() const
Definition Upload.h:49
bool NameHasBeenSet() const
Definition Upload.h:64
Upload & WithName(const Aws::String &value)
Definition Upload.h:68
const Aws::String & GetUrl() const
Definition Upload.h:137
void SetContentType(const char *value)
Definition Upload.h:172
void SetContentType(const Aws::String &value)
Definition Upload.h:170
Upload & WithContentType(const Aws::String &value)
Definition Upload.h:173
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
Upload & WithArn(const Aws::String &value)
Definition Upload.h:54
Upload & WithArn(Aws::String &&value)
Definition Upload.h:55
void SetArn(const char *value)
Definition Upload.h:53
Upload & WithContentType(Aws::String &&value)
Definition Upload.h:174
void SetName(const Aws::String &value)
Definition Upload.h:65
void SetMessage(Aws::String &&value)
Definition Upload.h:185
void SetStatus(const UploadStatus &value)
Definition Upload.h:126
Upload & WithMessage(const Aws::String &value)
Definition Upload.h:187
void SetArn(Aws::String &&value)
Definition Upload.h:52
void SetMetadata(Aws::String &&value)
Definition Upload.h:156
void SetArn(const Aws::String &value)
Definition Upload.h:51
void SetMessage(const Aws::String &value)
Definition Upload.h:184
const Aws::String & GetMetadata() const
Definition Upload.h:153
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue