AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
30class Sample {
31 public:
32 AWS_DEVICEFARM_API Sample() = default;
33 AWS_DEVICEFARM_API Sample(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVICEFARM_API Sample& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 Sample& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
73 inline SampleType GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(SampleType value) {
76 m_typeHasBeenSet = true;
77 m_type = value;
78 }
79 inline Sample& WithType(SampleType value) {
80 SetType(value);
81 return *this;
82 }
84
86
90 inline const Aws::String& GetUrl() const { return m_url; }
91 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
92 template <typename UrlT = Aws::String>
93 void SetUrl(UrlT&& value) {
94 m_urlHasBeenSet = true;
95 m_url = std::forward<UrlT>(value);
96 }
97 template <typename UrlT = Aws::String>
98 Sample& WithUrl(UrlT&& value) {
99 SetUrl(std::forward<UrlT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_arn;
105
107
108 Aws::String m_url;
109 bool m_arnHasBeenSet = false;
110 bool m_typeHasBeenSet = false;
111 bool m_urlHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace DeviceFarm
116} // namespace Aws
bool TypeHasBeenSet() const
Definition Sample.h:74
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUrl(UrlT &&value)
Definition Sample.h:93
AWS_DEVICEFARM_API Sample()=default
Sample & WithArn(ArnT &&value)
Definition Sample.h:49
Sample & WithType(SampleType value)
Definition Sample.h:79
void SetArn(ArnT &&value)
Definition Sample.h:44
SampleType GetType() const
Definition Sample.h:73
AWS_DEVICEFARM_API Sample(Aws::Utils::Json::JsonView jsonValue)
void SetType(SampleType value)
Definition Sample.h:75
const Aws::String & GetArn() const
Definition Sample.h:41
Sample & WithUrl(UrlT &&value)
Definition Sample.h:98
const Aws::String & GetUrl() const
Definition Sample.h:90
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