AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEc2(const State& value) { m_ec2HasBeenSet = true; m_ec2 = value; }
49 inline void SetEc2(State&& value) { m_ec2HasBeenSet = true; m_ec2 = std::move(value); }
50 inline ResourceState& WithEc2(const State& value) { SetEc2(value); return *this;}
51 inline ResourceState& WithEc2(State&& value) { SetEc2(std::move(value)); return *this;}
53
55
59 inline const State& GetEcr() const{ return m_ecr; }
60 inline bool EcrHasBeenSet() const { return m_ecrHasBeenSet; }
61 inline void SetEcr(const State& value) { m_ecrHasBeenSet = true; m_ecr = value; }
62 inline void SetEcr(State&& value) { m_ecrHasBeenSet = true; m_ecr = std::move(value); }
63 inline ResourceState& WithEcr(const State& value) { SetEcr(value); return *this;}
64 inline ResourceState& WithEcr(State&& value) { SetEcr(std::move(value)); return *this;}
66
68
69 inline const State& GetLambda() const{ return m_lambda; }
70 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
71 inline void SetLambda(const State& value) { m_lambdaHasBeenSet = true; m_lambda = value; }
72 inline void SetLambda(State&& value) { m_lambdaHasBeenSet = true; m_lambda = std::move(value); }
73 inline ResourceState& WithLambda(const State& value) { SetLambda(value); return *this;}
74 inline ResourceState& WithLambda(State&& value) { SetLambda(std::move(value)); return *this;}
76
78
79 inline const State& GetLambdaCode() const{ return m_lambdaCode; }
80 inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; }
81 inline void SetLambdaCode(const State& value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = value; }
82 inline void SetLambdaCode(State&& value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = std::move(value); }
83 inline ResourceState& WithLambdaCode(const State& value) { SetLambdaCode(value); return *this;}
84 inline ResourceState& WithLambdaCode(State&& value) { SetLambdaCode(std::move(value)); return *this;}
86 private:
87
88 State m_ec2;
89 bool m_ec2HasBeenSet = false;
90
91 State m_ecr;
92 bool m_ecrHasBeenSet = false;
93
94 State m_lambda;
95 bool m_lambdaHasBeenSet = false;
96
97 State m_lambdaCode;
98 bool m_lambdaCodeHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Inspector2
103} // namespace Aws
AWS_INSPECTOR2_API ResourceState(Aws::Utils::Json::JsonView jsonValue)
ResourceState & WithLambda(const State &value)
void SetEc2(const State &value)
void SetLambda(const State &value)
AWS_INSPECTOR2_API ResourceState & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceState & WithEc2(const State &value)
void SetEcr(const State &value)
ResourceState & WithEcr(State &&value)
ResourceState & WithLambda(State &&value)
ResourceState & WithEc2(State &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLambdaCode(const State &value)
ResourceState & WithLambdaCode(const State &value)
ResourceState & WithEcr(const State &value)
ResourceState & WithLambdaCode(State &&value)
Aws::Utils::Json::JsonValue JsonValue