AWS SDK for C++  0.14.3
AWS SDK for C++
ScheduleRunRequest.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
21 
22 namespace Aws
23 {
24 namespace DeviceFarm
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetProjectArn() const{ return m_projectArn; }
44 
48  inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
49 
53  inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
54 
58  inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
59 
63  inline ScheduleRunRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
64 
68  inline ScheduleRunRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(value); return *this;}
69 
73  inline ScheduleRunRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
74 
78  inline const Aws::String& GetAppArn() const{ return m_appArn; }
79 
83  inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; }
84 
88  inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = value; }
89 
93  inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); }
94 
98  inline ScheduleRunRequest& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;}
99 
103  inline ScheduleRunRequest& WithAppArn(Aws::String&& value) { SetAppArn(value); return *this;}
104 
108  inline ScheduleRunRequest& WithAppArn(const char* value) { SetAppArn(value); return *this;}
109 
113  inline const Aws::String& GetDevicePoolArn() const{ return m_devicePoolArn; }
114 
118  inline void SetDevicePoolArn(const Aws::String& value) { m_devicePoolArnHasBeenSet = true; m_devicePoolArn = value; }
119 
123  inline void SetDevicePoolArn(Aws::String&& value) { m_devicePoolArnHasBeenSet = true; m_devicePoolArn = value; }
124 
128  inline void SetDevicePoolArn(const char* value) { m_devicePoolArnHasBeenSet = true; m_devicePoolArn.assign(value); }
129 
133  inline ScheduleRunRequest& WithDevicePoolArn(const Aws::String& value) { SetDevicePoolArn(value); return *this;}
134 
138  inline ScheduleRunRequest& WithDevicePoolArn(Aws::String&& value) { SetDevicePoolArn(value); return *this;}
139 
143  inline ScheduleRunRequest& WithDevicePoolArn(const char* value) { SetDevicePoolArn(value); return *this;}
144 
148  inline const Aws::String& GetName() const{ return m_name; }
149 
153  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
154 
158  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
159 
163  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
164 
168  inline ScheduleRunRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
169 
173  inline ScheduleRunRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
174 
178  inline ScheduleRunRequest& WithName(const char* value) { SetName(value); return *this;}
179 
183  inline const ScheduleRunTest& GetTest() const{ return m_test; }
184 
188  inline void SetTest(const ScheduleRunTest& value) { m_testHasBeenSet = true; m_test = value; }
189 
193  inline void SetTest(ScheduleRunTest&& value) { m_testHasBeenSet = true; m_test = value; }
194 
198  inline ScheduleRunRequest& WithTest(const ScheduleRunTest& value) { SetTest(value); return *this;}
199 
203  inline ScheduleRunRequest& WithTest(ScheduleRunTest&& value) { SetTest(value); return *this;}
204 
208  inline const ScheduleRunConfiguration& GetConfiguration() const{ return m_configuration; }
209 
213  inline void SetConfiguration(const ScheduleRunConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
214 
218  inline void SetConfiguration(ScheduleRunConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = value; }
219 
223  inline ScheduleRunRequest& WithConfiguration(const ScheduleRunConfiguration& value) { SetConfiguration(value); return *this;}
224 
228  inline ScheduleRunRequest& WithConfiguration(ScheduleRunConfiguration&& value) { SetConfiguration(value); return *this;}
229 
230  private:
231  Aws::String m_projectArn;
232  bool m_projectArnHasBeenSet;
233  Aws::String m_appArn;
234  bool m_appArnHasBeenSet;
235  Aws::String m_devicePoolArn;
236  bool m_devicePoolArnHasBeenSet;
237  Aws::String m_name;
238  bool m_nameHasBeenSet;
239  ScheduleRunTest m_test;
240  bool m_testHasBeenSet;
241  ScheduleRunConfiguration m_configuration;
242  bool m_configurationHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace DeviceFarm
247 } // namespace Aws
void SetConfiguration(ScheduleRunConfiguration &&value)
#define AWS_DEVICEFARM_API
ScheduleRunRequest & WithName(const char *value)
void SetName(const Aws::String &value)
ScheduleRunRequest & WithConfiguration(const ScheduleRunConfiguration &value)
void SetDevicePoolArn(const Aws::String &value)
ScheduleRunRequest & WithAppArn(const Aws::String &value)
void SetAppArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ScheduleRunRequest & WithAppArn(Aws::String &&value)
ScheduleRunRequest & WithAppArn(const char *value)
const Aws::String & GetDevicePoolArn() const
const Aws::String & GetProjectArn() const
ScheduleRunRequest & WithName(Aws::String &&value)
const ScheduleRunConfiguration & GetConfiguration() const
void SetProjectArn(const Aws::String &value)
ScheduleRunRequest & WithProjectArn(const Aws::String &value)
ScheduleRunRequest & WithName(const Aws::String &value)
ScheduleRunRequest & WithTest(const ScheduleRunTest &value)
ScheduleRunRequest & WithProjectArn(const char *value)
void SetTest(const ScheduleRunTest &value)
ScheduleRunRequest & WithProjectArn(Aws::String &&value)
void SetConfiguration(const ScheduleRunConfiguration &value)
ScheduleRunRequest & WithTest(ScheduleRunTest &&value)
ScheduleRunRequest & WithDevicePoolArn(const Aws::String &value)
ScheduleRunRequest & WithConfiguration(ScheduleRunConfiguration &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ScheduleRunRequest & WithDevicePoolArn(Aws::String &&value)
ScheduleRunRequest & WithDevicePoolArn(const char *value)
const ScheduleRunTest & GetTest() const
JSON (JavaScript Object Notation).