AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ScheduleRunRequest.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/DeviceFarmRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devicefarm/model/DeviceSelectionConfiguration.h>
11#include <aws/devicefarm/model/ScheduleRunTest.h>
12#include <aws/devicefarm/model/ScheduleRunConfiguration.h>
13#include <aws/devicefarm/model/ExecutionConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DeviceFarm
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_DEVICEFARM_API ScheduleRunRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ScheduleRun"; }
39
40 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
50 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
51 template<typename ProjectArnT = Aws::String>
52 void SetProjectArn(ProjectArnT&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::forward<ProjectArnT>(value); }
53 template<typename ProjectArnT = Aws::String>
54 ScheduleRunRequest& WithProjectArn(ProjectArnT&& value) { SetProjectArn(std::forward<ProjectArnT>(value)); return *this;}
56
58
62 inline const Aws::String& GetAppArn() const { return m_appArn; }
63 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
64 template<typename AppArnT = Aws::String>
65 void SetAppArn(AppArnT&& value) { m_appArnHasBeenSet = true; m_appArn = std::forward<AppArnT>(value); }
66 template<typename AppArnT = Aws::String>
67 ScheduleRunRequest& WithAppArn(AppArnT&& value) { SetAppArn(std::forward<AppArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDevicePoolArn() const { return m_devicePoolArn; }
75 inline bool DevicePoolArnHasBeenSet() const { return m_devicePoolArnHasBeenSet; }
76 template<typename DevicePoolArnT = Aws::String>
77 void SetDevicePoolArn(DevicePoolArnT&& value) { m_devicePoolArnHasBeenSet = true; m_devicePoolArn = std::forward<DevicePoolArnT>(value); }
78 template<typename DevicePoolArnT = Aws::String>
79 ScheduleRunRequest& WithDevicePoolArn(DevicePoolArnT&& value) { SetDevicePoolArn(std::forward<DevicePoolArnT>(value)); return *this;}
81
83
89 inline const DeviceSelectionConfiguration& GetDeviceSelectionConfiguration() const { return m_deviceSelectionConfiguration; }
90 inline bool DeviceSelectionConfigurationHasBeenSet() const { return m_deviceSelectionConfigurationHasBeenSet; }
91 template<typename DeviceSelectionConfigurationT = DeviceSelectionConfiguration>
92 void SetDeviceSelectionConfiguration(DeviceSelectionConfigurationT&& value) { m_deviceSelectionConfigurationHasBeenSet = true; m_deviceSelectionConfiguration = std::forward<DeviceSelectionConfigurationT>(value); }
93 template<typename DeviceSelectionConfigurationT = DeviceSelectionConfiguration>
94 ScheduleRunRequest& WithDeviceSelectionConfiguration(DeviceSelectionConfigurationT&& value) { SetDeviceSelectionConfiguration(std::forward<DeviceSelectionConfigurationT>(value)); return *this;}
96
98
101 inline const Aws::String& GetName() const { return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 template<typename NameT = Aws::String>
104 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
105 template<typename NameT = Aws::String>
106 ScheduleRunRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
108
110
113 inline const ScheduleRunTest& GetTest() const { return m_test; }
114 inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
115 template<typename TestT = ScheduleRunTest>
116 void SetTest(TestT&& value) { m_testHasBeenSet = true; m_test = std::forward<TestT>(value); }
117 template<typename TestT = ScheduleRunTest>
118 ScheduleRunRequest& WithTest(TestT&& value) { SetTest(std::forward<TestT>(value)); return *this;}
120
122
125 inline const ScheduleRunConfiguration& GetConfiguration() const { return m_configuration; }
126 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
127 template<typename ConfigurationT = ScheduleRunConfiguration>
128 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
129 template<typename ConfigurationT = ScheduleRunConfiguration>
130 ScheduleRunRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
132
134
138 inline const ExecutionConfiguration& GetExecutionConfiguration() const { return m_executionConfiguration; }
139 inline bool ExecutionConfigurationHasBeenSet() const { return m_executionConfigurationHasBeenSet; }
140 template<typename ExecutionConfigurationT = ExecutionConfiguration>
141 void SetExecutionConfiguration(ExecutionConfigurationT&& value) { m_executionConfigurationHasBeenSet = true; m_executionConfiguration = std::forward<ExecutionConfigurationT>(value); }
142 template<typename ExecutionConfigurationT = ExecutionConfiguration>
143 ScheduleRunRequest& WithExecutionConfiguration(ExecutionConfigurationT&& value) { SetExecutionConfiguration(std::forward<ExecutionConfigurationT>(value)); return *this;}
145 private:
146
147 Aws::String m_projectArn;
148 bool m_projectArnHasBeenSet = false;
149
150 Aws::String m_appArn;
151 bool m_appArnHasBeenSet = false;
152
153 Aws::String m_devicePoolArn;
154 bool m_devicePoolArnHasBeenSet = false;
155
156 DeviceSelectionConfiguration m_deviceSelectionConfiguration;
157 bool m_deviceSelectionConfigurationHasBeenSet = false;
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 ScheduleRunTest m_test;
163 bool m_testHasBeenSet = false;
164
165 ScheduleRunConfiguration m_configuration;
166 bool m_configurationHasBeenSet = false;
167
168 ExecutionConfiguration m_executionConfiguration;
169 bool m_executionConfigurationHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace DeviceFarm
174} // 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