AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AutoEnable.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector2
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_INSPECTOR2_API AutoEnable() = default;
34 AWS_INSPECTOR2_API AutoEnable(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR2_API AutoEnable& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline bool GetCodeRepository() const { return m_codeRepository; }
45 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
46 inline void SetCodeRepository(bool value) { m_codeRepositoryHasBeenSet = true; m_codeRepository = value; }
47 inline AutoEnable& WithCodeRepository(bool value) { SetCodeRepository(value); return *this;}
49
51
55 inline bool GetEc2() const { return m_ec2; }
56 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
57 inline void SetEc2(bool value) { m_ec2HasBeenSet = true; m_ec2 = value; }
58 inline AutoEnable& WithEc2(bool value) { SetEc2(value); return *this;}
60
62
66 inline bool GetEcr() const { return m_ecr; }
67 inline bool EcrHasBeenSet() const { return m_ecrHasBeenSet; }
68 inline void SetEcr(bool value) { m_ecrHasBeenSet = true; m_ecr = value; }
69 inline AutoEnable& WithEcr(bool value) { SetEcr(value); return *this;}
71
73
78 inline bool GetLambda() const { return m_lambda; }
79 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
80 inline void SetLambda(bool value) { m_lambdaHasBeenSet = true; m_lambda = value; }
81 inline AutoEnable& WithLambda(bool value) { SetLambda(value); return *this;}
83
85
89 inline bool GetLambdaCode() const { return m_lambdaCode; }
90 inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; }
91 inline void SetLambdaCode(bool value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = value; }
92 inline AutoEnable& WithLambdaCode(bool value) { SetLambdaCode(value); return *this;}
94 private:
95
96 bool m_codeRepository{false};
97 bool m_codeRepositoryHasBeenSet = false;
98
99 bool m_ec2{false};
100 bool m_ec2HasBeenSet = false;
101
102 bool m_ecr{false};
103 bool m_ecrHasBeenSet = false;
104
105 bool m_lambda{false};
106 bool m_lambdaHasBeenSet = false;
107
108 bool m_lambdaCode{false};
109 bool m_lambdaCodeHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Inspector2
114} // namespace Aws
AutoEnable & WithLambda(bool value)
Definition AutoEnable.h:81
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AutoEnable & WithLambdaCode(bool value)
Definition AutoEnable.h:92
AutoEnable & WithCodeRepository(bool value)
Definition AutoEnable.h:47
AWS_INSPECTOR2_API AutoEnable(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API AutoEnable()=default
AWS_INSPECTOR2_API AutoEnable & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoEnable & WithEcr(bool value)
Definition AutoEnable.h:69
AutoEnable & WithEc2(bool value)
Definition AutoEnable.h:58
Aws::Utils::Json::JsonValue JsonValue