AWS SDK for C++

AWS SDK for C++ Version 1.11.632

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_INSPECTOR2_API ResourceState() = default;
36 AWS_INSPECTOR2_API ResourceState(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API ResourceState& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const State& GetEc2() const { return m_ec2; }
47 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
48 template<typename Ec2T = State>
49 void SetEc2(Ec2T&& value) { m_ec2HasBeenSet = true; m_ec2 = std::forward<Ec2T>(value); }
50 template<typename Ec2T = State>
51 ResourceState& WithEc2(Ec2T&& value) { SetEc2(std::forward<Ec2T>(value)); return *this;}
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) { m_ecrHasBeenSet = true; m_ecr = std::forward<EcrT>(value); }
63 template<typename EcrT = State>
64 ResourceState& WithEcr(EcrT&& value) { SetEcr(std::forward<EcrT>(value)); return *this;}
66
68
72 inline const State& GetLambda() const { return m_lambda; }
73 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
74 template<typename LambdaT = State>
75 void SetLambda(LambdaT&& value) { m_lambdaHasBeenSet = true; m_lambda = std::forward<LambdaT>(value); }
76 template<typename LambdaT = State>
77 ResourceState& WithLambda(LambdaT&& value) { SetLambda(std::forward<LambdaT>(value)); return *this;}
79
81
85 inline const State& GetLambdaCode() const { return m_lambdaCode; }
86 inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; }
87 template<typename LambdaCodeT = State>
88 void SetLambdaCode(LambdaCodeT&& value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = std::forward<LambdaCodeT>(value); }
89 template<typename LambdaCodeT = State>
90 ResourceState& WithLambdaCode(LambdaCodeT&& value) { SetLambdaCode(std::forward<LambdaCodeT>(value)); return *this;}
92
94
95 inline const State& GetCodeRepository() const { return m_codeRepository; }
96 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
97 template<typename CodeRepositoryT = State>
98 void SetCodeRepository(CodeRepositoryT&& value) { m_codeRepositoryHasBeenSet = true; m_codeRepository = std::forward<CodeRepositoryT>(value); }
99 template<typename CodeRepositoryT = State>
100 ResourceState& WithCodeRepository(CodeRepositoryT&& value) { SetCodeRepository(std::forward<CodeRepositoryT>(value)); return *this;}
102 private:
103
104 State m_ec2;
105 bool m_ec2HasBeenSet = false;
106
107 State m_ecr;
108 bool m_ecrHasBeenSet = false;
109
110 State m_lambda;
111 bool m_lambdaHasBeenSet = false;
112
113 State m_lambdaCode;
114 bool m_lambdaCodeHasBeenSet = false;
115
116 State m_codeRepository;
117 bool m_codeRepositoryHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Inspector2
122} // 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