/** * 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 { /** *

The details that define an aggregation based on repository.

See * Also:

AWS * API Reference

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

The names of repositories to aggregate findings on.

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

The names of repositories to aggregate findings on.

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

The names of repositories to aggregate findings on.

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

The names of repositories to aggregate findings on.

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

The names of repositories to aggregate findings on.

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

The names of repositories to aggregate findings on.

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

The names of repositories to aggregate findings on.

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

The names of repositories to aggregate findings on.

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

The value to sort results by.

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

The value to sort results by.

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

The value to sort results by.

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

The value to sort results by.

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

The value to sort results by.

*/ inline RepositoryAggregation& WithSortBy(const RepositorySortBy& value) { SetSortBy(value); return *this;} /** *

The value to sort results by.

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

The order to sort results by.

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

The order to sort results by.

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

The order to sort results by.

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

The order to sort results by.

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

The order to sort results by.

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

The order to sort results by.

*/ inline RepositoryAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::Vector m_repositories; bool m_repositoriesHasBeenSet = false; RepositorySortBy m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws