AWS SDK for C++  1.9.158
AWS SDK for C++
Sample.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DeviceFarm
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Sample();
39 
40 
44  inline const Aws::String& GetArn() const{ return m_arn; }
45 
49  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 
54  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 
59  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
60 
64  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 
69  inline Sample& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 
74  inline Sample& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
75 
79  inline Sample& WithArn(const char* value) { SetArn(value); return *this;}
80 
81 
99  inline const SampleType& GetType() const{ return m_type; }
100 
118  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
119 
137  inline void SetType(const SampleType& value) { m_typeHasBeenSet = true; m_type = value; }
138 
156  inline void SetType(SampleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
157 
175  inline Sample& WithType(const SampleType& value) { SetType(value); return *this;}
176 
194  inline Sample& WithType(SampleType&& value) { SetType(std::move(value)); return *this;}
195 
196 
201  inline const Aws::String& GetUrl() const{ return m_url; }
202 
207  inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
208 
213  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
214 
219  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
220 
225  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
226 
231  inline Sample& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
232 
237  inline Sample& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
238 
243  inline Sample& WithUrl(const char* value) { SetUrl(value); return *this;}
244 
245  private:
246 
247  Aws::String m_arn;
248  bool m_arnHasBeenSet;
249 
250  SampleType m_type;
251  bool m_typeHasBeenSet;
252 
253  Aws::String m_url;
254  bool m_urlHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace DeviceFarm
259 } // namespace Aws
Aws::DeviceFarm::Model::Sample::GetType
const SampleType & GetType() const
Definition: Sample.h:99
Aws::DeviceFarm::Model::Sample
Definition: Sample.h:33
Aws::DeviceFarm::Model::Sample::SetUrl
void SetUrl(const char *value)
Definition: Sample.h:225
Aws::DeviceFarm::Model::Sample::WithUrl
Sample & WithUrl(Aws::String &&value)
Definition: Sample.h:237
Aws::DeviceFarm::Model::Sample::SetType
void SetType(const SampleType &value)
Definition: Sample.h:137
Aws::DeviceFarm::Model::Sample::WithUrl
Sample & WithUrl(const char *value)
Definition: Sample.h:243
Aws::DeviceFarm::Model::Sample::GetArn
const Aws::String & GetArn() const
Definition: Sample.h:44
Aws::DeviceFarm::Model::Sample::Sample
Sample(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::Sample::SetArn
void SetArn(Aws::String &&value)
Definition: Sample.h:59
Aws::DeviceFarm::Model::Sample::UrlHasBeenSet
bool UrlHasBeenSet() const
Definition: Sample.h:207
Aws::DeviceFarm::Model::Sample::WithType
Sample & WithType(SampleType &&value)
Definition: Sample.h:194
Aws::DeviceFarm::Model::Sample::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Sample.h:49
Aws::DeviceFarm::Model::SampleType
SampleType
Definition: SampleType.h:17
Aws::DeviceFarm::Model::Sample::WithArn
Sample & WithArn(const char *value)
Definition: Sample.h:79
Aws::DeviceFarm::Model::Sample::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Sample.h:118
Aws::DeviceFarm::Model::Sample::Sample
Sample()
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::Sample::WithUrl
Sample & WithUrl(const Aws::String &value)
Definition: Sample.h:231
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::DeviceFarm::Model::Sample::SetArn
void SetArn(const Aws::String &value)
Definition: Sample.h:54
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::Sample::SetArn
void SetArn(const char *value)
Definition: Sample.h:64
Aws::DeviceFarm::Model::Sample::WithArn
Sample & WithArn(const Aws::String &value)
Definition: Sample.h:69
Aws::DeviceFarm::Model::Sample::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::Sample::SetUrl
void SetUrl(const Aws::String &value)
Definition: Sample.h:213
Aws::DeviceFarm::Model::Sample::GetUrl
const Aws::String & GetUrl() const
Definition: Sample.h:201
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
SampleType.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::Sample::WithArn
Sample & WithArn(Aws::String &&value)
Definition: Sample.h:74
Aws::DeviceFarm::Model::Sample::SetUrl
void SetUrl(Aws::String &&value)
Definition: Sample.h:219
Aws::DeviceFarm::Model::Sample::WithType
Sample & WithType(const SampleType &value)
Definition: Sample.h:175
Aws::DeviceFarm::Model::Sample::operator=
Sample & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::Sample::SetType
void SetType(SampleType &&value)
Definition: Sample.h:156