/** * 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 DeviceFarm { namespace Model { /** *

Represents a request to the create device pool operation.

See * Also:

AWS * API Reference

*/ class CreateDevicePoolRequest : public DeviceFarmRequest { public: AWS_DEVICEFARM_API CreateDevicePoolRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDevicePool"; } AWS_DEVICEFARM_API Aws::String SerializePayload() const override; AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the project for the device pool.

*/ inline const Aws::String& GetProjectArn() const{ return m_projectArn; } /** *

The ARN of the project for the device pool.

*/ inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; } /** *

The ARN of the project for the device pool.

*/ inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; } /** *

The ARN of the project for the device pool.

*/ inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); } /** *

The ARN of the project for the device pool.

*/ inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); } /** *

The ARN of the project for the device pool.

*/ inline CreateDevicePoolRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;} /** *

The ARN of the project for the device pool.

*/ inline CreateDevicePoolRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;} /** *

The ARN of the project for the device pool.

*/ inline CreateDevicePoolRequest& WithProjectArn(const char* value) { SetProjectArn(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 CreateDevicePoolRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The device pool's name.

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

The device pool's name.

*/ inline CreateDevicePoolRequest& 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 CreateDevicePoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The device pool's description.

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

The device pool's description.

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

The device pool's rules.

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

The device pool's rules.

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

The device pool's rules.

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

The device pool's rules.

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

The device pool's rules.

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

The device pool's rules.

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

The device pool's rules.

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

The device pool's rules.

*/ inline CreateDevicePoolRequest& 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 CreateDevicePoolRequest& WithMaxDevices(int value) { SetMaxDevices(value); return *this;} private: Aws::String m_projectArn; bool m_projectArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; int m_maxDevices; bool m_maxDevicesHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws