AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
50 inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); }
51 inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
52 inline CreateDevicePoolRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
53 inline CreateDevicePoolRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;}
54 inline CreateDevicePoolRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CreateDevicePoolRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CreateDevicePoolRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CreateDevicePoolRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline CreateDevicePoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline CreateDevicePoolRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline CreateDevicePoolRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
89 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
90 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
91 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
92 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
93 inline CreateDevicePoolRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
94 inline CreateDevicePoolRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
95 inline CreateDevicePoolRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
96 inline CreateDevicePoolRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
98
100
108 inline int GetMaxDevices() const{ return m_maxDevices; }
109 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
110 inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
111 inline CreateDevicePoolRequest& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
113 private:
114
115 Aws::String m_projectArn;
116 bool m_projectArnHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::Vector<Rule> m_rules;
125 bool m_rulesHasBeenSet = false;
126
127 int m_maxDevices;
128 bool m_maxDevicesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace DeviceFarm
133} // namespace Aws
CreateDevicePoolRequest & WithRules(Aws::Vector< Rule > &&value)
CreateDevicePoolRequest & WithMaxDevices(int value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDevicePoolRequest & WithProjectArn(const char *value)
CreateDevicePoolRequest & AddRules(Rule &&value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
CreateDevicePoolRequest & WithName(const char *value)
CreateDevicePoolRequest & WithDescription(Aws::String &&value)
void SetRules(const Aws::Vector< Rule > &value)
CreateDevicePoolRequest & WithDescription(const Aws::String &value)
CreateDevicePoolRequest & WithRules(const Aws::Vector< Rule > &value)
CreateDevicePoolRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateDevicePoolRequest & WithName(const Aws::String &value)
CreateDevicePoolRequest & WithDescription(const char *value)
CreateDevicePoolRequest & WithProjectArn(const Aws::String &value)
CreateDevicePoolRequest & AddRules(const Rule &value)
CreateDevicePoolRequest & WithProjectArn(Aws::String &&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