AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFilters(const Aws::Vector<DeviceFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
90 inline void SetFilters(Aws::Vector<DeviceFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
92 inline DeviceSelectionConfiguration& WithFilters(Aws::Vector<DeviceFilter>&& value) { SetFilters(std::move(value)); return *this;}
93 inline DeviceSelectionConfiguration& AddFilters(const DeviceFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
94 inline DeviceSelectionConfiguration& AddFilters(DeviceFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(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;
112 bool m_maxDevicesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace DeviceFarm
117} // namespace Aws
DeviceSelectionConfiguration & WithFilters(const Aws::Vector< DeviceFilter > &value)
void SetFilters(const Aws::Vector< DeviceFilter > &value)
AWS_DEVICEFARM_API DeviceSelectionConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API DeviceSelectionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
DeviceSelectionConfiguration & AddFilters(const DeviceFilter &value)
DeviceSelectionConfiguration & WithFilters(Aws::Vector< DeviceFilter > &&value)
const Aws::Vector< DeviceFilter > & GetFilters() const
DeviceSelectionConfiguration & AddFilters(DeviceFilter &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue