AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DevicePool.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/model/DevicePoolType.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 Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DeviceFarm
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DEVICEFARM_API DevicePool() = default;
38 AWS_DEVICEFARM_API DevicePool(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API DevicePool& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
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 DevicePool& 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 DevicePool& 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 DevicePool& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
86 inline DevicePoolType GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(DevicePoolType value) { m_typeHasBeenSet = true; m_type = value; }
89 inline DevicePool& WithType(DevicePoolType value) { SetType(value); return *this;}
91
93
96 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
97 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
98 template<typename RulesT = Aws::Vector<Rule>>
99 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
100 template<typename RulesT = Aws::Vector<Rule>>
101 DevicePool& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
102 template<typename RulesT = Rule>
103 DevicePool& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
105
107
115 inline int GetMaxDevices() const { return m_maxDevices; }
116 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
117 inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
118 inline DevicePool& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
120 private:
121
122 Aws::String m_arn;
123 bool m_arnHasBeenSet = false;
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
132 bool m_typeHasBeenSet = false;
133
134 Aws::Vector<Rule> m_rules;
135 bool m_rulesHasBeenSet = false;
136
137 int m_maxDevices{0};
138 bool m_maxDevicesHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace DeviceFarm
143} // namespace Aws
DevicePool & WithType(DevicePoolType value)
Definition DevicePool.h:89
const Aws::String & GetDescription() const
Definition DevicePool.h:71
DevicePool & WithRules(RulesT &&value)
Definition DevicePool.h:101
DevicePool & WithName(NameT &&value)
Definition DevicePool.h:64
AWS_DEVICEFARM_API DevicePool(Aws::Utils::Json::JsonView jsonValue)
DevicePool & WithMaxDevices(int value)
Definition DevicePool.h:118
DevicePool & WithDescription(DescriptionT &&value)
Definition DevicePool.h:76
const Aws::String & GetArn() const
Definition DevicePool.h:47
const Aws::String & GetName() const
Definition DevicePool.h:59
void SetDescription(DescriptionT &&value)
Definition DevicePool.h:74
DevicePoolType GetType() const
Definition DevicePool.h:86
void SetRules(RulesT &&value)
Definition DevicePool.h:99
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API DevicePool & operator=(Aws::Utils::Json::JsonView jsonValue)
DevicePool & AddRules(RulesT &&value)
Definition DevicePool.h:103
const Aws::Vector< Rule > & GetRules() const
Definition DevicePool.h:96
DevicePool & WithArn(ArnT &&value)
Definition DevicePool.h:52
AWS_DEVICEFARM_API DevicePool()=default
void SetType(DevicePoolType value)
Definition DevicePool.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue