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

Represents a request to the update project operation.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the project whose name to update.

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

The Amazon Resource Name (ARN) of the project whose name to update.

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

The Amazon Resource Name (ARN) of the project whose name to update.

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

The Amazon Resource Name (ARN) of the project whose name to update.

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

The Amazon Resource Name (ARN) of the project whose name to update.

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

The Amazon Resource Name (ARN) of the project whose name to update.

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

The Amazon Resource Name (ARN) of the project whose name to update.

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

The Amazon Resource Name (ARN) of the project whose name to update.

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

A string that represents the new name of the project that you are * updating.

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

A string that represents the new name of the project that you are * updating.

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

A string that represents the new name of the project that you are * updating.

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

A string that represents the new name of the project that you are * updating.

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

A string that represents the new name of the project that you are * updating.

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

A string that represents the new name of the project that you are * updating.

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

A string that represents the new name of the project that you are * updating.

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

A string that represents the new name of the project that you are * updating.

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

The number of minutes a test run in the project executes before it times * out.

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

The number of minutes a test run in the project executes before it times * out.

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

The number of minutes a test run in the project executes before it times * out.

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

The number of minutes a test run in the project executes before it times * out.

*/ inline UpdateProjectRequest& WithDefaultJobTimeoutMinutes(int value) { SetDefaultJobTimeoutMinutes(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; int m_defaultJobTimeoutMinutes; bool m_defaultJobTimeoutMinutesHasBeenSet; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws