AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Artifact.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/model/ArtifactType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DeviceFarm
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DEVICEFARM_API Artifact();
37 AWS_DEVICEFARM_API Artifact(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API Artifact& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline Artifact& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline Artifact& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline Artifact& WithArn(const char* value) { SetArn(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline Artifact& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline Artifact& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline Artifact& WithName(const char* value) { SetName(value); return *this;}
69
71
85 inline const ArtifactType& GetType() const{ return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 inline void SetType(const ArtifactType& value) { m_typeHasBeenSet = true; m_type = value; }
88 inline void SetType(ArtifactType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
89 inline Artifact& WithType(const ArtifactType& value) { SetType(value); return *this;}
90 inline Artifact& WithType(ArtifactType&& value) { SetType(std::move(value)); return *this;}
92
94
97 inline const Aws::String& GetExtension() const{ return m_extension; }
98 inline bool ExtensionHasBeenSet() const { return m_extensionHasBeenSet; }
99 inline void SetExtension(const Aws::String& value) { m_extensionHasBeenSet = true; m_extension = value; }
100 inline void SetExtension(Aws::String&& value) { m_extensionHasBeenSet = true; m_extension = std::move(value); }
101 inline void SetExtension(const char* value) { m_extensionHasBeenSet = true; m_extension.assign(value); }
102 inline Artifact& WithExtension(const Aws::String& value) { SetExtension(value); return *this;}
103 inline Artifact& WithExtension(Aws::String&& value) { SetExtension(std::move(value)); return *this;}
104 inline Artifact& WithExtension(const char* value) { SetExtension(value); return *this;}
106
108
112 inline const Aws::String& GetUrl() const{ return m_url; }
113 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
114 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
115 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
116 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
117 inline Artifact& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
118 inline Artifact& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
119 inline Artifact& WithUrl(const char* value) { SetUrl(value); return *this;}
121 private:
122
123 Aws::String m_arn;
124 bool m_arnHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 ArtifactType m_type;
130 bool m_typeHasBeenSet = false;
131
132 Aws::String m_extension;
133 bool m_extensionHasBeenSet = false;
134
135 Aws::String m_url;
136 bool m_urlHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace DeviceFarm
141} // namespace Aws
void SetName(const Aws::String &value)
Definition Artifact.h:62
AWS_DEVICEFARM_API Artifact(Aws::Utils::Json::JsonView jsonValue)
Artifact & WithArn(const char *value)
Definition Artifact.h:53
void SetExtension(Aws::String &&value)
Definition Artifact.h:100
void SetArn(const Aws::String &value)
Definition Artifact.h:48
void SetName(const char *value)
Definition Artifact.h:64
Artifact & WithType(const ArtifactType &value)
Definition Artifact.h:89
void SetArn(Aws::String &&value)
Definition Artifact.h:49
void SetUrl(const Aws::String &value)
Definition Artifact.h:114
void SetExtension(const char *value)
Definition Artifact.h:101
AWS_DEVICEFARM_API Artifact & operator=(Aws::Utils::Json::JsonView jsonValue)
Artifact & WithType(ArtifactType &&value)
Definition Artifact.h:90
const Aws::String & GetUrl() const
Definition Artifact.h:112
const Aws::String & GetExtension() const
Definition Artifact.h:97
void SetArn(const char *value)
Definition Artifact.h:50
const ArtifactType & GetType() const
Definition Artifact.h:85
void SetType(ArtifactType &&value)
Definition Artifact.h:88
const Aws::String & GetName() const
Definition Artifact.h:60
const Aws::String & GetArn() const
Definition Artifact.h:46
Artifact & WithName(const char *value)
Definition Artifact.h:67
Artifact & WithArn(const Aws::String &value)
Definition Artifact.h:51
Artifact & WithUrl(const char *value)
Definition Artifact.h:119
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
Artifact & WithExtension(Aws::String &&value)
Definition Artifact.h:103
AWS_DEVICEFARM_API Artifact()
Artifact & WithUrl(const Aws::String &value)
Definition Artifact.h:117
void SetName(Aws::String &&value)
Definition Artifact.h:63
void SetUrl(Aws::String &&value)
Definition Artifact.h:115
Artifact & WithName(Aws::String &&value)
Definition Artifact.h:66
void SetType(const ArtifactType &value)
Definition Artifact.h:87
Artifact & WithUrl(Aws::String &&value)
Definition Artifact.h:118
void SetUrl(const char *value)
Definition Artifact.h:116
Artifact & WithName(const Aws::String &value)
Definition Artifact.h:65
Artifact & WithArn(Aws::String &&value)
Definition Artifact.h:52
Artifact & WithExtension(const char *value)
Definition Artifact.h:104
Artifact & WithExtension(const Aws::String &value)
Definition Artifact.h:102
void SetExtension(const Aws::String &value)
Definition Artifact.h:99
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue