AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ScheduleRunRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devicefarm/DeviceFarmRequest.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/DeviceSelectionConfiguration.h>
11#include <aws/devicefarm/model/ExecutionConfiguration.h>
12#include <aws/devicefarm/model/ScheduleRunConfiguration.h>
13#include <aws/devicefarm/model/ScheduleRunTest.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DeviceFarm {
19namespace Model {
20
28 public:
29 AWS_DEVICEFARM_API ScheduleRunRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ScheduleRun"; }
36
37 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
46 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
47 template <typename ProjectArnT = Aws::String>
48 void SetProjectArn(ProjectArnT&& value) {
49 m_projectArnHasBeenSet = true;
50 m_projectArn = std::forward<ProjectArnT>(value);
51 }
52 template <typename ProjectArnT = Aws::String>
53 ScheduleRunRequest& WithProjectArn(ProjectArnT&& value) {
54 SetProjectArn(std::forward<ProjectArnT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetAppArn() const { return m_appArn; }
65 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
66 template <typename AppArnT = Aws::String>
67 void SetAppArn(AppArnT&& value) {
68 m_appArnHasBeenSet = true;
69 m_appArn = std::forward<AppArnT>(value);
70 }
71 template <typename AppArnT = Aws::String>
72 ScheduleRunRequest& WithAppArn(AppArnT&& value) {
73 SetAppArn(std::forward<AppArnT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDevicePoolArn() const { return m_devicePoolArn; }
83 inline bool DevicePoolArnHasBeenSet() const { return m_devicePoolArnHasBeenSet; }
84 template <typename DevicePoolArnT = Aws::String>
85 void SetDevicePoolArn(DevicePoolArnT&& value) {
86 m_devicePoolArnHasBeenSet = true;
87 m_devicePoolArn = std::forward<DevicePoolArnT>(value);
88 }
89 template <typename DevicePoolArnT = Aws::String>
90 ScheduleRunRequest& WithDevicePoolArn(DevicePoolArnT&& value) {
91 SetDevicePoolArn(std::forward<DevicePoolArnT>(value));
92 return *this;
93 }
95
97
103 inline const DeviceSelectionConfiguration& GetDeviceSelectionConfiguration() const { return m_deviceSelectionConfiguration; }
104 inline bool DeviceSelectionConfigurationHasBeenSet() const { return m_deviceSelectionConfigurationHasBeenSet; }
105 template <typename DeviceSelectionConfigurationT = DeviceSelectionConfiguration>
106 void SetDeviceSelectionConfiguration(DeviceSelectionConfigurationT&& value) {
107 m_deviceSelectionConfigurationHasBeenSet = true;
108 m_deviceSelectionConfiguration = std::forward<DeviceSelectionConfigurationT>(value);
109 }
110 template <typename DeviceSelectionConfigurationT = DeviceSelectionConfiguration>
111 ScheduleRunRequest& WithDeviceSelectionConfiguration(DeviceSelectionConfigurationT&& value) {
112 SetDeviceSelectionConfiguration(std::forward<DeviceSelectionConfigurationT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetName() const { return m_name; }
122 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
123 template <typename NameT = Aws::String>
124 void SetName(NameT&& value) {
125 m_nameHasBeenSet = true;
126 m_name = std::forward<NameT>(value);
127 }
128 template <typename NameT = Aws::String>
129 ScheduleRunRequest& WithName(NameT&& value) {
130 SetName(std::forward<NameT>(value));
131 return *this;
132 }
134
136
139 inline const ScheduleRunTest& GetTest() const { return m_test; }
140 inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
141 template <typename TestT = ScheduleRunTest>
142 void SetTest(TestT&& value) {
143 m_testHasBeenSet = true;
144 m_test = std::forward<TestT>(value);
145 }
146 template <typename TestT = ScheduleRunTest>
147 ScheduleRunRequest& WithTest(TestT&& value) {
148 SetTest(std::forward<TestT>(value));
149 return *this;
150 }
152
154
157 inline const ScheduleRunConfiguration& GetConfiguration() const { return m_configuration; }
158 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
159 template <typename ConfigurationT = ScheduleRunConfiguration>
160 void SetConfiguration(ConfigurationT&& value) {
161 m_configurationHasBeenSet = true;
162 m_configuration = std::forward<ConfigurationT>(value);
163 }
164 template <typename ConfigurationT = ScheduleRunConfiguration>
165 ScheduleRunRequest& WithConfiguration(ConfigurationT&& value) {
166 SetConfiguration(std::forward<ConfigurationT>(value));
167 return *this;
168 }
170
172
176 inline const ExecutionConfiguration& GetExecutionConfiguration() const { return m_executionConfiguration; }
177 inline bool ExecutionConfigurationHasBeenSet() const { return m_executionConfigurationHasBeenSet; }
178 template <typename ExecutionConfigurationT = ExecutionConfiguration>
179 void SetExecutionConfiguration(ExecutionConfigurationT&& value) {
180 m_executionConfigurationHasBeenSet = true;
181 m_executionConfiguration = std::forward<ExecutionConfigurationT>(value);
182 }
183 template <typename ExecutionConfigurationT = ExecutionConfiguration>
184 ScheduleRunRequest& WithExecutionConfiguration(ExecutionConfigurationT&& value) {
185 SetExecutionConfiguration(std::forward<ExecutionConfigurationT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_projectArn;
191
192 Aws::String m_appArn;
193
194 Aws::String m_devicePoolArn;
195
196 DeviceSelectionConfiguration m_deviceSelectionConfiguration;
197
198 Aws::String m_name;
199
200 ScheduleRunTest m_test;
201
202 ScheduleRunConfiguration m_configuration;
203
204 ExecutionConfiguration m_executionConfiguration;
205 bool m_projectArnHasBeenSet = false;
206 bool m_appArnHasBeenSet = false;
207 bool m_devicePoolArnHasBeenSet = false;
208 bool m_deviceSelectionConfigurationHasBeenSet = false;
209 bool m_nameHasBeenSet = false;
210 bool m_testHasBeenSet = false;
211 bool m_configurationHasBeenSet = false;
212 bool m_executionConfigurationHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace DeviceFarm
217} // namespace Aws
const ScheduleRunConfiguration & GetConfiguration() const
ScheduleRunRequest & WithDevicePoolArn(DevicePoolArnT &&value)
void SetDeviceSelectionConfiguration(DeviceSelectionConfigurationT &&value)
ScheduleRunRequest & WithExecutionConfiguration(ExecutionConfigurationT &&value)
void SetConfiguration(ConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
const ExecutionConfiguration & GetExecutionConfiguration() const
ScheduleRunRequest & WithTest(TestT &&value)
const ScheduleRunTest & GetTest() const
ScheduleRunRequest & WithProjectArn(ProjectArnT &&value)
const DeviceSelectionConfiguration & GetDeviceSelectionConfiguration() const
void SetExecutionConfiguration(ExecutionConfigurationT &&value)
ScheduleRunRequest & WithAppArn(AppArnT &&value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDevicePoolArn(DevicePoolArnT &&value)
ScheduleRunRequest & WithName(NameT &&value)
AWS_DEVICEFARM_API ScheduleRunRequest()=default
ScheduleRunRequest & WithConfiguration(ConfigurationT &&value)
ScheduleRunRequest & WithDeviceSelectionConfiguration(DeviceSelectionConfigurationT &&value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String