AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DeviceSelectionConfiguration.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devicefarm/model/DeviceFilter.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DeviceFarm
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_DEVICEFARM_API DeviceSelectionConfiguration() = default;
41 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
87 inline const Aws::Vector<DeviceFilter>& GetFilters() const { return m_filters; }
88 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
89 template<typename FiltersT = Aws::Vector<DeviceFilter>>
90 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
91 template<typename FiltersT = Aws::Vector<DeviceFilter>>
92 DeviceSelectionConfiguration& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
93 template<typename FiltersT = DeviceFilter>
94 DeviceSelectionConfiguration& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
96
98
101 inline int GetMaxDevices() const { return m_maxDevices; }
102 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
103 inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
104 inline DeviceSelectionConfiguration& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
106 private:
107
109 bool m_filtersHasBeenSet = false;
110
111 int m_maxDevices{0};
112 bool m_maxDevicesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace DeviceFarm
117} // 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