AWS SDK for C++  0.12.9
AWS SDK for C++
ScheduleRunTest.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DeviceFarm
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  ScheduleRunTest& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
63  inline const TestType& GetType() const{ return m_type; }
64 
82  inline void SetType(const TestType& value) { m_typeHasBeenSet = true; m_type = value; }
83 
101  inline void SetType(TestType&& value) { m_typeHasBeenSet = true; m_type = value; }
102 
120  inline ScheduleRunTest& WithType(const TestType& value) { SetType(value); return *this;}
121 
139  inline ScheduleRunTest& WithType(TestType&& value) { SetType(value); return *this;}
140 
144  inline const Aws::String& GetTestPackageArn() const{ return m_testPackageArn; }
145 
149  inline void SetTestPackageArn(const Aws::String& value) { m_testPackageArnHasBeenSet = true; m_testPackageArn = value; }
150 
154  inline void SetTestPackageArn(Aws::String&& value) { m_testPackageArnHasBeenSet = true; m_testPackageArn = value; }
155 
159  inline void SetTestPackageArn(const char* value) { m_testPackageArnHasBeenSet = true; m_testPackageArn.assign(value); }
160 
164  inline ScheduleRunTest& WithTestPackageArn(const Aws::String& value) { SetTestPackageArn(value); return *this;}
165 
169  inline ScheduleRunTest& WithTestPackageArn(Aws::String&& value) { SetTestPackageArn(value); return *this;}
170 
174  inline ScheduleRunTest& WithTestPackageArn(const char* value) { SetTestPackageArn(value); return *this;}
175 
179  inline const Aws::String& GetFilter() const{ return m_filter; }
180 
184  inline void SetFilter(const Aws::String& value) { m_filterHasBeenSet = true; m_filter = value; }
185 
189  inline void SetFilter(Aws::String&& value) { m_filterHasBeenSet = true; m_filter = value; }
190 
194  inline void SetFilter(const char* value) { m_filterHasBeenSet = true; m_filter.assign(value); }
195 
199  inline ScheduleRunTest& WithFilter(const Aws::String& value) { SetFilter(value); return *this;}
200 
204  inline ScheduleRunTest& WithFilter(Aws::String&& value) { SetFilter(value); return *this;}
205 
209  inline ScheduleRunTest& WithFilter(const char* value) { SetFilter(value); return *this;}
210 
215  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
216 
221  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
222 
227  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
228 
233  inline ScheduleRunTest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
234 
239  inline ScheduleRunTest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(value); return *this;}
240 
245  inline ScheduleRunTest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
246 
251  inline ScheduleRunTest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
252 
257  inline ScheduleRunTest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
258 
263  inline ScheduleRunTest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
264 
269  inline ScheduleRunTest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
270 
275  inline ScheduleRunTest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
276 
281  inline ScheduleRunTest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
282 
283  private:
284  TestType m_type;
285  bool m_typeHasBeenSet;
286  Aws::String m_testPackageArn;
287  bool m_testPackageArnHasBeenSet;
288  Aws::String m_filter;
289  bool m_filterHasBeenSet;
291  bool m_parametersHasBeenSet;
292  };
293 
294 } // namespace Model
295 } // namespace DeviceFarm
296 } // namespace Aws
#define AWS_DEVICEFARM_API
ScheduleRunTest & WithTestPackageArn(const Aws::String &value)
const Aws::String & GetTestPackageArn() const
void SetFilter(const Aws::String &value)
ScheduleRunTest & AddParameters(const Aws::String &key, Aws::String &&value)
ScheduleRunTest & AddParameters(Aws::String &&key, const char *value)
ScheduleRunTest & AddParameters(const char *key, Aws::String &&value)
ScheduleRunTest & WithTestPackageArn(Aws::String &&value)
ScheduleRunTest & WithType(const TestType &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
ScheduleRunTest & AddParameters(const char *key, const char *value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetTestPackageArn(const Aws::String &value)
void SetTestPackageArn(Aws::String &&value)
ScheduleRunTest & WithTestPackageArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetTestPackageArn(const char *value)
void SetType(const TestType &value)
ScheduleRunTest & AddParameters(const Aws::String &key, const Aws::String &value)
ScheduleRunTest & AddParameters(Aws::String &&key, const Aws::String &value)
ScheduleRunTest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
ScheduleRunTest & AddParameters(Aws::String &&key, Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ScheduleRunTest & WithFilter(const char *value)
const Aws::String & GetFilter() const
ScheduleRunTest & WithType(TestType &&value)
ScheduleRunTest & WithFilter(const Aws::String &value)
ScheduleRunTest & WithFilter(Aws::String &&value)
ScheduleRunTest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
JSON (JavaScript Object Notation).