AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateDevicePoolRequest.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 CreateDevicePoolRequest() = 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 "CreateDevicePool"; }
34
35 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
44 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
45 template <typename ProjectArnT = Aws::String>
46 void SetProjectArn(ProjectArnT&& value) {
47 m_projectArnHasBeenSet = true;
48 m_projectArn = std::forward<ProjectArnT>(value);
49 }
50 template <typename ProjectArnT = Aws::String>
52 SetProjectArn(std::forward<ProjectArnT>(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
97 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
98 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
99 template <typename RulesT = Aws::Vector<Rule>>
100 void SetRules(RulesT&& value) {
101 m_rulesHasBeenSet = true;
102 m_rules = std::forward<RulesT>(value);
103 }
104 template <typename RulesT = Aws::Vector<Rule>>
106 SetRules(std::forward<RulesT>(value));
107 return *this;
108 }
109 template <typename RulesT = Rule>
111 m_rulesHasBeenSet = true;
112 m_rules.emplace_back(std::forward<RulesT>(value));
113 return *this;
114 }
116
118
126 inline int GetMaxDevices() const { return m_maxDevices; }
127 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
128 inline void SetMaxDevices(int value) {
129 m_maxDevicesHasBeenSet = true;
130 m_maxDevices = value;
131 }
133 SetMaxDevices(value);
134 return *this;
135 }
137 private:
138 Aws::String m_projectArn;
139
140 Aws::String m_name;
141
142 Aws::String m_description;
143
144 Aws::Vector<Rule> m_rules;
145
146 int m_maxDevices{0};
147 bool m_projectArnHasBeenSet = false;
148 bool m_nameHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_rulesHasBeenSet = false;
151 bool m_maxDevicesHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace DeviceFarm
156} // namespace Aws
CreateDevicePoolRequest & AddRules(RulesT &&value)
CreateDevicePoolRequest & WithMaxDevices(int value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
CreateDevicePoolRequest & WithRules(RulesT &&value)
AWS_DEVICEFARM_API CreateDevicePoolRequest()=default
virtual const char * GetServiceRequestName() const override
CreateDevicePoolRequest & WithProjectArn(ProjectArnT &&value)
CreateDevicePoolRequest & WithName(NameT &&value)
CreateDevicePoolRequest & WithDescription(DescriptionT &&value)
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