/** * 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 a findings aggregation based on an AWS Lambda * function's layers.

See Also:

AWS * API Reference

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

The names of the AWS Lambda functions associated with the layers.

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

The names of the AWS Lambda functions associated with the layers.

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

The names of the AWS Lambda functions associated with the layers.

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

The names of the AWS Lambda functions associated with the layers.

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

The names of the AWS Lambda functions associated with the layers.

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

The names of the AWS Lambda functions associated with the layers.

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

The names of the AWS Lambda functions associated with the layers.

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

The names of the AWS Lambda functions associated with the layers.

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

The Amazon Resource Name (ARN) of the AWS Lambda function layer.

*/ inline const Aws::Vector& GetLayerArns() const{ return m_layerArns; } /** *

The Amazon Resource Name (ARN) of the AWS Lambda function layer.

*/ inline bool LayerArnsHasBeenSet() const { return m_layerArnsHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the AWS Lambda function layer.

*/ inline void SetLayerArns(const Aws::Vector& value) { m_layerArnsHasBeenSet = true; m_layerArns = value; } /** *

The Amazon Resource Name (ARN) of the AWS Lambda function layer.

*/ inline void SetLayerArns(Aws::Vector&& value) { m_layerArnsHasBeenSet = true; m_layerArns = std::move(value); } /** *

The Amazon Resource Name (ARN) of the AWS Lambda function layer.

*/ inline LambdaLayerAggregation& WithLayerArns(const Aws::Vector& value) { SetLayerArns(value); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS Lambda function layer.

*/ inline LambdaLayerAggregation& WithLayerArns(Aws::Vector&& value) { SetLayerArns(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS Lambda function layer.

*/ inline LambdaLayerAggregation& AddLayerArns(const StringFilter& value) { m_layerArnsHasBeenSet = true; m_layerArns.push_back(value); return *this; } /** *

The Amazon Resource Name (ARN) of the AWS Lambda function layer.

*/ inline LambdaLayerAggregation& AddLayerArns(StringFilter&& value) { m_layerArnsHasBeenSet = true; m_layerArns.push_back(std::move(value)); return *this; } /** *

The resource IDs for the AWS Lambda function layers.

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

The resource IDs for the AWS Lambda function layers.

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

The resource IDs for the AWS Lambda function layers.

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

The resource IDs for the AWS Lambda function layers.

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

The resource IDs for the AWS Lambda function layers.

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

The resource IDs for the AWS Lambda function layers.

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

The resource IDs for the AWS Lambda function layers.

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

The resource IDs for the AWS Lambda function layers.

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

The finding severity to use for sorting the results.

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

The finding severity to use for sorting the results.

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

The finding severity to use for sorting the results.

*/ inline LambdaLayerAggregation& WithSortBy(const LambdaLayerSortBy& value) { SetSortBy(value); return *this;} /** *

The finding severity to use for sorting the results.

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

The order to use for sorting the results.

*/ inline LambdaLayerAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::Vector m_functionNames; bool m_functionNamesHasBeenSet = false; Aws::Vector m_layerArns; bool m_layerArnsHasBeenSet = false; Aws::Vector m_resourceIds; bool m_resourceIdsHasBeenSet = false; LambdaLayerSortBy m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws