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

Represents a request to the create project operation.

See * Also:

AWS * API Reference

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

The project's name.

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

The project's name.

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

The project's name.

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

The project's name.

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

The project's name.

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

The project's name.

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

The project's name.

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

The project's name.

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

Sets the execution timeout value (in minutes) for a project. All test runs in * this project use the specified execution timeout value unless overridden when * scheduling a run.

*/ inline int GetDefaultJobTimeoutMinutes() const{ return m_defaultJobTimeoutMinutes; } /** *

Sets the execution timeout value (in minutes) for a project. All test runs in * this project use the specified execution timeout value unless overridden when * scheduling a run.

*/ inline bool DefaultJobTimeoutMinutesHasBeenSet() const { return m_defaultJobTimeoutMinutesHasBeenSet; } /** *

Sets the execution timeout value (in minutes) for a project. All test runs in * this project use the specified execution timeout value unless overridden when * scheduling a run.

*/ inline void SetDefaultJobTimeoutMinutes(int value) { m_defaultJobTimeoutMinutesHasBeenSet = true; m_defaultJobTimeoutMinutes = value; } /** *

Sets the execution timeout value (in minutes) for a project. All test runs in * this project use the specified execution timeout value unless overridden when * scheduling a run.

*/ inline CreateProjectRequest& WithDefaultJobTimeoutMinutes(int value) { SetDefaultJobTimeoutMinutes(value); return *this;} /** *

The VPC security groups and subnets that are attached to a project.

*/ inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; } /** *

The VPC security groups and subnets that are attached to a project.

*/ inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } /** *

The VPC security groups and subnets that are attached to a project.

*/ inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } /** *

The VPC security groups and subnets that are attached to a project.

*/ inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } /** *

The VPC security groups and subnets that are attached to a project.

*/ inline CreateProjectRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;} /** *

The VPC security groups and subnets that are attached to a project.

*/ inline CreateProjectRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; int m_defaultJobTimeoutMinutes; bool m_defaultJobTimeoutMinutesHasBeenSet = false; VpcConfig m_vpcConfig; bool m_vpcConfigHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws