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

Represents a collection of device types.

See Also:

AWS * API Reference

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

The device pool's ARN.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The device pool's ARN.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The device pool's ARN.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The device pool's ARN.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The device pool's ARN.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The device pool's ARN.

*/ inline DevicePool& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The device pool's ARN.

*/ inline DevicePool& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The device pool's ARN.

*/ inline DevicePool& WithArn(const char* value) { SetArn(value); return *this;} /** *

The device pool's name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The device pool's name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The device pool's name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The device pool's name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The device pool's name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The device pool's name.

*/ inline DevicePool& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The device pool's name.

*/ inline DevicePool& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The device pool's name.

*/ inline DevicePool& WithName(const char* value) { SetName(value); return *this;} /** *

The device pool's description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The device pool's description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The device pool's description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The device pool's description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The device pool's description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The device pool's description.

*/ inline DevicePool& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The device pool's description.

*/ inline DevicePool& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The device pool's description.

*/ inline DevicePool& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The device pool's type.

Allowed values include:

  • *

    CURATED: A device pool that is created and managed by AWS Device Farm.

    *
  • PRIVATE: A device pool that is created and managed by the device * pool developer.

*/ inline const DevicePoolType& GetType() const{ return m_type; } /** *

The device pool's type.

Allowed values include:

  • *

    CURATED: A device pool that is created and managed by AWS Device Farm.

    *
  • PRIVATE: A device pool that is created and managed by the device * pool developer.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The device pool's type.

Allowed values include:

  • *

    CURATED: A device pool that is created and managed by AWS Device Farm.

    *
  • PRIVATE: A device pool that is created and managed by the device * pool developer.

*/ inline void SetType(const DevicePoolType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The device pool's type.

Allowed values include:

  • *

    CURATED: A device pool that is created and managed by AWS Device Farm.

    *
  • PRIVATE: A device pool that is created and managed by the device * pool developer.

*/ inline void SetType(DevicePoolType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The device pool's type.

Allowed values include:

  • *

    CURATED: A device pool that is created and managed by AWS Device Farm.

    *
  • PRIVATE: A device pool that is created and managed by the device * pool developer.

*/ inline DevicePool& WithType(const DevicePoolType& value) { SetType(value); return *this;} /** *

The device pool's type.

Allowed values include:

  • *

    CURATED: A device pool that is created and managed by AWS Device Farm.

    *
  • PRIVATE: A device pool that is created and managed by the device * pool developer.

*/ inline DevicePool& WithType(DevicePoolType&& value) { SetType(std::move(value)); return *this;} /** *

Information about the device pool's rules.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

Information about the device pool's rules.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

Information about the device pool's rules.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

Information about the device pool's rules.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

Information about the device pool's rules.

*/ inline DevicePool& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

Information about the device pool's rules.

*/ inline DevicePool& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

Information about the device pool's rules.

*/ inline DevicePool& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

Information about the device pool's rules.

*/ inline DevicePool& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } /** *

The number of devices that Device Farm can add to your device pool. Device * Farm adds devices that are available and meet the criteria that you assign for * the rules parameter. Depending on how many devices meet these * constraints, your device pool might contain fewer devices than the value for * this parameter.

By specifying the maximum number of devices, you can * control the costs that you incur by running tests.

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

The number of devices that Device Farm can add to your device pool. Device * Farm adds devices that are available and meet the criteria that you assign for * the rules parameter. Depending on how many devices meet these * constraints, your device pool might contain fewer devices than the value for * this parameter.

By specifying the maximum number of devices, you can * control the costs that you incur by running tests.

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

The number of devices that Device Farm can add to your device pool. Device * Farm adds devices that are available and meet the criteria that you assign for * the rules parameter. Depending on how many devices meet these * constraints, your device pool might contain fewer devices than the value for * this parameter.

By specifying the maximum number of devices, you can * control the costs that you incur by running tests.

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

The number of devices that Device Farm can add to your device pool. Device * Farm adds devices that are available and meet the criteria that you assign for * the rules parameter. Depending on how many devices meet these * constraints, your device pool might contain fewer devices than the value for * this parameter.

By specifying the maximum number of devices, you can * control the costs that you incur by running tests.

*/ inline DevicePool& WithMaxDevices(int value) { SetMaxDevices(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; DevicePoolType m_type; bool m_typeHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; int m_maxDevices; bool m_maxDevicesHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws