AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateDevicePoolRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devicefarm/DeviceFarmRequest.h>
10#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
11#include <aws/devicefarm/model/Rule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DeviceFarm {
17namespace Model {
18
26 public:
27 AWS_DEVICEFARM_API UpdateDevicePoolRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateDevicePool"; }
34
35 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
100 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
101 template <typename RulesT = Aws::Vector<Rule>>
102 void SetRules(RulesT&& value) {
103 m_rulesHasBeenSet = true;
104 m_rules = std::forward<RulesT>(value);
105 }
106 template <typename RulesT = Aws::Vector<Rule>>
108 SetRules(std::forward<RulesT>(value));
109 return *this;
110 }
111 template <typename RulesT = Rule>
113 m_rulesHasBeenSet = true;
114 m_rules.emplace_back(std::forward<RulesT>(value));
115 return *this;
116 }
118
120
130 inline int GetMaxDevices() const { return m_maxDevices; }
131 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
132 inline void SetMaxDevices(int value) {
133 m_maxDevicesHasBeenSet = true;
134 m_maxDevices = value;
135 }
137 SetMaxDevices(value);
138 return *this;
139 }
141
143
152 inline bool GetClearMaxDevices() const { return m_clearMaxDevices; }
153 inline bool ClearMaxDevicesHasBeenSet() const { return m_clearMaxDevicesHasBeenSet; }
154 inline void SetClearMaxDevices(bool value) {
155 m_clearMaxDevicesHasBeenSet = true;
156 m_clearMaxDevices = value;
157 }
159 SetClearMaxDevices(value);
160 return *this;
161 }
163 private:
164 Aws::String m_arn;
165
166 Aws::String m_name;
167
168 Aws::String m_description;
169
170 Aws::Vector<Rule> m_rules;
171
172 int m_maxDevices{0};
173
174 bool m_clearMaxDevices{false};
175 bool m_arnHasBeenSet = false;
176 bool m_nameHasBeenSet = false;
177 bool m_descriptionHasBeenSet = false;
178 bool m_rulesHasBeenSet = false;
179 bool m_maxDevicesHasBeenSet = false;
180 bool m_clearMaxDevicesHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace DeviceFarm
185} // namespace Aws
UpdateDevicePoolRequest & WithDescription(DescriptionT &&value)
UpdateDevicePoolRequest & WithArn(ArnT &&value)
UpdateDevicePoolRequest & WithRules(RulesT &&value)
UpdateDevicePoolRequest & WithName(NameT &&value)
UpdateDevicePoolRequest & WithClearMaxDevices(bool value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DEVICEFARM_API UpdateDevicePoolRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateDevicePoolRequest & WithMaxDevices(int value)
UpdateDevicePoolRequest & AddRules(RulesT &&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
std::vector< T, Aws::Allocator< T > > Vector