/** * 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 #include #include namespace Aws { namespace CodeCatalyst { namespace Model { /** */ class CreateDevEnvironmentRequest : public CodeCatalystRequest { public: AWS_CODECATALYST_API CreateDevEnvironmentRequest(); // 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 "CreateDevEnvironment"; } 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 CreateDevEnvironmentRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;} /** *

The name of the space.

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

The name of the space.

*/ inline CreateDevEnvironmentRequest& 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 CreateDevEnvironmentRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;} /** *

The name of the project in the space.

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

The name of the project in the space.

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

The source repository that contains the branch to clone into the Dev * Environment.

*/ inline const Aws::Vector& GetRepositories() const{ return m_repositories; } /** *

The source repository that contains the branch to clone into the Dev * Environment.

*/ inline bool RepositoriesHasBeenSet() const { return m_repositoriesHasBeenSet; } /** *

The source repository that contains the branch to clone into the Dev * Environment.

*/ inline void SetRepositories(const Aws::Vector& value) { m_repositoriesHasBeenSet = true; m_repositories = value; } /** *

The source repository that contains the branch to clone into the Dev * Environment.

*/ inline void SetRepositories(Aws::Vector&& value) { m_repositoriesHasBeenSet = true; m_repositories = std::move(value); } /** *

The source repository that contains the branch to clone into the Dev * Environment.

*/ inline CreateDevEnvironmentRequest& WithRepositories(const Aws::Vector& value) { SetRepositories(value); return *this;} /** *

The source repository that contains the branch to clone into the Dev * Environment.

*/ inline CreateDevEnvironmentRequest& WithRepositories(Aws::Vector&& value) { SetRepositories(std::move(value)); return *this;} /** *

The source repository that contains the branch to clone into the Dev * Environment.

*/ inline CreateDevEnvironmentRequest& AddRepositories(const RepositoryInput& value) { m_repositoriesHasBeenSet = true; m_repositories.push_back(value); return *this; } /** *

The source repository that contains the branch to clone into the Dev * Environment.

*/ inline CreateDevEnvironmentRequest& AddRepositories(RepositoryInput&& value) { m_repositoriesHasBeenSet = true; m_repositories.push_back(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 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 CreateDevEnvironmentRequest& 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 CreateDevEnvironmentRequest& 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 CreateDevEnvironmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The user-defined alias for a Dev Environment.

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

The user-defined alias for a Dev Environment.

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

The user-defined alias for a Dev Environment.

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

The user-defined alias for a Dev Environment.

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

The user-defined alias for a Dev Environment.

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

The user-defined alias for a Dev Environment.

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

The user-defined alias for a Dev Environment.

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

The user-defined alias for a Dev Environment.

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

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

An IDE is required to create a Dev Environment. * For Dev Environment creation, this field contains configuration information and * must be provided.

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

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

An IDE is required to create a Dev Environment. * For Dev Environment creation, this field contains configuration information and * must be provided.

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

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

An IDE is required to create a Dev Environment. * For Dev Environment creation, this field contains configuration information and * must be provided.

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

An IDE is required to create a Dev Environment. * For Dev Environment creation, this field contains configuration information and * must be provided.

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

An IDE is required to create a Dev Environment. * For Dev Environment creation, this field contains configuration information and * must be provided.

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

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

An IDE is required to create a Dev Environment. * For Dev Environment creation, this field contains configuration information and * must be provided.

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

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

An IDE is required to create a Dev Environment. * For Dev Environment creation, this field contains configuration information and * must be provided.

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

An IDE is required to create a Dev Environment. * For Dev Environment creation, this field contains configuration information and * must be provided.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Information about the amount of storage allocated to the Dev Environment. *

By default, a Dev Environment is configured to have 16GB of * persistent storage when created from the Amazon CodeCatalyst console, but there * is no default when programmatically creating a Dev Environment. Valid values for * persistent storage are based on memory sizes in 16GB increments. Valid values * are 16, 32, and 64.

*/ inline const PersistentStorageConfiguration& GetPersistentStorage() const{ return m_persistentStorage; } /** *

Information about the amount of storage allocated to the Dev Environment. *

By default, a Dev Environment is configured to have 16GB of * persistent storage when created from the Amazon CodeCatalyst console, but there * is no default when programmatically creating a Dev Environment. Valid values for * persistent storage are based on memory sizes in 16GB increments. Valid values * are 16, 32, and 64.

*/ inline bool PersistentStorageHasBeenSet() const { return m_persistentStorageHasBeenSet; } /** *

Information about the amount of storage allocated to the Dev Environment. *

By default, a Dev Environment is configured to have 16GB of * persistent storage when created from the Amazon CodeCatalyst console, but there * is no default when programmatically creating a Dev Environment. Valid values for * persistent storage are based on memory sizes in 16GB increments. Valid values * are 16, 32, and 64.

*/ inline void SetPersistentStorage(const PersistentStorageConfiguration& value) { m_persistentStorageHasBeenSet = true; m_persistentStorage = value; } /** *

Information about the amount of storage allocated to the Dev Environment. *

By default, a Dev Environment is configured to have 16GB of * persistent storage when created from the Amazon CodeCatalyst console, but there * is no default when programmatically creating a Dev Environment. Valid values for * persistent storage are based on memory sizes in 16GB increments. Valid values * are 16, 32, and 64.

*/ inline void SetPersistentStorage(PersistentStorageConfiguration&& value) { m_persistentStorageHasBeenSet = true; m_persistentStorage = std::move(value); } /** *

Information about the amount of storage allocated to the Dev Environment. *

By default, a Dev Environment is configured to have 16GB of * persistent storage when created from the Amazon CodeCatalyst console, but there * is no default when programmatically creating a Dev Environment. Valid values for * persistent storage are based on memory sizes in 16GB increments. Valid values * are 16, 32, and 64.

*/ inline CreateDevEnvironmentRequest& WithPersistentStorage(const PersistentStorageConfiguration& value) { SetPersistentStorage(value); return *this;} /** *

Information about the amount of storage allocated to the Dev Environment. *

By default, a Dev Environment is configured to have 16GB of * persistent storage when created from the Amazon CodeCatalyst console, but there * is no default when programmatically creating a Dev Environment. Valid values for * persistent storage are based on memory sizes in 16GB increments. Valid values * are 16, 32, and 64.

*/ inline CreateDevEnvironmentRequest& WithPersistentStorage(PersistentStorageConfiguration&& value) { SetPersistentStorage(std::move(value)); return *this;} private: Aws::String m_spaceName; bool m_spaceNameHasBeenSet = false; Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::Vector m_repositories; bool m_repositoriesHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = 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; PersistentStorageConfiguration m_persistentStorage; bool m_persistentStorageHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws