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

A set of Docker images that are related by programming language and are * managed by CodeBuild.

See Also:

AWS * API Reference

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

The programming language for the Docker images.

*/ inline const LanguageType& GetLanguage() const{ return m_language; } /** *

The programming language for the Docker images.

*/ inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; } /** *

The programming language for the Docker images.

*/ inline void SetLanguage(const LanguageType& value) { m_languageHasBeenSet = true; m_language = value; } /** *

The programming language for the Docker images.

*/ inline void SetLanguage(LanguageType&& value) { m_languageHasBeenSet = true; m_language = std::move(value); } /** *

The programming language for the Docker images.

*/ inline EnvironmentLanguage& WithLanguage(const LanguageType& value) { SetLanguage(value); return *this;} /** *

The programming language for the Docker images.

*/ inline EnvironmentLanguage& WithLanguage(LanguageType&& value) { SetLanguage(std::move(value)); return *this;} /** *

The list of Docker images that are related by the specified programming * language.

*/ inline const Aws::Vector& GetImages() const{ return m_images; } /** *

The list of Docker images that are related by the specified programming * language.

*/ inline bool ImagesHasBeenSet() const { return m_imagesHasBeenSet; } /** *

The list of Docker images that are related by the specified programming * language.

*/ inline void SetImages(const Aws::Vector& value) { m_imagesHasBeenSet = true; m_images = value; } /** *

The list of Docker images that are related by the specified programming * language.

*/ inline void SetImages(Aws::Vector&& value) { m_imagesHasBeenSet = true; m_images = std::move(value); } /** *

The list of Docker images that are related by the specified programming * language.

*/ inline EnvironmentLanguage& WithImages(const Aws::Vector& value) { SetImages(value); return *this;} /** *

The list of Docker images that are related by the specified programming * language.

*/ inline EnvironmentLanguage& WithImages(Aws::Vector&& value) { SetImages(std::move(value)); return *this;} /** *

The list of Docker images that are related by the specified programming * language.

*/ inline EnvironmentLanguage& AddImages(const EnvironmentImage& value) { m_imagesHasBeenSet = true; m_images.push_back(value); return *this; } /** *

The list of Docker images that are related by the specified programming * language.

*/ inline EnvironmentLanguage& AddImages(EnvironmentImage&& value) { m_imagesHasBeenSet = true; m_images.push_back(std::move(value)); return *this; } private: LanguageType m_language; bool m_languageHasBeenSet = false; Aws::Vector m_images; bool m_imagesHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws