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

Information about a Docker image that is managed by CodeBuild.

See * Also:

AWS * API Reference

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

The name of the Docker image.

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

The name of the Docker image.

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

The name of the Docker image.

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

The name of the Docker image.

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

The name of the Docker image.

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

The name of the Docker image.

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

The name of the Docker image.

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

The name of the Docker image.

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

The description of the Docker image.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the Docker image.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the Docker image.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the Docker image.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the Docker image.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the Docker image.

*/ inline EnvironmentImage& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the Docker image.

*/ inline EnvironmentImage& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the Docker image.

*/ inline EnvironmentImage& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A list of environment image versions.

*/ inline const Aws::Vector& GetVersions() const{ return m_versions; } /** *

A list of environment image versions.

*/ inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; } /** *

A list of environment image versions.

*/ inline void SetVersions(const Aws::Vector& value) { m_versionsHasBeenSet = true; m_versions = value; } /** *

A list of environment image versions.

*/ inline void SetVersions(Aws::Vector&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); } /** *

A list of environment image versions.

*/ inline EnvironmentImage& WithVersions(const Aws::Vector& value) { SetVersions(value); return *this;} /** *

A list of environment image versions.

*/ inline EnvironmentImage& WithVersions(Aws::Vector&& value) { SetVersions(std::move(value)); return *this;} /** *

A list of environment image versions.

*/ inline EnvironmentImage& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; } /** *

A list of environment image versions.

*/ inline EnvironmentImage& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; } /** *

A list of environment image versions.

*/ inline EnvironmentImage& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_versions; bool m_versionsHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws