AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeviceSelectionResult.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
31 public:
32 AWS_DEVICEFARM_API DeviceSelectionResult() = default;
35 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<DeviceFilter>& GetFilters() const { return m_filters; }
42 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
43 template <typename FiltersT = Aws::Vector<DeviceFilter>>
44 void SetFilters(FiltersT&& value) {
45 m_filtersHasBeenSet = true;
46 m_filters = std::forward<FiltersT>(value);
47 }
48 template <typename FiltersT = Aws::Vector<DeviceFilter>>
50 SetFilters(std::forward<FiltersT>(value));
51 return *this;
52 }
53 template <typename FiltersT = DeviceFilter>
54 DeviceSelectionResult& AddFilters(FiltersT&& value) {
55 m_filtersHasBeenSet = true;
56 m_filters.emplace_back(std::forward<FiltersT>(value));
57 return *this;
58 }
60
62
65 inline int GetMatchedDevicesCount() const { return m_matchedDevicesCount; }
66 inline bool MatchedDevicesCountHasBeenSet() const { return m_matchedDevicesCountHasBeenSet; }
67 inline void SetMatchedDevicesCount(int value) {
68 m_matchedDevicesCountHasBeenSet = true;
69 m_matchedDevicesCount = value;
70 }
73 return *this;
74 }
76
78
82 inline int GetMaxDevices() const { return m_maxDevices; }
83 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
84 inline void SetMaxDevices(int value) {
85 m_maxDevicesHasBeenSet = true;
86 m_maxDevices = value;
87 }
89 SetMaxDevices(value);
90 return *this;
91 }
93 private:
95
96 int m_matchedDevicesCount{0};
97
98 int m_maxDevices{0};
99 bool m_filtersHasBeenSet = false;
100 bool m_matchedDevicesCountHasBeenSet = false;
101 bool m_maxDevicesHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace DeviceFarm
106} // namespace Aws
AWS_DEVICEFARM_API DeviceSelectionResult & operator=(Aws::Utils::Json::JsonView jsonValue)
DeviceSelectionResult & WithFilters(FiltersT &&value)
const Aws::Vector< DeviceFilter > & GetFilters() const
AWS_DEVICEFARM_API DeviceSelectionResult()=default
DeviceSelectionResult & AddFilters(FiltersT &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
DeviceSelectionResult & WithMaxDevices(int value)
AWS_DEVICEFARM_API DeviceSelectionResult(Aws::Utils::Json::JsonView jsonValue)
DeviceSelectionResult & WithMatchedDevicesCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue