AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Sample.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/SampleType.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
32 class Sample
33 {
34 public:
35 AWS_DEVICEFARM_API Sample();
36 AWS_DEVICEFARM_API Sample(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVICEFARM_API Sample& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetArn() const{ return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
48 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
49 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
50 inline Sample& WithArn(const Aws::String& value) { SetArn(value); return *this;}
51 inline Sample& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
52 inline Sample& WithArn(const char* value) { SetArn(value); return *this;}
54
56
73 inline const SampleType& GetType() const{ return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(const SampleType& value) { m_typeHasBeenSet = true; m_type = value; }
76 inline void SetType(SampleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
77 inline Sample& WithType(const SampleType& value) { SetType(value); return *this;}
78 inline Sample& WithType(SampleType&& value) { SetType(std::move(value)); return *this;}
80
82
86 inline const Aws::String& GetUrl() const{ return m_url; }
87 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
88 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
89 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
90 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
91 inline Sample& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
92 inline Sample& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
93 inline Sample& WithUrl(const char* value) { SetUrl(value); return *this;}
95 private:
96
97 Aws::String m_arn;
98 bool m_arnHasBeenSet = false;
99
100 SampleType m_type;
101 bool m_typeHasBeenSet = false;
102
103 Aws::String m_url;
104 bool m_urlHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace DeviceFarm
109} // namespace Aws
bool TypeHasBeenSet() const
Definition Sample.h:74
Sample & WithArn(Aws::String &&value)
Definition Sample.h:51
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArn(const char *value)
Definition Sample.h:49
const SampleType & GetType() const
Definition Sample.h:73
AWS_DEVICEFARM_API Sample()
Sample & WithArn(const char *value)
Definition Sample.h:52
Sample & WithArn(const Aws::String &value)
Definition Sample.h:50
Sample & WithUrl(const Aws::String &value)
Definition Sample.h:91
Sample & WithType(SampleType &&value)
Definition Sample.h:78
Sample & WithUrl(Aws::String &&value)
Definition Sample.h:92
void SetType(SampleType &&value)
Definition Sample.h:76
Sample & WithType(const SampleType &value)
Definition Sample.h:77
void SetUrl(const char *value)
Definition Sample.h:90
void SetArn(Aws::String &&value)
Definition Sample.h:48
void SetUrl(Aws::String &&value)
Definition Sample.h:89
void SetUrl(const Aws::String &value)
Definition Sample.h:88
void SetType(const SampleType &value)
Definition Sample.h:75
void SetArn(const Aws::String &value)
Definition Sample.h:47
AWS_DEVICEFARM_API Sample(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition Sample.h:45
const Aws::String & GetUrl() const
Definition Sample.h:86
Sample & WithUrl(const char *value)
Definition Sample.h:93
AWS_DEVICEFARM_API Sample & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue