/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector2 { namespace Model { /** *

An aggregation of information about Amazon ECR containers.

See * Also:

AWS * API Reference

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

The architecture of the containers.

*/ inline const Aws::Vector& GetArchitectures() const{ return m_architectures; } /** *

The architecture of the containers.

*/ inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; } /** *

The architecture of the containers.

*/ inline void SetArchitectures(const Aws::Vector& value) { m_architecturesHasBeenSet = true; m_architectures = value; } /** *

The architecture of the containers.

*/ inline void SetArchitectures(Aws::Vector&& value) { m_architecturesHasBeenSet = true; m_architectures = std::move(value); } /** *

The architecture of the containers.

*/ inline AwsEcrContainerAggregation& WithArchitectures(const Aws::Vector& value) { SetArchitectures(value); return *this;} /** *

The architecture of the containers.

*/ inline AwsEcrContainerAggregation& WithArchitectures(Aws::Vector&& value) { SetArchitectures(std::move(value)); return *this;} /** *

The architecture of the containers.

*/ inline AwsEcrContainerAggregation& AddArchitectures(const StringFilter& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(value); return *this; } /** *

The architecture of the containers.

*/ inline AwsEcrContainerAggregation& AddArchitectures(StringFilter&& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(std::move(value)); return *this; } /** *

The image SHA values.

*/ inline const Aws::Vector& GetImageShas() const{ return m_imageShas; } /** *

The image SHA values.

*/ inline bool ImageShasHasBeenSet() const { return m_imageShasHasBeenSet; } /** *

The image SHA values.

*/ inline void SetImageShas(const Aws::Vector& value) { m_imageShasHasBeenSet = true; m_imageShas = value; } /** *

The image SHA values.

*/ inline void SetImageShas(Aws::Vector&& value) { m_imageShasHasBeenSet = true; m_imageShas = std::move(value); } /** *

The image SHA values.

*/ inline AwsEcrContainerAggregation& WithImageShas(const Aws::Vector& value) { SetImageShas(value); return *this;} /** *

The image SHA values.

*/ inline AwsEcrContainerAggregation& WithImageShas(Aws::Vector&& value) { SetImageShas(std::move(value)); return *this;} /** *

The image SHA values.

*/ inline AwsEcrContainerAggregation& AddImageShas(const StringFilter& value) { m_imageShasHasBeenSet = true; m_imageShas.push_back(value); return *this; } /** *

The image SHA values.

*/ inline AwsEcrContainerAggregation& AddImageShas(StringFilter&& value) { m_imageShasHasBeenSet = true; m_imageShas.push_back(std::move(value)); return *this; } /** *

The image tags.

*/ inline const Aws::Vector& GetImageTags() const{ return m_imageTags; } /** *

The image tags.

*/ inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; } /** *

The image tags.

*/ inline void SetImageTags(const Aws::Vector& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; } /** *

The image tags.

*/ inline void SetImageTags(Aws::Vector&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); } /** *

The image tags.

*/ inline AwsEcrContainerAggregation& WithImageTags(const Aws::Vector& value) { SetImageTags(value); return *this;} /** *

The image tags.

*/ inline AwsEcrContainerAggregation& WithImageTags(Aws::Vector&& value) { SetImageTags(std::move(value)); return *this;} /** *

The image tags.

*/ inline AwsEcrContainerAggregation& AddImageTags(const StringFilter& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; } /** *

The image tags.

*/ inline AwsEcrContainerAggregation& AddImageTags(StringFilter&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; } /** *

The container repositories.

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

The container repositories.

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

The container repositories.

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

The container repositories.

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

The container repositories.

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

The container repositories.

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

The container repositories.

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

The container repositories.

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

The container resource IDs.

*/ inline const Aws::Vector& GetResourceIds() const{ return m_resourceIds; } /** *

The container resource IDs.

*/ inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; } /** *

The container resource IDs.

*/ inline void SetResourceIds(const Aws::Vector& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; } /** *

The container resource IDs.

*/ inline void SetResourceIds(Aws::Vector&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); } /** *

The container resource IDs.

*/ inline AwsEcrContainerAggregation& WithResourceIds(const Aws::Vector& value) { SetResourceIds(value); return *this;} /** *

The container resource IDs.

*/ inline AwsEcrContainerAggregation& WithResourceIds(Aws::Vector&& value) { SetResourceIds(std::move(value)); return *this;} /** *

The container resource IDs.

*/ inline AwsEcrContainerAggregation& AddResourceIds(const StringFilter& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; } /** *

The container resource IDs.

*/ inline AwsEcrContainerAggregation& AddResourceIds(StringFilter&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; } /** *

The value to sort by.

*/ inline const AwsEcrContainerSortBy& GetSortBy() const{ return m_sortBy; } /** *

The value to sort by.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

The value to sort by.

*/ inline void SetSortBy(const AwsEcrContainerSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

The value to sort by.

*/ inline void SetSortBy(AwsEcrContainerSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

The value to sort by.

*/ inline AwsEcrContainerAggregation& WithSortBy(const AwsEcrContainerSortBy& value) { SetSortBy(value); return *this;} /** *

The value to sort by.

*/ inline AwsEcrContainerAggregation& WithSortBy(AwsEcrContainerSortBy&& value) { SetSortBy(std::move(value)); return *this;} /** *

The sort order (ascending or descending).

*/ inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } /** *

The sort order (ascending or descending).

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

The sort order (ascending or descending).

*/ inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

The sort order (ascending or descending).

*/ inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

The sort order (ascending or descending).

*/ inline AwsEcrContainerAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

The sort order (ascending or descending).

*/ inline AwsEcrContainerAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::Vector m_architectures; bool m_architecturesHasBeenSet = false; Aws::Vector m_imageShas; bool m_imageShasHasBeenSet = false; Aws::Vector m_imageTags; bool m_imageTagsHasBeenSet = false; Aws::Vector m_repositories; bool m_repositoriesHasBeenSet = false; Aws::Vector m_resourceIds; bool m_resourceIdsHasBeenSet = false; AwsEcrContainerSortBy m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws