AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
ScheduleRunTest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/TestType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DeviceFarm {
22namespace Model {
23
32 public:
33 AWS_DEVICEFARM_API ScheduleRunTest() = default;
34 AWS_DEVICEFARM_API ScheduleRunTest(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
49 inline TestType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(TestType value) {
52 m_typeHasBeenSet = true;
53 m_type = value;
54 }
56 SetType(value);
57 return *this;
58 }
60
62
65 inline const Aws::String& GetTestPackageArn() const { return m_testPackageArn; }
66 inline bool TestPackageArnHasBeenSet() const { return m_testPackageArnHasBeenSet; }
67 template <typename TestPackageArnT = Aws::String>
68 void SetTestPackageArn(TestPackageArnT&& value) {
69 m_testPackageArnHasBeenSet = true;
70 m_testPackageArn = std::forward<TestPackageArnT>(value);
71 }
72 template <typename TestPackageArnT = Aws::String>
73 ScheduleRunTest& WithTestPackageArn(TestPackageArnT&& value) {
74 SetTestPackageArn(std::forward<TestPackageArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetTestSpecArn() const { return m_testSpecArn; }
84 inline bool TestSpecArnHasBeenSet() const { return m_testSpecArnHasBeenSet; }
85 template <typename TestSpecArnT = Aws::String>
86 void SetTestSpecArn(TestSpecArnT&& value) {
87 m_testSpecArnHasBeenSet = true;
88 m_testSpecArn = std::forward<TestSpecArnT>(value);
89 }
90 template <typename TestSpecArnT = Aws::String>
91 ScheduleRunTest& WithTestSpecArn(TestSpecArnT&& value) {
92 SetTestSpecArn(std::forward<TestSpecArnT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetFilter() const { return m_filter; }
102 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
103 template <typename FilterT = Aws::String>
104 void SetFilter(FilterT&& value) {
105 m_filterHasBeenSet = true;
106 m_filter = std::forward<FilterT>(value);
107 }
108 template <typename FilterT = Aws::String>
109 ScheduleRunTest& WithFilter(FilterT&& value) {
110 SetFilter(std::forward<FilterT>(value));
111 return *this;
112 }
114
116
137 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
138 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
139 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
140 void SetParameters(ParametersT&& value) {
141 m_parametersHasBeenSet = true;
142 m_parameters = std::forward<ParametersT>(value);
143 }
144 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
145 ScheduleRunTest& WithParameters(ParametersT&& value) {
146 SetParameters(std::forward<ParametersT>(value));
147 return *this;
148 }
149 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
150 ScheduleRunTest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
151 m_parametersHasBeenSet = true;
152 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
153 return *this;
154 }
156 private:
158
159 Aws::String m_testPackageArn;
160
161 Aws::String m_testSpecArn;
162
163 Aws::String m_filter;
164
166 bool m_typeHasBeenSet = false;
167 bool m_testPackageArnHasBeenSet = false;
168 bool m_testSpecArnHasBeenSet = false;
169 bool m_filterHasBeenSet = false;
170 bool m_parametersHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace DeviceFarm
175} // namespace Aws
const Aws::String & GetTestPackageArn() const
AWS_DEVICEFARM_API ScheduleRunTest(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTestSpecArn() const
const Aws::String & GetFilter() const
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
ScheduleRunTest & WithFilter(FilterT &&value)
ScheduleRunTest & WithParameters(ParametersT &&value)
AWS_DEVICEFARM_API ScheduleRunTest()=default
ScheduleRunTest & WithTestPackageArn(TestPackageArnT &&value)
ScheduleRunTest & WithType(TestType value)
ScheduleRunTest & WithTestSpecArn(TestSpecArnT &&value)
AWS_DEVICEFARM_API ScheduleRunTest & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduleRunTest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
void SetTestSpecArn(TestSpecArnT &&value)
void SetParameters(ParametersT &&value)
void SetTestPackageArn(TestPackageArnT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue