/** * 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 update device pool operation.

See * Also:

AWS * API Reference

*/ class AWS_DEVICEFARM_API UpdateDevicePoolRequest : public DeviceFarmRequest { public: UpdateDevicePoolRequest(); // 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 "UpdateDevicePool"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the Device Farm device pool to update.

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

The Amazon Resource Name (ARN) of the Device Farm device pool to update.

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

The Amazon Resource Name (ARN) of the Device Farm device pool to update.

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

The Amazon Resource Name (ARN) of the Device Farm device pool to update.

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

The Amazon Resource Name (ARN) of the Device Farm device pool to update.

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

The Amazon Resource Name (ARN) of the Device Farm device pool to update.

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

The Amazon Resource Name (ARN) of the Device Farm device pool to update.

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

The Amazon Resource Name (ARN) of the Device Farm device pool to update.

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

A string that represents the name of the device pool to update.

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

A string that represents the name of the device pool to update.

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

A string that represents the name of the device pool to update.

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

A string that represents the name of the device pool to update.

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

A string that represents the name of the device pool to update.

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

A string that represents the name of the device pool to update.

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

A string that represents the name of the device pool to update.

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

A string that represents the name of the device pool to update.

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

A description of the device pool to update.

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

A description of the device pool to update.

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

A description of the device pool to update.

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

A description of the device pool to update.

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

A description of the device pool to update.

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

A description of the device pool to update.

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

A description of the device pool to update.

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

A description of the device pool to update.

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

Represents the rules to modify for the device pool. Updating rules is * optional. If you update rules for your request, the update replaces the existing * rules.

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

Represents the rules to modify for the device pool. Updating rules is * optional. If you update rules for your request, the update replaces the existing * rules.

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

Represents the rules to modify for the device pool. Updating rules is * optional. If you update rules for your request, the update replaces the existing * rules.

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

Represents the rules to modify for the device pool. Updating rules is * optional. If you update rules for your request, the update replaces the existing * rules.

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

Represents the rules to modify for the device pool. Updating rules is * optional. If you update rules for your request, the update replaces the existing * rules.

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

Represents the rules to modify for the device pool. Updating rules is * optional. If you update rules for your request, the update replaces the existing * rules.

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

Represents the rules to modify for the device pool. Updating rules is * optional. If you update rules for your request, the update replaces the existing * rules.

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

Represents the rules to modify for the device pool. Updating rules is * optional. If you update rules for your request, the update replaces the existing * rules.

*/ inline UpdateDevicePoolRequest& 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 that 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.

If you use this * parameter in your request, you cannot use the clearMaxDevices * parameter in the same request.

*/ 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 that 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.

If you use this * parameter in your request, you cannot use the clearMaxDevices * parameter in the same request.

*/ 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 that 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.

If you use this * parameter in your request, you cannot use the clearMaxDevices * parameter in the same request.

*/ 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 that 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.

If you use this * parameter in your request, you cannot use the clearMaxDevices * parameter in the same request.

*/ inline UpdateDevicePoolRequest& WithMaxDevices(int value) { SetMaxDevices(value); return *this;} /** *

Sets whether the maxDevices parameter applies to your device * pool. If you set this parameter to true, the * maxDevices parameter does not apply, and Device Farm does not limit * the number of devices that it adds to your device pool. In this case, Device * Farm adds all available devices that meet the criteria specified in the * rules parameter.

If you use this parameter in your request, * you cannot use the maxDevices parameter in the same request.

*/ inline bool GetClearMaxDevices() const{ return m_clearMaxDevices; } /** *

Sets whether the maxDevices parameter applies to your device * pool. If you set this parameter to true, the * maxDevices parameter does not apply, and Device Farm does not limit * the number of devices that it adds to your device pool. In this case, Device * Farm adds all available devices that meet the criteria specified in the * rules parameter.

If you use this parameter in your request, * you cannot use the maxDevices parameter in the same request.

*/ inline bool ClearMaxDevicesHasBeenSet() const { return m_clearMaxDevicesHasBeenSet; } /** *

Sets whether the maxDevices parameter applies to your device * pool. If you set this parameter to true, the * maxDevices parameter does not apply, and Device Farm does not limit * the number of devices that it adds to your device pool. In this case, Device * Farm adds all available devices that meet the criteria specified in the * rules parameter.

If you use this parameter in your request, * you cannot use the maxDevices parameter in the same request.

*/ inline void SetClearMaxDevices(bool value) { m_clearMaxDevicesHasBeenSet = true; m_clearMaxDevices = value; } /** *

Sets whether the maxDevices parameter applies to your device * pool. If you set this parameter to true, the * maxDevices parameter does not apply, and Device Farm does not limit * the number of devices that it adds to your device pool. In this case, Device * Farm adds all available devices that meet the criteria specified in the * rules parameter.

If you use this parameter in your request, * you cannot use the maxDevices parameter in the same request.

*/ inline UpdateDevicePoolRequest& WithClearMaxDevices(bool value) { SetClearMaxDevices(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::Vector m_rules; bool m_rulesHasBeenSet; int m_maxDevices; bool m_maxDevicesHasBeenSet; bool m_clearMaxDevices; bool m_clearMaxDevicesHasBeenSet; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws