/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DeviceFarm { namespace Model { /** *

Contains the run results requested by the device selection configuration and * how many devices were returned. For an example of the JSON response syntax, see * ScheduleRun.

See Also:

AWS * API Reference

*/ class DeviceSelectionResult { public: AWS_DEVICEFARM_API DeviceSelectionResult(); AWS_DEVICEFARM_API DeviceSelectionResult(Aws::Utils::Json::JsonView jsonValue); AWS_DEVICEFARM_API DeviceSelectionResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The filters in a device selection result.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

The filters in a device selection result.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

The filters in a device selection result.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

The filters in a device selection result.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

The filters in a device selection result.

*/ inline DeviceSelectionResult& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

The filters in a device selection result.

*/ inline DeviceSelectionResult& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

The filters in a device selection result.

*/ inline DeviceSelectionResult& AddFilters(const DeviceFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

The filters in a device selection result.

*/ inline DeviceSelectionResult& AddFilters(DeviceFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The number of devices that matched the device filter selection criteria.

*/ inline int GetMatchedDevicesCount() const{ return m_matchedDevicesCount; } /** *

The number of devices that matched the device filter selection criteria.

*/ inline bool MatchedDevicesCountHasBeenSet() const { return m_matchedDevicesCountHasBeenSet; } /** *

The number of devices that matched the device filter selection criteria.

*/ inline void SetMatchedDevicesCount(int value) { m_matchedDevicesCountHasBeenSet = true; m_matchedDevicesCount = value; } /** *

The number of devices that matched the device filter selection criteria.

*/ inline DeviceSelectionResult& WithMatchedDevicesCount(int value) { SetMatchedDevicesCount(value); return *this;} /** *

The maximum number of devices to be selected by a device filter and included * in a test run.

*/ inline int GetMaxDevices() const{ return m_maxDevices; } /** *

The maximum number of devices to be selected by a device filter and included * in a test run.

*/ inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; } /** *

The maximum number of devices to be selected by a device filter and included * in a test run.

*/ inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; } /** *

The maximum number of devices to be selected by a device filter and included * in a test run.

*/ inline DeviceSelectionResult& WithMaxDevices(int value) { SetMaxDevices(value); return *this;} private: Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_matchedDevicesCount; bool m_matchedDevicesCountHasBeenSet = false; int m_maxDevices; bool m_maxDevicesHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws