/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector2 { namespace Model { /** *

The details that define a findings aggregation based on AWS Lambda * functions.

See Also:

AWS * API Reference

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

The AWS Lambda function names to include in the aggregation results.

*/ inline const Aws::Vector& GetFunctionNames() const{ return m_functionNames; } /** *

The AWS Lambda function names to include in the aggregation results.

*/ inline bool FunctionNamesHasBeenSet() const { return m_functionNamesHasBeenSet; } /** *

The AWS Lambda function names to include in the aggregation results.

*/ inline void SetFunctionNames(const Aws::Vector& value) { m_functionNamesHasBeenSet = true; m_functionNames = value; } /** *

The AWS Lambda function names to include in the aggregation results.

*/ inline void SetFunctionNames(Aws::Vector&& value) { m_functionNamesHasBeenSet = true; m_functionNames = std::move(value); } /** *

The AWS Lambda function names to include in the aggregation results.

*/ inline LambdaFunctionAggregation& WithFunctionNames(const Aws::Vector& value) { SetFunctionNames(value); return *this;} /** *

The AWS Lambda function names to include in the aggregation results.

*/ inline LambdaFunctionAggregation& WithFunctionNames(Aws::Vector&& value) { SetFunctionNames(std::move(value)); return *this;} /** *

The AWS Lambda function names to include in the aggregation results.

*/ inline LambdaFunctionAggregation& AddFunctionNames(const StringFilter& value) { m_functionNamesHasBeenSet = true; m_functionNames.push_back(value); return *this; } /** *

The AWS Lambda function names to include in the aggregation results.

*/ inline LambdaFunctionAggregation& AddFunctionNames(StringFilter&& value) { m_functionNamesHasBeenSet = true; m_functionNames.push_back(std::move(value)); return *this; } /** *

The tags to include in the aggregation results.

*/ inline const Aws::Vector& GetFunctionTags() const{ return m_functionTags; } /** *

The tags to include in the aggregation results.

*/ inline bool FunctionTagsHasBeenSet() const { return m_functionTagsHasBeenSet; } /** *

The tags to include in the aggregation results.

*/ inline void SetFunctionTags(const Aws::Vector& value) { m_functionTagsHasBeenSet = true; m_functionTags = value; } /** *

The tags to include in the aggregation results.

*/ inline void SetFunctionTags(Aws::Vector&& value) { m_functionTagsHasBeenSet = true; m_functionTags = std::move(value); } /** *

The tags to include in the aggregation results.

*/ inline LambdaFunctionAggregation& WithFunctionTags(const Aws::Vector& value) { SetFunctionTags(value); return *this;} /** *

The tags to include in the aggregation results.

*/ inline LambdaFunctionAggregation& WithFunctionTags(Aws::Vector&& value) { SetFunctionTags(std::move(value)); return *this;} /** *

The tags to include in the aggregation results.

*/ inline LambdaFunctionAggregation& AddFunctionTags(const MapFilter& value) { m_functionTagsHasBeenSet = true; m_functionTags.push_back(value); return *this; } /** *

The tags to include in the aggregation results.

*/ inline LambdaFunctionAggregation& AddFunctionTags(MapFilter&& value) { m_functionTagsHasBeenSet = true; m_functionTags.push_back(std::move(value)); return *this; } /** *

The resource IDs to include in the aggregation results.

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

The resource IDs to include in the aggregation results.

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

The resource IDs to include in the aggregation results.

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

The resource IDs to include in the aggregation results.

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

The resource IDs to include in the aggregation results.

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

The resource IDs to include in the aggregation results.

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

The resource IDs to include in the aggregation results.

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

The resource IDs to include in the aggregation results.

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

Returns findings aggregated by AWS Lambda function runtime environments.

*/ inline const Aws::Vector& GetRuntimes() const{ return m_runtimes; } /** *

Returns findings aggregated by AWS Lambda function runtime environments.

*/ inline bool RuntimesHasBeenSet() const { return m_runtimesHasBeenSet; } /** *

Returns findings aggregated by AWS Lambda function runtime environments.

*/ inline void SetRuntimes(const Aws::Vector& value) { m_runtimesHasBeenSet = true; m_runtimes = value; } /** *

Returns findings aggregated by AWS Lambda function runtime environments.

*/ inline void SetRuntimes(Aws::Vector&& value) { m_runtimesHasBeenSet = true; m_runtimes = std::move(value); } /** *

Returns findings aggregated by AWS Lambda function runtime environments.

*/ inline LambdaFunctionAggregation& WithRuntimes(const Aws::Vector& value) { SetRuntimes(value); return *this;} /** *

Returns findings aggregated by AWS Lambda function runtime environments.

*/ inline LambdaFunctionAggregation& WithRuntimes(Aws::Vector&& value) { SetRuntimes(std::move(value)); return *this;} /** *

Returns findings aggregated by AWS Lambda function runtime environments.

*/ inline LambdaFunctionAggregation& AddRuntimes(const StringFilter& value) { m_runtimesHasBeenSet = true; m_runtimes.push_back(value); return *this; } /** *

Returns findings aggregated by AWS Lambda function runtime environments.

*/ inline LambdaFunctionAggregation& AddRuntimes(StringFilter&& value) { m_runtimesHasBeenSet = true; m_runtimes.push_back(std::move(value)); return *this; } /** *

The finding severity to use for sorting the results.

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

The finding severity to use for sorting the results.

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

The finding severity to use for sorting the results.

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

The finding severity to use for sorting the results.

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

The finding severity to use for sorting the results.

*/ inline LambdaFunctionAggregation& WithSortBy(const LambdaFunctionSortBy& value) { SetSortBy(value); return *this;} /** *

The finding severity to use for sorting the results.

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

The order to use for sorting the results.

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

The order to use for sorting the results.

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

The order to use for sorting the results.

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

The order to use for sorting the results.

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

The order to use for sorting the results.

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

The order to use for sorting the results.

*/ inline LambdaFunctionAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::Vector m_functionNames; bool m_functionNamesHasBeenSet = false; Aws::Vector m_functionTags; bool m_functionTagsHasBeenSet = false; Aws::Vector m_resourceIds; bool m_resourceIdsHasBeenSet = false; Aws::Vector m_runtimes; bool m_runtimesHasBeenSet = false; LambdaFunctionSortBy m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws