AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 "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 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 UpdateDevicePoolRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(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 UpdateDevicePoolRequest& 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 UpdateDevicePoolRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
85 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
86 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
87 template<typename RulesT = Aws::Vector<Rule>>
88 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
89 template<typename RulesT = Aws::Vector<Rule>>
90 UpdateDevicePoolRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
91 template<typename RulesT = Rule>
92 UpdateDevicePoolRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
94
96
106 inline int GetMaxDevices() const { return m_maxDevices; }
107 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
108 inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
109 inline UpdateDevicePoolRequest& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
111
113
122 inline bool GetClearMaxDevices() const { return m_clearMaxDevices; }
123 inline bool ClearMaxDevicesHasBeenSet() const { return m_clearMaxDevicesHasBeenSet; }
124 inline void SetClearMaxDevices(bool value) { m_clearMaxDevicesHasBeenSet = true; m_clearMaxDevices = value; }
125 inline UpdateDevicePoolRequest& WithClearMaxDevices(bool value) { SetClearMaxDevices(value); return *this;}
127 private:
128
129 Aws::String m_arn;
130 bool m_arnHasBeenSet = false;
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 Aws::Vector<Rule> m_rules;
139 bool m_rulesHasBeenSet = false;
140
141 int m_maxDevices{0};
142 bool m_maxDevicesHasBeenSet = false;
143
144 bool m_clearMaxDevices{false};
145 bool m_clearMaxDevicesHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace DeviceFarm
150} // 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