AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDevicePoolRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/devicefarm/model/Rule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DeviceFarm
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_DEVICEFARM_API CreateDevicePoolRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDevicePool"; }
37
38 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
48 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
49 template<typename ProjectArnT = Aws::String>
50 void SetProjectArn(ProjectArnT&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::forward<ProjectArnT>(value); }
51 template<typename ProjectArnT = Aws::String>
52 CreateDevicePoolRequest& WithProjectArn(ProjectArnT&& value) { SetProjectArn(std::forward<ProjectArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreateDevicePoolRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 CreateDevicePoolRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
83 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
84 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
85 template<typename RulesT = Aws::Vector<Rule>>
86 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
87 template<typename RulesT = Aws::Vector<Rule>>
88 CreateDevicePoolRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
89 template<typename RulesT = Rule>
90 CreateDevicePoolRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
92
94
102 inline int GetMaxDevices() const { return m_maxDevices; }
103 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
104 inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
105 inline CreateDevicePoolRequest& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
107 private:
108
109 Aws::String m_projectArn;
110 bool m_projectArnHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 Aws::Vector<Rule> m_rules;
119 bool m_rulesHasBeenSet = false;
120
121 int m_maxDevices{0};
122 bool m_maxDevicesHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace DeviceFarm
127} // 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