AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ResourceState.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/State.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 ResourceState() = default;
31 AWS_INSPECTOR2_API ResourceState(Aws::Utils::Json::JsonView jsonValue);
32 AWS_INSPECTOR2_API ResourceState& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const State& GetEc2() const { return m_ec2; }
41 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
42 template <typename Ec2T = State>
43 void SetEc2(Ec2T&& value) {
44 m_ec2HasBeenSet = true;
45 m_ec2 = std::forward<Ec2T>(value);
46 }
47 template <typename Ec2T = State>
48 ResourceState& WithEc2(Ec2T&& value) {
49 SetEc2(std::forward<Ec2T>(value));
50 return *this;
51 }
53
55
59 inline const State& GetEcr() const { return m_ecr; }
60 inline bool EcrHasBeenSet() const { return m_ecrHasBeenSet; }
61 template <typename EcrT = State>
62 void SetEcr(EcrT&& value) {
63 m_ecrHasBeenSet = true;
64 m_ecr = std::forward<EcrT>(value);
65 }
66 template <typename EcrT = State>
67 ResourceState& WithEcr(EcrT&& value) {
68 SetEcr(std::forward<EcrT>(value));
69 return *this;
70 }
72
74
78 inline const State& GetLambda() const { return m_lambda; }
79 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
80 template <typename LambdaT = State>
81 void SetLambda(LambdaT&& value) {
82 m_lambdaHasBeenSet = true;
83 m_lambda = std::forward<LambdaT>(value);
84 }
85 template <typename LambdaT = State>
86 ResourceState& WithLambda(LambdaT&& value) {
87 SetLambda(std::forward<LambdaT>(value));
88 return *this;
89 }
91
93
97 inline const State& GetLambdaCode() const { return m_lambdaCode; }
98 inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; }
99 template <typename LambdaCodeT = State>
100 void SetLambdaCode(LambdaCodeT&& value) {
101 m_lambdaCodeHasBeenSet = true;
102 m_lambdaCode = std::forward<LambdaCodeT>(value);
103 }
104 template <typename LambdaCodeT = State>
105 ResourceState& WithLambdaCode(LambdaCodeT&& value) {
106 SetLambdaCode(std::forward<LambdaCodeT>(value));
107 return *this;
108 }
110
112
113 inline const State& GetCodeRepository() const { return m_codeRepository; }
114 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
115 template <typename CodeRepositoryT = State>
116 void SetCodeRepository(CodeRepositoryT&& value) {
117 m_codeRepositoryHasBeenSet = true;
118 m_codeRepository = std::forward<CodeRepositoryT>(value);
119 }
120 template <typename CodeRepositoryT = State>
121 ResourceState& WithCodeRepository(CodeRepositoryT&& value) {
122 SetCodeRepository(std::forward<CodeRepositoryT>(value));
123 return *this;
124 }
126 private:
127 State m_ec2;
128
129 State m_ecr;
130
131 State m_lambda;
132
133 State m_lambdaCode;
134
135 State m_codeRepository;
136 bool m_ec2HasBeenSet = false;
137 bool m_ecrHasBeenSet = false;
138 bool m_lambdaHasBeenSet = false;
139 bool m_lambdaCodeHasBeenSet = false;
140 bool m_codeRepositoryHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace Inspector2
145} // namespace Aws
AWS_INSPECTOR2_API ResourceState(Aws::Utils::Json::JsonView jsonValue)
ResourceState & WithEc2(Ec2T &&value)
AWS_INSPECTOR2_API ResourceState & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API ResourceState()=default
const State & GetCodeRepository() const
ResourceState & WithCodeRepository(CodeRepositoryT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLambdaCode(LambdaCodeT &&value)
ResourceState & WithLambdaCode(LambdaCodeT &&value)
ResourceState & WithEcr(EcrT &&value)
void SetCodeRepository(CodeRepositoryT &&value)
ResourceState & WithLambda(LambdaT &&value)
Aws::Utils::Json::JsonValue JsonValue