/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCatalyst { namespace Model { /** *

Information about a Dev Environment.

See Also:

AWS * API Reference

*/ class DevEnvironmentSummary { public: AWS_CODECATALYST_API DevEnvironmentSummary(); AWS_CODECATALYST_API DevEnvironmentSummary(Aws::Utils::Json::JsonView jsonValue); AWS_CODECATALYST_API DevEnvironmentSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 DevEnvironmentSummary& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;} /** *

The name of the space.

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

The name of the space.

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

The name of the project in the space.

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

The name of the project in the space.

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

The system-generated unique ID for the Dev Environment.

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

The system-generated unique ID for the Dev Environment.

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

The system-generated unique ID for the Dev Environment.

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

The system-generated unique ID for the Dev Environment.

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

The system-generated unique ID for the Dev Environment.

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

The system-generated unique ID for the Dev Environment.

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

The system-generated unique ID for the Dev Environment.

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

The system-generated unique ID for the Dev Environment.

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

The time when the Dev Environment was last updated, in coordinated universal * time (UTC) timestamp format as specified in RFC 3339.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The time when the Dev Environment was last updated, in coordinated universal * time (UTC) timestamp format as specified in RFC 3339.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The time when the Dev Environment was last updated, in coordinated universal * time (UTC) timestamp format as specified in RFC 3339.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The time when the Dev Environment was last updated, in coordinated universal * time (UTC) timestamp format as specified in RFC 3339.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

The time when the Dev Environment was last updated, in coordinated universal * time (UTC) timestamp format as specified in RFC 3339.

*/ inline DevEnvironmentSummary& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The time when the Dev Environment was last updated, in coordinated universal * time (UTC) timestamp format as specified in RFC 3339.

*/ inline DevEnvironmentSummary& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

The system-generated unique ID of the user who created the Dev Environment. *

*/ inline const Aws::String& GetCreatorId() const{ return m_creatorId; } /** *

The system-generated unique ID of the user who created the Dev Environment. *

*/ inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; } /** *

The system-generated unique ID of the user who created the Dev Environment. *

*/ inline void SetCreatorId(const Aws::String& value) { m_creatorIdHasBeenSet = true; m_creatorId = value; } /** *

The system-generated unique ID of the user who created the Dev Environment. *

*/ inline void SetCreatorId(Aws::String&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::move(value); } /** *

The system-generated unique ID of the user who created the Dev Environment. *

*/ inline void SetCreatorId(const char* value) { m_creatorIdHasBeenSet = true; m_creatorId.assign(value); } /** *

The system-generated unique ID of the user who created the Dev Environment. *

*/ inline DevEnvironmentSummary& WithCreatorId(const Aws::String& value) { SetCreatorId(value); return *this;} /** *

The system-generated unique ID of the user who created the Dev Environment. *

*/ inline DevEnvironmentSummary& WithCreatorId(Aws::String&& value) { SetCreatorId(std::move(value)); return *this;} /** *

The system-generated unique ID of the user who created the Dev Environment. *

*/ inline DevEnvironmentSummary& WithCreatorId(const char* value) { SetCreatorId(value); return *this;} /** *

The status of the Dev Environment.

*/ inline const DevEnvironmentStatus& GetStatus() const{ return m_status; } /** *

The status of the Dev Environment.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the Dev Environment.

*/ inline void SetStatus(const DevEnvironmentStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the Dev Environment.

*/ inline void SetStatus(DevEnvironmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the Dev Environment.

*/ inline DevEnvironmentSummary& WithStatus(const DevEnvironmentStatus& value) { SetStatus(value); return *this;} /** *

The status of the Dev Environment.

*/ inline DevEnvironmentSummary& WithStatus(DevEnvironmentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The reason for the status.

*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *

The reason for the status.

*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *

The reason for the status.

*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *

The reason for the status.

*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *

The reason for the status.

*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *

The reason for the status.

*/ inline DevEnvironmentSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

The reason for the status.

*/ inline DevEnvironmentSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

The reason for the status.

*/ inline DevEnvironmentSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

Information about the repositories that will be cloned into the Dev * Environment. If no rvalue is specified, no repository is cloned.

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

Information about the repositories that will be cloned into the Dev * Environment. If no rvalue is specified, no repository is cloned.

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

Information about the repositories that will be cloned into the Dev * Environment. If no rvalue is specified, no repository is cloned.

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

Information about the repositories that will be cloned into the Dev * Environment. If no rvalue is specified, no repository is cloned.

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

Information about the repositories that will be cloned into the Dev * Environment. If no rvalue is specified, no repository is cloned.

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

Information about the repositories that will be cloned into the Dev * Environment. If no rvalue is specified, no repository is cloned.

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

Information about the repositories that will be cloned into the Dev * Environment. If no rvalue is specified, no repository is cloned.

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

Information about the repositories that will be cloned into the Dev * Environment. If no rvalue is specified, no repository is cloned.

*/ inline DevEnvironmentSummary& AddRepositories(DevEnvironmentRepositorySummary&& value) { m_repositoriesHasBeenSet = true; m_repositories.push_back(std::move(value)); return *this; } /** *

The user-specified alias for the Dev Environment.

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

The user-specified alias for the Dev Environment.

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

The user-specified alias for the Dev Environment.

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

The user-specified alias for the Dev Environment.

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

The user-specified alias for the Dev Environment.

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

The user-specified alias for the Dev Environment.

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

The user-specified alias for the Dev Environment.

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

The user-specified alias for the Dev Environment.

*/ inline DevEnvironmentSummary& 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 DevEnvironmentSummary& WithIdes(const Aws::Vector& value) { SetIdes(value); return *this;} /** *

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

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

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

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

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

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

The Amazon EC2 instace type used for the Dev Environment.

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

The Amazon EC2 instace type used for the Dev Environment.

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

The Amazon EC2 instace type used for the Dev Environment.

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

The Amazon EC2 instace type used for the Dev Environment.

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

The Amazon EC2 instace type used for the Dev Environment.

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

The Amazon EC2 instace type used for the Dev Environment.

*/ inline DevEnvironmentSummary& 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. 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. 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. 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. Dev Environments consume compute minutes when * running.

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

Information about the configuration of persistent storage for the Dev * Environment.

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

Information about the configuration of persistent storage for the Dev * Environment.

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

Information about the configuration of persistent storage for the Dev * Environment.

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

Information about the configuration of persistent storage for the Dev * Environment.

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

Information about the configuration of persistent storage for the Dev * Environment.

*/ inline DevEnvironmentSummary& WithPersistentStorage(const PersistentStorage& value) { SetPersistentStorage(value); return *this;} /** *

Information about the configuration of persistent storage for the Dev * Environment.

*/ inline DevEnvironmentSummary& WithPersistentStorage(PersistentStorage&& 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::String m_id; bool m_idHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::String m_creatorId; bool m_creatorIdHasBeenSet = false; DevEnvironmentStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::Vector m_repositories; bool m_repositoriesHasBeenSet = 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; PersistentStorage m_persistentStorage; bool m_persistentStorageHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws