/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains details about the resource involved in the finding.See
* Also:
AWS
* API Reference
An object that contains details about the Amazon EC2 instance involved in the * finding.
*/ inline const AwsEc2InstanceDetails& GetAwsEc2Instance() const{ return m_awsEc2Instance; } /** *An object that contains details about the Amazon EC2 instance involved in the * finding.
*/ inline bool AwsEc2InstanceHasBeenSet() const { return m_awsEc2InstanceHasBeenSet; } /** *An object that contains details about the Amazon EC2 instance involved in the * finding.
*/ inline void SetAwsEc2Instance(const AwsEc2InstanceDetails& value) { m_awsEc2InstanceHasBeenSet = true; m_awsEc2Instance = value; } /** *An object that contains details about the Amazon EC2 instance involved in the * finding.
*/ inline void SetAwsEc2Instance(AwsEc2InstanceDetails&& value) { m_awsEc2InstanceHasBeenSet = true; m_awsEc2Instance = std::move(value); } /** *An object that contains details about the Amazon EC2 instance involved in the * finding.
*/ inline ResourceDetails& WithAwsEc2Instance(const AwsEc2InstanceDetails& value) { SetAwsEc2Instance(value); return *this;} /** *An object that contains details about the Amazon EC2 instance involved in the * finding.
*/ inline ResourceDetails& WithAwsEc2Instance(AwsEc2InstanceDetails&& value) { SetAwsEc2Instance(std::move(value)); return *this;} /** *An object that contains details about the Amazon ECR container image involved * in the finding.
*/ inline const AwsEcrContainerImageDetails& GetAwsEcrContainerImage() const{ return m_awsEcrContainerImage; } /** *An object that contains details about the Amazon ECR container image involved * in the finding.
*/ inline bool AwsEcrContainerImageHasBeenSet() const { return m_awsEcrContainerImageHasBeenSet; } /** *An object that contains details about the Amazon ECR container image involved * in the finding.
*/ inline void SetAwsEcrContainerImage(const AwsEcrContainerImageDetails& value) { m_awsEcrContainerImageHasBeenSet = true; m_awsEcrContainerImage = value; } /** *An object that contains details about the Amazon ECR container image involved * in the finding.
*/ inline void SetAwsEcrContainerImage(AwsEcrContainerImageDetails&& value) { m_awsEcrContainerImageHasBeenSet = true; m_awsEcrContainerImage = std::move(value); } /** *An object that contains details about the Amazon ECR container image involved * in the finding.
*/ inline ResourceDetails& WithAwsEcrContainerImage(const AwsEcrContainerImageDetails& value) { SetAwsEcrContainerImage(value); return *this;} /** *An object that contains details about the Amazon ECR container image involved * in the finding.
*/ inline ResourceDetails& WithAwsEcrContainerImage(AwsEcrContainerImageDetails&& value) { SetAwsEcrContainerImage(std::move(value)); return *this;} /** *A summary of the information about an AWS Lambda function affected by a * finding.
*/ inline const AwsLambdaFunctionDetails& GetAwsLambdaFunction() const{ return m_awsLambdaFunction; } /** *A summary of the information about an AWS Lambda function affected by a * finding.
*/ inline bool AwsLambdaFunctionHasBeenSet() const { return m_awsLambdaFunctionHasBeenSet; } /** *A summary of the information about an AWS Lambda function affected by a * finding.
*/ inline void SetAwsLambdaFunction(const AwsLambdaFunctionDetails& value) { m_awsLambdaFunctionHasBeenSet = true; m_awsLambdaFunction = value; } /** *A summary of the information about an AWS Lambda function affected by a * finding.
*/ inline void SetAwsLambdaFunction(AwsLambdaFunctionDetails&& value) { m_awsLambdaFunctionHasBeenSet = true; m_awsLambdaFunction = std::move(value); } /** *A summary of the information about an AWS Lambda function affected by a * finding.
*/ inline ResourceDetails& WithAwsLambdaFunction(const AwsLambdaFunctionDetails& value) { SetAwsLambdaFunction(value); return *this;} /** *A summary of the information about an AWS Lambda function affected by a * finding.
*/ inline ResourceDetails& WithAwsLambdaFunction(AwsLambdaFunctionDetails&& value) { SetAwsLambdaFunction(std::move(value)); return *this;} private: AwsEc2InstanceDetails m_awsEc2Instance; bool m_awsEc2InstanceHasBeenSet = false; AwsEcrContainerImageDetails m_awsEcrContainerImage; bool m_awsEcrContainerImageHasBeenSet = false; AwsLambdaFunctionDetails m_awsLambdaFunction; bool m_awsLambdaFunctionHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws