AWS SDK for C++  0.14.3
AWS SDK for C++
Sample.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DeviceFarm
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Sample();
41  Sample(const Aws::Utils::Json::JsonValue& jsonValue);
42  Sample& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetArn() const{ return m_arn; }
49 
53  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 
58  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
59 
63  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
64 
68  inline Sample& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 
73  inline Sample& WithArn(Aws::String&& value) { SetArn(value); return *this;}
74 
78  inline Sample& WithArn(const char* value) { SetArn(value); return *this;}
79 
97  inline const SampleType& GetType() const{ return m_type; }
98 
116  inline void SetType(const SampleType& value) { m_typeHasBeenSet = true; m_type = value; }
117 
135  inline void SetType(SampleType&& value) { m_typeHasBeenSet = true; m_type = value; }
136 
154  inline Sample& WithType(const SampleType& value) { SetType(value); return *this;}
155 
173  inline Sample& WithType(SampleType&& value) { SetType(value); return *this;}
174 
179  inline const Aws::String& GetUrl() const{ return m_url; }
180 
185  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
186 
191  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = value; }
192 
197  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
198 
203  inline Sample& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
204 
209  inline Sample& WithUrl(Aws::String&& value) { SetUrl(value); return *this;}
210 
215  inline Sample& WithUrl(const char* value) { SetUrl(value); return *this;}
216 
217  private:
218  Aws::String m_arn;
219  bool m_arnHasBeenSet;
220  SampleType m_type;
221  bool m_typeHasBeenSet;
222  Aws::String m_url;
223  bool m_urlHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace DeviceFarm
228 } // namespace Aws
void SetUrl(const Aws::String &value)
Definition: Sample.h:185
#define AWS_DEVICEFARM_API
Sample & WithUrl(const char *value)
Definition: Sample.h:215
Sample & WithArn(const Aws::String &value)
Definition: Sample.h:68
void SetUrl(Aws::String &&value)
Definition: Sample.h:191
void SetType(const SampleType &value)
Definition: Sample.h:116
const Aws::String & GetArn() const
Definition: Sample.h:48
void SetType(SampleType &&value)
Definition: Sample.h:135
void SetArn(const Aws::String &value)
Definition: Sample.h:53
Sample & WithArn(Aws::String &&value)
Definition: Sample.h:73
Sample & WithType(SampleType &&value)
Definition: Sample.h:173
void SetArn(Aws::String &&value)
Definition: Sample.h:58
const Aws::String & GetUrl() const
Definition: Sample.h:179
Sample & WithArn(const char *value)
Definition: Sample.h:78
Sample & WithUrl(Aws::String &&value)
Definition: Sample.h:209
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetArn(const char *value)
Definition: Sample.h:63
void SetUrl(const char *value)
Definition: Sample.h:197
Sample & WithUrl(const Aws::String &value)
Definition: Sample.h:203
const SampleType & GetType() const
Definition: Sample.h:97
Sample & WithType(const SampleType &value)
Definition: Sample.h:154
JSON (JavaScript Object Notation).