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

Information on the Amazon ECR image metadata associated with a * finding.

See Also:

AWS * API Reference

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

Tags associated with the Amazon ECR image metadata.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Tags associated with the Amazon ECR image metadata.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags associated with the Amazon ECR image metadata.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags associated with the Amazon ECR image metadata.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags associated with the Amazon ECR image metadata.

*/ inline EcrContainerImageMetadata& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Tags associated with the Amazon ECR image metadata.

*/ inline EcrContainerImageMetadata& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Tags associated with the Amazon ECR image metadata.

*/ inline EcrContainerImageMetadata& AddTags(const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Tags associated with the Amazon ECR image metadata.

*/ inline EcrContainerImageMetadata& AddTags(Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Tags associated with the Amazon ECR image metadata.

*/ inline EcrContainerImageMetadata& AddTags(const char* value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } private: Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws