268 lines
9.2 KiB
C++
268 lines
9.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
|
|
#include <aws/devicefarm/DeviceFarmRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/devicefarm/model/Rule.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace DeviceFarm
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents a request to the create device pool operation.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePoolRequest">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_DEVICEFARM_API CreateDevicePoolRequest : public DeviceFarmRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the project for the device pool.</p>
|
|
*/
|
|
inline const Aws::String& GetProjectArn() const{ return m_projectArn; }
|
|
|
|
/**
|
|
* <p>The ARN of the project for the device pool.</p>
|
|
*/
|
|
inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the project for the device pool.</p>
|
|
*/
|
|
inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the project for the device pool.</p>
|
|
*/
|
|
inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the project for the device pool.</p>
|
|
*/
|
|
inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the project for the device pool.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the project for the device pool.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the project for the device pool.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The device pool's name.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The device pool's name.</p>
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The device pool's name.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* <p>The device pool's name.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The device pool's name.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The device pool's name.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The device pool's name.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The device pool's name.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The device pool's description.</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>The device pool's description.</p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The device pool's description.</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p>The device pool's description.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>The device pool's description.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>The device pool's description.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>The device pool's description.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The device pool's description.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The device pool's rules.</p>
|
|
*/
|
|
inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
|
|
|
|
/**
|
|
* <p>The device pool's rules.</p>
|
|
*/
|
|
inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The device pool's rules.</p>
|
|
*/
|
|
inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
|
|
|
|
/**
|
|
* <p>The device pool's rules.</p>
|
|
*/
|
|
inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
|
|
|
|
/**
|
|
* <p>The device pool's rules.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
|
|
|
|
/**
|
|
* <p>The device pool's rules.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The device pool's rules.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The device pool's rules.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>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 <code>rules</code> parameter. Depending on how many devices meet these
|
|
* constraints, your device pool might contain fewer devices than the value for
|
|
* this parameter.</p> <p>By specifying the maximum number of devices, you can
|
|
* control the costs that you incur by running tests.</p>
|
|
*/
|
|
inline int GetMaxDevices() const{ return m_maxDevices; }
|
|
|
|
/**
|
|
* <p>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 <code>rules</code> parameter. Depending on how many devices meet these
|
|
* constraints, your device pool might contain fewer devices than the value for
|
|
* this parameter.</p> <p>By specifying the maximum number of devices, you can
|
|
* control the costs that you incur by running tests.</p>
|
|
*/
|
|
inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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 <code>rules</code> parameter. Depending on how many devices meet these
|
|
* constraints, your device pool might contain fewer devices than the value for
|
|
* this parameter.</p> <p>By specifying the maximum number of devices, you can
|
|
* control the costs that you incur by running tests.</p>
|
|
*/
|
|
inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
|
|
|
|
/**
|
|
* <p>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 <code>rules</code> parameter. Depending on how many devices meet these
|
|
* constraints, your device pool might contain fewer devices than the value for
|
|
* this parameter.</p> <p>By specifying the maximum number of devices, you can
|
|
* control the costs that you incur by running tests.</p>
|
|
*/
|
|
inline CreateDevicePoolRequest& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_projectArn;
|
|
bool m_projectArnHasBeenSet;
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
Aws::Vector<Rule> m_rules;
|
|
bool m_rulesHasBeenSet;
|
|
|
|
int m_maxDevices;
|
|
bool m_maxDevicesHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace DeviceFarm
|
|
} // namespace Aws
|