AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
DeviceSelectionConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
9#include <aws/devicefarm/model/DeviceFilter.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DeviceFarm {
21namespace Model {
22
32 public:
33 AWS_DEVICEFARM_API DeviceSelectionConfiguration() = default;
36 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
81 inline const Aws::Vector<DeviceFilter>& GetFilters() const { return m_filters; }
82 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
83 template <typename FiltersT = Aws::Vector<DeviceFilter>>
84 void SetFilters(FiltersT&& value) {
85 m_filtersHasBeenSet = true;
86 m_filters = std::forward<FiltersT>(value);
87 }
88 template <typename FiltersT = Aws::Vector<DeviceFilter>>
90 SetFilters(std::forward<FiltersT>(value));
91 return *this;
92 }
93 template <typename FiltersT = DeviceFilter>
95 m_filtersHasBeenSet = true;
96 m_filters.emplace_back(std::forward<FiltersT>(value));
97 return *this;
98 }
100
102
105 inline int GetMaxDevices() const { return m_maxDevices; }
106 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
107 inline void SetMaxDevices(int value) {
108 m_maxDevicesHasBeenSet = true;
109 m_maxDevices = value;
110 }
112 SetMaxDevices(value);
113 return *this;
114 }
116 private:
118
119 int m_maxDevices{0};
120 bool m_filtersHasBeenSet = false;
121 bool m_maxDevicesHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace DeviceFarm
126} // namespace Aws
AWS_DEVICEFARM_API DeviceSelectionConfiguration(Aws::Utils::Json::JsonView jsonValue)
DeviceSelectionConfiguration & AddFilters(FiltersT &&value)
AWS_DEVICEFARM_API DeviceSelectionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
DeviceSelectionConfiguration & WithFilters(FiltersT &&value)
const Aws::Vector< DeviceFilter > & GetFilters() const
AWS_DEVICEFARM_API DeviceSelectionConfiguration()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue