/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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 finding title.

See * Also:

AWS * API Reference

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

The type of finding to aggregate on.

*/ inline const AggregationFindingType& GetFindingType() const{ return m_findingType; } /** *

The type of finding to aggregate on.

*/ inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; } /** *

The type of finding to aggregate on.

*/ inline void SetFindingType(const AggregationFindingType& value) { m_findingTypeHasBeenSet = true; m_findingType = value; } /** *

The type of finding to aggregate on.

*/ inline void SetFindingType(AggregationFindingType&& value) { m_findingTypeHasBeenSet = true; m_findingType = std::move(value); } /** *

The type of finding to aggregate on.

*/ inline TitleAggregation& WithFindingType(const AggregationFindingType& value) { SetFindingType(value); return *this;} /** *

The type of finding to aggregate on.

*/ inline TitleAggregation& WithFindingType(AggregationFindingType&& value) { SetFindingType(std::move(value)); return *this;} /** *

The resource type to aggregate on.

*/ inline const AggregationResourceType& GetResourceType() const{ return m_resourceType; } /** *

The resource type to aggregate on.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type to aggregate on.

*/ inline void SetResourceType(const AggregationResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type to aggregate on.

*/ inline void SetResourceType(AggregationResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type to aggregate on.

*/ inline TitleAggregation& WithResourceType(const AggregationResourceType& value) { SetResourceType(value); return *this;} /** *

The resource type to aggregate on.

*/ inline TitleAggregation& WithResourceType(AggregationResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The value to sort results by.

*/ inline const TitleSortBy& 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 TitleSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

The value to sort results by.

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

The value to sort results by.

*/ inline TitleAggregation& WithSortBy(const TitleSortBy& value) { SetSortBy(value); return *this;} /** *

The value to sort results by.

*/ inline TitleAggregation& WithSortBy(TitleSortBy&& 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 TitleAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

The order to sort results by.

*/ inline TitleAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} /** *

The finding titles to aggregate on.

*/ inline const Aws::Vector& GetTitles() const{ return m_titles; } /** *

The finding titles to aggregate on.

*/ inline bool TitlesHasBeenSet() const { return m_titlesHasBeenSet; } /** *

The finding titles to aggregate on.

*/ inline void SetTitles(const Aws::Vector& value) { m_titlesHasBeenSet = true; m_titles = value; } /** *

The finding titles to aggregate on.

*/ inline void SetTitles(Aws::Vector&& value) { m_titlesHasBeenSet = true; m_titles = std::move(value); } /** *

The finding titles to aggregate on.

*/ inline TitleAggregation& WithTitles(const Aws::Vector& value) { SetTitles(value); return *this;} /** *

The finding titles to aggregate on.

*/ inline TitleAggregation& WithTitles(Aws::Vector&& value) { SetTitles(std::move(value)); return *this;} /** *

The finding titles to aggregate on.

*/ inline TitleAggregation& AddTitles(const StringFilter& value) { m_titlesHasBeenSet = true; m_titles.push_back(value); return *this; } /** *

The finding titles to aggregate on.

*/ inline TitleAggregation& AddTitles(StringFilter&& value) { m_titlesHasBeenSet = true; m_titles.push_back(std::move(value)); return *this; } /** *

The vulnerability IDs of the findings.

*/ inline const Aws::Vector& GetVulnerabilityIds() const{ return m_vulnerabilityIds; } /** *

The vulnerability IDs of the findings.

*/ inline bool VulnerabilityIdsHasBeenSet() const { return m_vulnerabilityIdsHasBeenSet; } /** *

The vulnerability IDs of the findings.

*/ inline void SetVulnerabilityIds(const Aws::Vector& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds = value; } /** *

The vulnerability IDs of the findings.

*/ inline void SetVulnerabilityIds(Aws::Vector&& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds = std::move(value); } /** *

The vulnerability IDs of the findings.

*/ inline TitleAggregation& WithVulnerabilityIds(const Aws::Vector& value) { SetVulnerabilityIds(value); return *this;} /** *

The vulnerability IDs of the findings.

*/ inline TitleAggregation& WithVulnerabilityIds(Aws::Vector&& value) { SetVulnerabilityIds(std::move(value)); return *this;} /** *

The vulnerability IDs of the findings.

*/ inline TitleAggregation& AddVulnerabilityIds(const StringFilter& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds.push_back(value); return *this; } /** *

The vulnerability IDs of the findings.

*/ inline TitleAggregation& AddVulnerabilityIds(StringFilter&& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds.push_back(std::move(value)); return *this; } private: AggregationFindingType m_findingType; bool m_findingTypeHasBeenSet = false; AggregationResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; TitleSortBy m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; Aws::Vector m_titles; bool m_titlesHasBeenSet = false; Aws::Vector m_vulnerabilityIds; bool m_vulnerabilityIdsHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws