AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 Sample& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
52
54
71 inline SampleType GetType() const { return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(SampleType value) { m_typeHasBeenSet = true; m_type = value; }
74 inline Sample& WithType(SampleType value) { SetType(value); return *this;}
76
78
82 inline const Aws::String& GetUrl() const { return m_url; }
83 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
84 template<typename UrlT = Aws::String>
85 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
86 template<typename UrlT = Aws::String>
87 Sample& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
89 private:
90
91 Aws::String m_arn;
92 bool m_arnHasBeenSet = false;
93
95 bool m_typeHasBeenSet = false;
96
97 Aws::String m_url;
98 bool m_urlHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace DeviceFarm
103} // namespace Aws
bool TypeHasBeenSet() const
Definition Sample.h:72
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUrl(UrlT &&value)
Definition Sample.h:85
AWS_DEVICEFARM_API Sample()=default
Sample & WithArn(ArnT &&value)
Definition Sample.h:50
Sample & WithType(SampleType value)
Definition Sample.h:74
void SetArn(ArnT &&value)
Definition Sample.h:48
SampleType GetType() const
Definition Sample.h:71
AWS_DEVICEFARM_API Sample(Aws::Utils::Json::JsonView jsonValue)
void SetType(SampleType value)
Definition Sample.h:73
const Aws::String & GetArn() const
Definition Sample.h:45
Sample & WithUrl(UrlT &&value)
Definition Sample.h:87
const Aws::String & GetUrl() const
Definition Sample.h:82
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