AWS SDK for C++  0.12.9
AWS SDK for C++
Artifact.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DeviceFarm
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  Artifact();
42  Artifact(const Aws::Utils::Json::JsonValue& jsonValue);
43  Artifact& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetArn() const{ return m_arn; }
50 
54  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 
59  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
60 
64  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 
69  inline Artifact& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 
74  inline Artifact& WithArn(Aws::String&& value) { SetArn(value); return *this;}
75 
79  inline Artifact& WithArn(const char* value) { SetArn(value); return *this;}
80 
84  inline const Aws::String& GetName() const{ return m_name; }
85 
89  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 
94  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
95 
99  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
100 
104  inline Artifact& WithName(const Aws::String& value) { SetName(value); return *this;}
105 
109  inline Artifact& WithName(Aws::String&& value) { SetName(value); return *this;}
110 
114  inline Artifact& WithName(const char* value) { SetName(value); return *this;}
115 
140  inline const ArtifactType& GetType() const{ return m_type; }
141 
166  inline void SetType(const ArtifactType& value) { m_typeHasBeenSet = true; m_type = value; }
167 
192  inline void SetType(ArtifactType&& value) { m_typeHasBeenSet = true; m_type = value; }
193 
218  inline Artifact& WithType(const ArtifactType& value) { SetType(value); return *this;}
219 
244  inline Artifact& WithType(ArtifactType&& value) { SetType(value); return *this;}
245 
249  inline const Aws::String& GetExtension() const{ return m_extension; }
250 
254  inline void SetExtension(const Aws::String& value) { m_extensionHasBeenSet = true; m_extension = value; }
255 
259  inline void SetExtension(Aws::String&& value) { m_extensionHasBeenSet = true; m_extension = value; }
260 
264  inline void SetExtension(const char* value) { m_extensionHasBeenSet = true; m_extension.assign(value); }
265 
269  inline Artifact& WithExtension(const Aws::String& value) { SetExtension(value); return *this;}
270 
274  inline Artifact& WithExtension(Aws::String&& value) { SetExtension(value); return *this;}
275 
279  inline Artifact& WithExtension(const char* value) { SetExtension(value); return *this;}
280 
285  inline const Aws::String& GetUrl() const{ return m_url; }
286 
291  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
292 
297  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = value; }
298 
303  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
304 
309  inline Artifact& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
310 
315  inline Artifact& WithUrl(Aws::String&& value) { SetUrl(value); return *this;}
316 
321  inline Artifact& WithUrl(const char* value) { SetUrl(value); return *this;}
322 
323  private:
324  Aws::String m_arn;
325  bool m_arnHasBeenSet;
326  Aws::String m_name;
327  bool m_nameHasBeenSet;
328  ArtifactType m_type;
329  bool m_typeHasBeenSet;
330  Aws::String m_extension;
331  bool m_extensionHasBeenSet;
332  Aws::String m_url;
333  bool m_urlHasBeenSet;
334  };
335 
336 } // namespace Model
337 } // namespace DeviceFarm
338 } // namespace Aws
void SetExtension(const char *value)
Definition: Artifact.h:264
#define AWS_DEVICEFARM_API
void SetArn(const Aws::String &value)
Definition: Artifact.h:54
Artifact & WithArn(Aws::String &&value)
Definition: Artifact.h:74
Artifact & WithArn(const char *value)
Definition: Artifact.h:79
void SetName(Aws::String &&value)
Definition: Artifact.h:94
void SetUrl(const char *value)
Definition: Artifact.h:303
Artifact & WithExtension(Aws::String &&value)
Definition: Artifact.h:274
Artifact & WithUrl(const char *value)
Definition: Artifact.h:321
const Aws::String & GetName() const
Definition: Artifact.h:84
Artifact & WithExtension(const char *value)
Definition: Artifact.h:279
void SetName(const Aws::String &value)
Definition: Artifact.h:89
void SetName(const char *value)
Definition: Artifact.h:99
Artifact & WithName(const Aws::String &value)
Definition: Artifact.h:104
Artifact & WithUrl(Aws::String &&value)
Definition: Artifact.h:315
Artifact & WithExtension(const Aws::String &value)
Definition: Artifact.h:269
void SetUrl(const Aws::String &value)
Definition: Artifact.h:291
const Aws::String & GetUrl() const
Definition: Artifact.h:285
void SetExtension(const Aws::String &value)
Definition: Artifact.h:254
Artifact & WithType(const ArtifactType &value)
Definition: Artifact.h:218
void SetArn(const char *value)
Definition: Artifact.h:64
void SetUrl(Aws::String &&value)
Definition: Artifact.h:297
Artifact & WithName(Aws::String &&value)
Definition: Artifact.h:109
Artifact & WithType(ArtifactType &&value)
Definition: Artifact.h:244
const Aws::String & GetExtension() const
Definition: Artifact.h:249
Artifact & WithUrl(const Aws::String &value)
Definition: Artifact.h:309
const ArtifactType & GetType() const
Definition: Artifact.h:140
Artifact & WithName(const char *value)
Definition: Artifact.h:114
const Aws::String & GetArn() const
Definition: Artifact.h:49
void SetArn(Aws::String &&value)
Definition: Artifact.h:59
void SetType(const ArtifactType &value)
Definition: Artifact.h:166
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetType(ArtifactType &&value)
Definition: Artifact.h:192
Artifact & WithArn(const Aws::String &value)
Definition: Artifact.h:69
void SetExtension(Aws::String &&value)
Definition: Artifact.h:259
JSON (JavaScript Object Notation).