AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeviceSelectionResult.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
35 {
36 public:
37 AWS_DEVICEFARM_API DeviceSelectionResult() = default;
40 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<DeviceFilter>& GetFilters() const { return m_filters; }
48 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
49 template<typename FiltersT = Aws::Vector<DeviceFilter>>
50 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
51 template<typename FiltersT = Aws::Vector<DeviceFilter>>
52 DeviceSelectionResult& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
53 template<typename FiltersT = DeviceFilter>
54 DeviceSelectionResult& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
56
58
61 inline int GetMatchedDevicesCount() const { return m_matchedDevicesCount; }
62 inline bool MatchedDevicesCountHasBeenSet() const { return m_matchedDevicesCountHasBeenSet; }
63 inline void SetMatchedDevicesCount(int value) { m_matchedDevicesCountHasBeenSet = true; m_matchedDevicesCount = value; }
64 inline DeviceSelectionResult& WithMatchedDevicesCount(int value) { SetMatchedDevicesCount(value); return *this;}
66
68
72 inline int GetMaxDevices() const { return m_maxDevices; }
73 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
74 inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
75 inline DeviceSelectionResult& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
77 private:
78
80 bool m_filtersHasBeenSet = false;
81
82 int m_matchedDevicesCount{0};
83 bool m_matchedDevicesCountHasBeenSet = false;
84
85 int m_maxDevices{0};
86 bool m_maxDevicesHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace DeviceFarm
91} // 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