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

Represents which scan types are automatically enabled for new members of your * Amazon Inspector organization.

See Also:

AWS * API Reference

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

Represents whether Amazon EC2 scans are automatically enabled for new members * of your Amazon Inspector organization.

*/ inline bool GetEc2() const{ return m_ec2; } /** *

Represents whether Amazon EC2 scans are automatically enabled for new members * of your Amazon Inspector organization.

*/ inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; } /** *

Represents whether Amazon EC2 scans are automatically enabled for new members * of your Amazon Inspector organization.

*/ inline void SetEc2(bool value) { m_ec2HasBeenSet = true; m_ec2 = value; } /** *

Represents whether Amazon EC2 scans are automatically enabled for new members * of your Amazon Inspector organization.

*/ inline AutoEnable& WithEc2(bool value) { SetEc2(value); return *this;} /** *

Represents whether Amazon ECR scans are automatically enabled for new members * of your Amazon Inspector organization.

*/ inline bool GetEcr() const{ return m_ecr; } /** *

Represents whether Amazon ECR scans are automatically enabled for new members * of your Amazon Inspector organization.

*/ inline bool EcrHasBeenSet() const { return m_ecrHasBeenSet; } /** *

Represents whether Amazon ECR scans are automatically enabled for new members * of your Amazon Inspector organization.

*/ inline void SetEcr(bool value) { m_ecrHasBeenSet = true; m_ecr = value; } /** *

Represents whether Amazon ECR scans are automatically enabled for new members * of your Amazon Inspector organization.

*/ inline AutoEnable& WithEcr(bool value) { SetEcr(value); return *this;} /** *

Represents whether AWS Lambda standard scans are automatically enabled for * new members of your Amazon Inspector organization.

*/ inline bool GetLambda() const{ return m_lambda; } /** *

Represents whether AWS Lambda standard scans are automatically enabled for * new members of your Amazon Inspector organization.

*/ inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; } /** *

Represents whether AWS Lambda standard scans are automatically enabled for * new members of your Amazon Inspector organization.

*/ inline void SetLambda(bool value) { m_lambdaHasBeenSet = true; m_lambda = value; } /** *

Represents whether AWS Lambda standard scans are automatically enabled for * new members of your Amazon Inspector organization.

*/ inline AutoEnable& WithLambda(bool value) { SetLambda(value); return *this;} /** *

Represents whether AWS Lambda code scans are automatically enabled for new * members of your Amazon Inspector organization.

 </p>
     * 
*/ inline bool GetLambdaCode() const{ return m_lambdaCode; } /** *

Represents whether AWS Lambda code scans are automatically enabled for new * members of your Amazon Inspector organization.

 </p>
     * 
*/ inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; } /** *

Represents whether AWS Lambda code scans are automatically enabled for new * members of your Amazon Inspector organization.

 </p>
     * 
*/ inline void SetLambdaCode(bool value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = value; } /** *

Represents whether AWS Lambda code scans are automatically enabled for new * members of your Amazon Inspector organization.

 </p>
     * 
*/ inline AutoEnable& WithLambdaCode(bool value) { SetLambdaCode(value); return *this;} private: bool m_ec2; bool m_ec2HasBeenSet = false; bool m_ecr; bool m_ecrHasBeenSet = false; bool m_lambda; bool m_lambdaHasBeenSet = false; bool m_lambdaCode; bool m_lambdaCodeHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws