/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CodeCatalyst { namespace Model { /** */ class UpdateDevEnvironmentRequest : public CodeCatalystRequest { public: AWS_CODECATALYST_API UpdateDevEnvironmentRequest(); // 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 "UpdateDevEnvironment"; } AWS_CODECATALYST_API Aws::String SerializePayload() const override; /** *

The name of the space.

*/ inline const Aws::String& GetSpaceName() const{ return m_spaceName; } /** *

The name of the space.

*/ inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; } /** *

The name of the space.

*/ inline void SetSpaceName(const Aws::String& value) { m_spaceNameHasBeenSet = true; m_spaceName = value; } /** *

The name of the space.

*/ inline void SetSpaceName(Aws::String&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::move(value); } /** *

The name of the space.

*/ inline void SetSpaceName(const char* value) { m_spaceNameHasBeenSet = true; m_spaceName.assign(value); } /** *

The name of the space.

*/ inline UpdateDevEnvironmentRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;} /** *

The name of the space.

*/ inline UpdateDevEnvironmentRequest& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;} /** *

The name of the space.

*/ inline UpdateDevEnvironmentRequest& WithSpaceName(const char* value) { SetSpaceName(value); return *this;} /** *

The name of the project in the space.

*/ inline const Aws::String& GetProjectName() const{ return m_projectName; } /** *

The name of the project in the space.

*/ inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; } /** *

The name of the project in the space.

*/ inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; } /** *

The name of the project in the space.

*/ inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); } /** *

The name of the project in the space.

*/ inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); } /** *

The name of the project in the space.

*/ inline UpdateDevEnvironmentRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;} /** *

The name of the project in the space.

*/ inline UpdateDevEnvironmentRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;} /** *

The name of the project in the space.

*/ inline UpdateDevEnvironmentRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;} /** *

The system-generated unique ID of the Dev Environment.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The system-generated unique ID of the Dev Environment.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The system-generated unique ID of the Dev Environment.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The system-generated unique ID of the Dev Environment.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The system-generated unique ID of the Dev Environment.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The system-generated unique ID of the Dev Environment.

*/ inline UpdateDevEnvironmentRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The system-generated unique ID of the Dev Environment.

*/ inline UpdateDevEnvironmentRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The system-generated unique ID of the Dev Environment.

*/ inline UpdateDevEnvironmentRequest& WithId(const char* value) { SetId(value); return *this;} /** *

The user-specified alias for the Dev Environment. Changing this value will * not cause a restart.

*/ inline const Aws::String& GetAlias() const{ return m_alias; } /** *

The user-specified alias for the Dev Environment. Changing this value will * not cause a restart.

*/ inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } /** *

The user-specified alias for the Dev Environment. Changing this value will * not cause a restart.

*/ inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } /** *

The user-specified alias for the Dev Environment. Changing this value will * not cause a restart.

*/ inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } /** *

The user-specified alias for the Dev Environment. Changing this value will * not cause a restart.

*/ inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } /** *

The user-specified alias for the Dev Environment. Changing this value will * not cause a restart.

*/ inline UpdateDevEnvironmentRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} /** *

The user-specified alias for the Dev Environment. Changing this value will * not cause a restart.

*/ inline UpdateDevEnvironmentRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} /** *

The user-specified alias for the Dev Environment. Changing this value will * not cause a restart.

*/ inline UpdateDevEnvironmentRequest& WithAlias(const char* value) { SetAlias(value); return *this;} /** *

Information about the integrated development environment (IDE) configured for * a Dev Environment.

*/ inline const Aws::Vector& GetIdes() const{ return m_ides; } /** *

Information about the integrated development environment (IDE) configured for * a Dev Environment.

*/ inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; } /** *

Information about the integrated development environment (IDE) configured for * a Dev Environment.

*/ inline void SetIdes(const Aws::Vector& value) { m_idesHasBeenSet = true; m_ides = value; } /** *

Information about the integrated development environment (IDE) configured for * a Dev Environment.

*/ inline void SetIdes(Aws::Vector&& value) { m_idesHasBeenSet = true; m_ides = std::move(value); } /** *

Information about the integrated development environment (IDE) configured for * a Dev Environment.

*/ inline UpdateDevEnvironmentRequest& WithIdes(const Aws::Vector& value) { SetIdes(value); return *this;} /** *

Information about the integrated development environment (IDE) configured for * a Dev Environment.

*/ inline UpdateDevEnvironmentRequest& WithIdes(Aws::Vector&& value) { SetIdes(std::move(value)); return *this;} /** *

Information about the integrated development environment (IDE) configured for * a Dev Environment.

*/ inline UpdateDevEnvironmentRequest& AddIdes(const IdeConfiguration& value) { m_idesHasBeenSet = true; m_ides.push_back(value); return *this; } /** *

Information about the integrated development environment (IDE) configured for * a Dev Environment.

*/ inline UpdateDevEnvironmentRequest& AddIdes(IdeConfiguration&& value) { m_idesHasBeenSet = true; m_ides.push_back(std::move(value)); return *this; } /** *

The Amazon EC2 instace type to use for the Dev Environment.

*

Changing this value will cause a restart of the Dev Environment if it is * running.

*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *

The Amazon EC2 instace type to use for the Dev Environment.

*

Changing this value will cause a restart of the Dev Environment if it is * running.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The Amazon EC2 instace type to use for the Dev Environment.

*

Changing this value will cause a restart of the Dev Environment if it is * running.

*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The Amazon EC2 instace type to use for the Dev Environment.

*

Changing this value will cause a restart of the Dev Environment if it is * running.

*/ inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The Amazon EC2 instace type to use for the Dev Environment.

*

Changing this value will cause a restart of the Dev Environment if it is * running.

*/ inline UpdateDevEnvironmentRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *

The Amazon EC2 instace type to use for the Dev Environment.

*

Changing this value will cause a restart of the Dev Environment if it is * running.

*/ inline UpdateDevEnvironmentRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The amount of time the Dev Environment will run without any activity detected * before stopping, in minutes. Only whole integers are allowed. Dev Environments * consume compute minutes when running.

Changing this value will * cause a restart of the Dev Environment if it is running.

*/ inline int GetInactivityTimeoutMinutes() const{ return m_inactivityTimeoutMinutes; } /** *

The amount of time the Dev Environment will run without any activity detected * before stopping, in minutes. Only whole integers are allowed. Dev Environments * consume compute minutes when running.

Changing this value will * cause a restart of the Dev Environment if it is running.

*/ inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; } /** *

The amount of time the Dev Environment will run without any activity detected * before stopping, in minutes. Only whole integers are allowed. Dev Environments * consume compute minutes when running.

Changing this value will * cause a restart of the Dev Environment if it is running.

*/ inline void SetInactivityTimeoutMinutes(int value) { m_inactivityTimeoutMinutesHasBeenSet = true; m_inactivityTimeoutMinutes = value; } /** *

The amount of time the Dev Environment will run without any activity detected * before stopping, in minutes. Only whole integers are allowed. Dev Environments * consume compute minutes when running.

Changing this value will * cause a restart of the Dev Environment if it is running.

*/ inline UpdateDevEnvironmentRequest& WithInactivityTimeoutMinutes(int value) { SetInactivityTimeoutMinutes(value); return *this;} /** *

A user-specified idempotency token. Idempotency ensures that an API request * completes only once. With an idempotent request, if the original request * completes successfully, the subsequent retries return the result from the * original successful request and have no additional effect.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A user-specified idempotency token. Idempotency ensures that an API request * completes only once. With an idempotent request, if the original request * completes successfully, the subsequent retries return the result from the * original successful request and have no additional effect.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A user-specified idempotency token. Idempotency ensures that an API request * completes only once. With an idempotent request, if the original request * completes successfully, the subsequent retries return the result from the * original successful request and have no additional effect.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A user-specified idempotency token. Idempotency ensures that an API request * completes only once. With an idempotent request, if the original request * completes successfully, the subsequent retries return the result from the * original successful request and have no additional effect.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A user-specified idempotency token. Idempotency ensures that an API request * completes only once. With an idempotent request, if the original request * completes successfully, the subsequent retries return the result from the * original successful request and have no additional effect.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A user-specified idempotency token. Idempotency ensures that an API request * completes only once. With an idempotent request, if the original request * completes successfully, the subsequent retries return the result from the * original successful request and have no additional effect.

*/ inline UpdateDevEnvironmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A user-specified idempotency token. Idempotency ensures that an API request * completes only once. With an idempotent request, if the original request * completes successfully, the subsequent retries return the result from the * original successful request and have no additional effect.

*/ inline UpdateDevEnvironmentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A user-specified idempotency token. Idempotency ensures that an API request * completes only once. With an idempotent request, if the original request * completes successfully, the subsequent retries return the result from the * original successful request and have no additional effect.

*/ inline UpdateDevEnvironmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_spaceName; bool m_spaceNameHasBeenSet = false; Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_alias; bool m_aliasHasBeenSet = false; Aws::Vector m_ides; bool m_idesHasBeenSet = false; InstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; int m_inactivityTimeoutMinutes; bool m_inactivityTimeoutMinutesHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws