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

A response that contains the results of an AWS Lambda function layer finding * aggregation.

See Also:

AWS * API Reference

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

The account ID of the AWS Lambda function layer.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The account ID of the AWS Lambda function layer.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The account ID of the AWS Lambda function layer.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The account ID of the AWS Lambda function layer.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The account ID of the AWS Lambda function layer.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The account ID of the AWS Lambda function layer.

*/ inline LambdaLayerAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The account ID of the AWS Lambda function layer.

*/ inline LambdaLayerAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The account ID of the AWS Lambda function layer.

*/ inline LambdaLayerAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

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

*/ inline const Aws::String& GetFunctionName() const{ return m_functionName; } /** *

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

*/ inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; } /** *

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

*/ inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; } /** *

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

*/ inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); } /** *

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

*/ inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); } /** *

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

*/ inline LambdaLayerAggregationResponse& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;} /** *

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

*/ inline LambdaLayerAggregationResponse& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;} /** *

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

*/ inline LambdaLayerAggregationResponse& WithFunctionName(const char* value) { SetFunctionName(value); return *this;} /** *

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

*/ inline const Aws::String& GetLayerArn() const{ return m_layerArn; } /** *

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

*/ inline bool LayerArnHasBeenSet() const { return m_layerArnHasBeenSet; } /** *

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

*/ inline void SetLayerArn(const Aws::String& value) { m_layerArnHasBeenSet = true; m_layerArn = value; } /** *

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

*/ inline void SetLayerArn(Aws::String&& value) { m_layerArnHasBeenSet = true; m_layerArn = std::move(value); } /** *

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

*/ inline void SetLayerArn(const char* value) { m_layerArnHasBeenSet = true; m_layerArn.assign(value); } /** *

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

*/ inline LambdaLayerAggregationResponse& WithLayerArn(const Aws::String& value) { SetLayerArn(value); return *this;} /** *

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

*/ inline LambdaLayerAggregationResponse& WithLayerArn(Aws::String&& value) { SetLayerArn(std::move(value)); return *this;} /** *

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

*/ inline LambdaLayerAggregationResponse& WithLayerArn(const char* value) { SetLayerArn(value); return *this;} /** *

The Resource ID of the AWS Lambda function layer.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The Resource ID of the AWS Lambda function layer.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The Resource ID of the AWS Lambda function layer.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The Resource ID of the AWS Lambda function layer.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The Resource ID of the AWS Lambda function layer.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The Resource ID of the AWS Lambda function layer.

*/ inline LambdaLayerAggregationResponse& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The Resource ID of the AWS Lambda function layer.

*/ inline LambdaLayerAggregationResponse& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The Resource ID of the AWS Lambda function layer.

*/ inline LambdaLayerAggregationResponse& WithResourceId(const char* value) { SetResourceId(value); return *this;} inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; } inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; } inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; } inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); } inline LambdaLayerAggregationResponse& WithSeverityCounts(const SeverityCounts& value) { SetSeverityCounts(value); return *this;} inline LambdaLayerAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_functionName; bool m_functionNameHasBeenSet = false; Aws::String m_layerArn; bool m_layerArnHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; SeverityCounts m_severityCounts; bool m_severityCountsHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws