AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFilters(const Aws::Vector<DeviceFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
50 inline void SetFilters(Aws::Vector<DeviceFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
51 inline DeviceSelectionResult& WithFilters(const Aws::Vector<DeviceFilter>& value) { SetFilters(value); return *this;}
52 inline DeviceSelectionResult& WithFilters(Aws::Vector<DeviceFilter>&& value) { SetFilters(std::move(value)); return *this;}
53 inline DeviceSelectionResult& AddFilters(const DeviceFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
54 inline DeviceSelectionResult& AddFilters(DeviceFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(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;
83 bool m_matchedDevicesCountHasBeenSet = false;
84
85 int m_maxDevices;
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)
void SetFilters(const Aws::Vector< DeviceFilter > &value)
const Aws::Vector< DeviceFilter > & GetFilters() const
DeviceSelectionResult & WithFilters(const Aws::Vector< DeviceFilter > &value)
DeviceSelectionResult & AddFilters(const DeviceFilter &value)
void SetFilters(Aws::Vector< DeviceFilter > &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
DeviceSelectionResult & WithMaxDevices(int value)
DeviceSelectionResult & WithFilters(Aws::Vector< DeviceFilter > &&value)
AWS_DEVICEFARM_API DeviceSelectionResult(Aws::Utils::Json::JsonView jsonValue)
DeviceSelectionResult & AddFilters(DeviceFilter &&value)
DeviceSelectionResult & WithMatchedDevicesCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue