AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Sample.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
9#include <aws/devicefarm/model/SampleType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DeviceFarm {
21namespace Model {
22
28class Sample {
29 public:
30 AWS_DEVICEFARM_API Sample() = default;
31 AWS_DEVICEFARM_API Sample(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DEVICEFARM_API Sample& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
47 Sample& WithArn(ArnT&& value) {
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
71 inline SampleType GetType() const { return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(SampleType value) {
74 m_typeHasBeenSet = true;
75 m_type = value;
76 }
77 inline Sample& WithType(SampleType value) {
78 SetType(value);
79 return *this;
80 }
82
84
88 inline const Aws::String& GetUrl() const { return m_url; }
89 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
90 template <typename UrlT = Aws::String>
91 void SetUrl(UrlT&& value) {
92 m_urlHasBeenSet = true;
93 m_url = std::forward<UrlT>(value);
94 }
95 template <typename UrlT = Aws::String>
96 Sample& WithUrl(UrlT&& value) {
97 SetUrl(std::forward<UrlT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_arn;
103
105
106 Aws::String m_url;
107 bool m_arnHasBeenSet = false;
108 bool m_typeHasBeenSet = false;
109 bool m_urlHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace DeviceFarm
114} // 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:91
AWS_DEVICEFARM_API Sample()=default
Sample & WithArn(ArnT &&value)
Definition Sample.h:47
Sample & WithType(SampleType value)
Definition Sample.h:77
void SetArn(ArnT &&value)
Definition Sample.h:42
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:39
Sample & WithUrl(UrlT &&value)
Definition Sample.h:96
const Aws::String & GetUrl() const
Definition Sample.h:88
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