AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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
43 inline const State& GetCodeRepository() const { return m_codeRepository; }
44 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
45 template<typename CodeRepositoryT = State>
46 void SetCodeRepository(CodeRepositoryT&& value) { m_codeRepositoryHasBeenSet = true; m_codeRepository = std::forward<CodeRepositoryT>(value); }
47 template<typename CodeRepositoryT = State>
48 ResourceState& WithCodeRepository(CodeRepositoryT&& value) { SetCodeRepository(std::forward<CodeRepositoryT>(value)); return *this;}
50
52
56 inline const State& GetEc2() const { return m_ec2; }
57 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
58 template<typename Ec2T = State>
59 void SetEc2(Ec2T&& value) { m_ec2HasBeenSet = true; m_ec2 = std::forward<Ec2T>(value); }
60 template<typename Ec2T = State>
61 ResourceState& WithEc2(Ec2T&& value) { SetEc2(std::forward<Ec2T>(value)); return *this;}
63
65
69 inline const State& GetEcr() const { return m_ecr; }
70 inline bool EcrHasBeenSet() const { return m_ecrHasBeenSet; }
71 template<typename EcrT = State>
72 void SetEcr(EcrT&& value) { m_ecrHasBeenSet = true; m_ecr = std::forward<EcrT>(value); }
73 template<typename EcrT = State>
74 ResourceState& WithEcr(EcrT&& value) { SetEcr(std::forward<EcrT>(value)); return *this;}
76
78
82 inline const State& GetLambda() const { return m_lambda; }
83 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
84 template<typename LambdaT = State>
85 void SetLambda(LambdaT&& value) { m_lambdaHasBeenSet = true; m_lambda = std::forward<LambdaT>(value); }
86 template<typename LambdaT = State>
87 ResourceState& WithLambda(LambdaT&& value) { SetLambda(std::forward<LambdaT>(value)); return *this;}
89
91
95 inline const State& GetLambdaCode() const { return m_lambdaCode; }
96 inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; }
97 template<typename LambdaCodeT = State>
98 void SetLambdaCode(LambdaCodeT&& value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = std::forward<LambdaCodeT>(value); }
99 template<typename LambdaCodeT = State>
100 ResourceState& WithLambdaCode(LambdaCodeT&& value) { SetLambdaCode(std::forward<LambdaCodeT>(value)); return *this;}
102 private:
103
104 State m_codeRepository;
105 bool m_codeRepositoryHasBeenSet = false;
106
107 State m_ec2;
108 bool m_ec2HasBeenSet = false;
109
110 State m_ecr;
111 bool m_ecrHasBeenSet = false;
112
113 State m_lambda;
114 bool m_lambdaHasBeenSet = false;
115
116 State m_lambdaCode;
117 bool m_lambdaCodeHasBeenSet = 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