/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details the state of Amazon Inspector for each resource type Amazon Inspector
* scans.See Also:
AWS
* API Reference
An object detailing the state of Amazon Inspector scanning for Amazon EC2 * resources.
*/ inline const State& GetEc2() const{ return m_ec2; } /** *An object detailing the state of Amazon Inspector scanning for Amazon EC2 * resources.
*/ inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; } /** *An object detailing the state of Amazon Inspector scanning for Amazon EC2 * resources.
*/ inline void SetEc2(const State& value) { m_ec2HasBeenSet = true; m_ec2 = value; } /** *An object detailing the state of Amazon Inspector scanning for Amazon EC2 * resources.
*/ inline void SetEc2(State&& value) { m_ec2HasBeenSet = true; m_ec2 = std::move(value); } /** *An object detailing the state of Amazon Inspector scanning for Amazon EC2 * resources.
*/ inline ResourceState& WithEc2(const State& value) { SetEc2(value); return *this;} /** *An object detailing the state of Amazon Inspector scanning for Amazon EC2 * resources.
*/ inline ResourceState& WithEc2(State&& value) { SetEc2(std::move(value)); return *this;} /** *An object detailing the state of Amazon Inspector scanning for Amazon ECR * resources.
*/ inline const State& GetEcr() const{ return m_ecr; } /** *An object detailing the state of Amazon Inspector scanning for Amazon ECR * resources.
*/ inline bool EcrHasBeenSet() const { return m_ecrHasBeenSet; } /** *An object detailing the state of Amazon Inspector scanning for Amazon ECR * resources.
*/ inline void SetEcr(const State& value) { m_ecrHasBeenSet = true; m_ecr = value; } /** *An object detailing the state of Amazon Inspector scanning for Amazon ECR * resources.
*/ inline void SetEcr(State&& value) { m_ecrHasBeenSet = true; m_ecr = std::move(value); } /** *An object detailing the state of Amazon Inspector scanning for Amazon ECR * resources.
*/ inline ResourceState& WithEcr(const State& value) { SetEcr(value); return *this;} /** *An object detailing the state of Amazon Inspector scanning for Amazon ECR * resources.
*/ inline ResourceState& WithEcr(State&& value) { SetEcr(std::move(value)); return *this;} inline const State& GetLambda() const{ return m_lambda; } inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; } inline void SetLambda(const State& value) { m_lambdaHasBeenSet = true; m_lambda = value; } inline void SetLambda(State&& value) { m_lambdaHasBeenSet = true; m_lambda = std::move(value); } inline ResourceState& WithLambda(const State& value) { SetLambda(value); return *this;} inline ResourceState& WithLambda(State&& value) { SetLambda(std::move(value)); return *this;} inline const State& GetLambdaCode() const{ return m_lambdaCode; } inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; } inline void SetLambdaCode(const State& value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = value; } inline void SetLambdaCode(State&& value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = std::move(value); } inline ResourceState& WithLambdaCode(const State& value) { SetLambdaCode(value); return *this;} inline ResourceState& WithLambdaCode(State&& value) { SetLambdaCode(std::move(value)); return *this;} private: State m_ec2; bool m_ec2HasBeenSet = false; State m_ecr; bool m_ecrHasBeenSet = false; State m_lambda; bool m_lambdaHasBeenSet = false; State m_lambdaCode; bool m_lambdaCodeHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws