AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AutoEnable.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Inspector2 {
17namespace Model {
18
26 public:
27 AWS_INSPECTOR2_API AutoEnable() = default;
28 AWS_INSPECTOR2_API AutoEnable(Aws::Utils::Json::JsonView jsonValue);
29 AWS_INSPECTOR2_API AutoEnable& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline bool GetEc2() const { return m_ec2; }
38 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
39 inline void SetEc2(bool value) {
40 m_ec2HasBeenSet = true;
41 m_ec2 = value;
42 }
43 inline AutoEnable& WithEc2(bool value) {
44 SetEc2(value);
45 return *this;
46 }
48
50
54 inline bool GetEcr() const { return m_ecr; }
55 inline bool EcrHasBeenSet() const { return m_ecrHasBeenSet; }
56 inline void SetEcr(bool value) {
57 m_ecrHasBeenSet = true;
58 m_ecr = value;
59 }
60 inline AutoEnable& WithEcr(bool value) {
61 SetEcr(value);
62 return *this;
63 }
65
67
72 inline bool GetLambda() const { return m_lambda; }
73 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
74 inline void SetLambda(bool value) {
75 m_lambdaHasBeenSet = true;
76 m_lambda = value;
77 }
78 inline AutoEnable& WithLambda(bool value) {
79 SetLambda(value);
80 return *this;
81 }
83
85
89 inline bool GetLambdaCode() const { return m_lambdaCode; }
90 inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; }
91 inline void SetLambdaCode(bool value) {
92 m_lambdaCodeHasBeenSet = true;
93 m_lambdaCode = value;
94 }
95 inline AutoEnable& WithLambdaCode(bool value) {
96 SetLambdaCode(value);
97 return *this;
98 }
100
102
106 inline bool GetCodeRepository() const { return m_codeRepository; }
107 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
108 inline void SetCodeRepository(bool value) {
109 m_codeRepositoryHasBeenSet = true;
110 m_codeRepository = value;
111 }
112 inline AutoEnable& WithCodeRepository(bool value) {
113 SetCodeRepository(value);
114 return *this;
115 }
117 private:
118 bool m_ec2{false};
119
120 bool m_ecr{false};
121
122 bool m_lambda{false};
123
124 bool m_lambdaCode{false};
125
126 bool m_codeRepository{false};
127 bool m_ec2HasBeenSet = false;
128 bool m_ecrHasBeenSet = false;
129 bool m_lambdaHasBeenSet = false;
130 bool m_lambdaCodeHasBeenSet = false;
131 bool m_codeRepositoryHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace Inspector2
136} // namespace Aws
AutoEnable & WithLambda(bool value)
Definition AutoEnable.h:78
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AutoEnable & WithLambdaCode(bool value)
Definition AutoEnable.h:95
AutoEnable & WithCodeRepository(bool value)
Definition AutoEnable.h:112
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:60
AutoEnable & WithEc2(bool value)
Definition AutoEnable.h:43
Aws::Utils::Json::JsonValue JsonValue