/** * 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 imagebuilder { namespace Model { /** *

Settings that Image Builder uses to configure the ECR repository and the * output container images that Amazon Inspector scans.

See Also:

* AWS * API Reference

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

The name of the container repository that Amazon Inspector scans to identify * findings for your container images. The name includes the path for the * repository location. If you don’t provide this information, Image Builder * creates a repository in your account named * image-builder-image-scanning-repository for vulnerability scans of * your output container images.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the container repository that Amazon Inspector scans to identify * findings for your container images. The name includes the path for the * repository location. If you don’t provide this information, Image Builder * creates a repository in your account named * image-builder-image-scanning-repository for vulnerability scans of * your output container images.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the container repository that Amazon Inspector scans to identify * findings for your container images. The name includes the path for the * repository location. If you don’t provide this information, Image Builder * creates a repository in your account named * image-builder-image-scanning-repository for vulnerability scans of * your output container images.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the container repository that Amazon Inspector scans to identify * findings for your container images. The name includes the path for the * repository location. If you don’t provide this information, Image Builder * creates a repository in your account named * image-builder-image-scanning-repository for vulnerability scans of * your output container images.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the container repository that Amazon Inspector scans to identify * findings for your container images. The name includes the path for the * repository location. If you don’t provide this information, Image Builder * creates a repository in your account named * image-builder-image-scanning-repository for vulnerability scans of * your output container images.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the container repository that Amazon Inspector scans to identify * findings for your container images. The name includes the path for the * repository location. If you don’t provide this information, Image Builder * creates a repository in your account named * image-builder-image-scanning-repository for vulnerability scans of * your output container images.

*/ inline EcrConfiguration& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the container repository that Amazon Inspector scans to identify * findings for your container images. The name includes the path for the * repository location. If you don’t provide this information, Image Builder * creates a repository in your account named * image-builder-image-scanning-repository for vulnerability scans of * your output container images.

*/ inline EcrConfiguration& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the container repository that Amazon Inspector scans to identify * findings for your container images. The name includes the path for the * repository location. If you don’t provide this information, Image Builder * creates a repository in your account named * image-builder-image-scanning-repository for vulnerability scans of * your output container images.

*/ inline EcrConfiguration& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

Tags for Image Builder to apply to the output container image that &INS; * scans. Tags can help you identify and manage your scanned images.

*/ inline const Aws::Vector& GetContainerTags() const{ return m_containerTags; } /** *

Tags for Image Builder to apply to the output container image that &INS; * scans. Tags can help you identify and manage your scanned images.

*/ inline bool ContainerTagsHasBeenSet() const { return m_containerTagsHasBeenSet; } /** *

Tags for Image Builder to apply to the output container image that &INS; * scans. Tags can help you identify and manage your scanned images.

*/ inline void SetContainerTags(const Aws::Vector& value) { m_containerTagsHasBeenSet = true; m_containerTags = value; } /** *

Tags for Image Builder to apply to the output container image that &INS; * scans. Tags can help you identify and manage your scanned images.

*/ inline void SetContainerTags(Aws::Vector&& value) { m_containerTagsHasBeenSet = true; m_containerTags = std::move(value); } /** *

Tags for Image Builder to apply to the output container image that &INS; * scans. Tags can help you identify and manage your scanned images.

*/ inline EcrConfiguration& WithContainerTags(const Aws::Vector& value) { SetContainerTags(value); return *this;} /** *

Tags for Image Builder to apply to the output container image that &INS; * scans. Tags can help you identify and manage your scanned images.

*/ inline EcrConfiguration& WithContainerTags(Aws::Vector&& value) { SetContainerTags(std::move(value)); return *this;} /** *

Tags for Image Builder to apply to the output container image that &INS; * scans. Tags can help you identify and manage your scanned images.

*/ inline EcrConfiguration& AddContainerTags(const Aws::String& value) { m_containerTagsHasBeenSet = true; m_containerTags.push_back(value); return *this; } /** *

Tags for Image Builder to apply to the output container image that &INS; * scans. Tags can help you identify and manage your scanned images.

*/ inline EcrConfiguration& AddContainerTags(Aws::String&& value) { m_containerTagsHasBeenSet = true; m_containerTags.push_back(std::move(value)); return *this; } /** *

Tags for Image Builder to apply to the output container image that &INS; * scans. Tags can help you identify and manage your scanned images.

*/ inline EcrConfiguration& AddContainerTags(const char* value) { m_containerTagsHasBeenSet = true; m_containerTags.push_back(value); return *this; } private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::Vector m_containerTags; bool m_containerTagsHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws