AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDevicePoolRequest.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 UpdateDevicePoolRequest();
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 "UpdateDevicePool"; }
37
38 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline UpdateDevicePoolRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline UpdateDevicePoolRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline UpdateDevicePoolRequest& WithArn(const char* value) { SetArn(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 UpdateDevicePoolRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline UpdateDevicePoolRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline UpdateDevicePoolRequest& 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 UpdateDevicePoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline UpdateDevicePoolRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline UpdateDevicePoolRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
91 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
92 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
93 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
94 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
95 inline UpdateDevicePoolRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
96 inline UpdateDevicePoolRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
97 inline UpdateDevicePoolRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
98 inline UpdateDevicePoolRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
100
102
112 inline int GetMaxDevices() const{ return m_maxDevices; }
113 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
114 inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
115 inline UpdateDevicePoolRequest& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
117
119
128 inline bool GetClearMaxDevices() const{ return m_clearMaxDevices; }
129 inline bool ClearMaxDevicesHasBeenSet() const { return m_clearMaxDevicesHasBeenSet; }
130 inline void SetClearMaxDevices(bool value) { m_clearMaxDevicesHasBeenSet = true; m_clearMaxDevices = value; }
131 inline UpdateDevicePoolRequest& WithClearMaxDevices(bool value) { SetClearMaxDevices(value); return *this;}
133 private:
134
135 Aws::String m_arn;
136 bool m_arnHasBeenSet = false;
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
144 Aws::Vector<Rule> m_rules;
145 bool m_rulesHasBeenSet = false;
146
147 int m_maxDevices;
148 bool m_maxDevicesHasBeenSet = false;
149
150 bool m_clearMaxDevices;
151 bool m_clearMaxDevicesHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace DeviceFarm
156} // namespace Aws
UpdateDevicePoolRequest & WithRules(const Aws::Vector< Rule > &value)
UpdateDevicePoolRequest & WithClearMaxDevices(bool value)
UpdateDevicePoolRequest & WithName(const Aws::String &value)
UpdateDevicePoolRequest & AddRules(Rule &&value)
UpdateDevicePoolRequest & AddRules(const Rule &value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDevicePoolRequest & WithDescription(const Aws::String &value)
UpdateDevicePoolRequest & WithArn(const char *value)
UpdateDevicePoolRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateDevicePoolRequest & WithName(const char *value)
UpdateDevicePoolRequest & WithMaxDevices(int value)
UpdateDevicePoolRequest & WithRules(Aws::Vector< Rule > &&value)
UpdateDevicePoolRequest & WithName(Aws::String &&value)
void SetRules(const Aws::Vector< Rule > &value)
UpdateDevicePoolRequest & WithArn(const Aws::String &value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
UpdateDevicePoolRequest & WithDescription(const char *value)
UpdateDevicePoolRequest & WithArn(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