AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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