AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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 ResourceStatus();
36 AWS_INSPECTOR2_API ResourceStatus(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API ResourceStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Status& GetEc2() const{ return m_ec2; }
46 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
47 inline void SetEc2(const Status& value) { m_ec2HasBeenSet = true; m_ec2 = value; }
48 inline void SetEc2(Status&& value) { m_ec2HasBeenSet = true; m_ec2 = std::move(value); }
49 inline ResourceStatus& WithEc2(const Status& value) { SetEc2(value); return *this;}
50 inline ResourceStatus& WithEc2(Status&& value) { SetEc2(std::move(value)); return *this;}
52
54
57 inline const Status& GetEcr() const{ return m_ecr; }
58 inline bool EcrHasBeenSet() const { return m_ecrHasBeenSet; }
59 inline void SetEcr(const Status& value) { m_ecrHasBeenSet = true; m_ecr = value; }
60 inline void SetEcr(Status&& value) { m_ecrHasBeenSet = true; m_ecr = std::move(value); }
61 inline ResourceStatus& WithEcr(const Status& value) { SetEcr(value); return *this;}
62 inline ResourceStatus& WithEcr(Status&& value) { SetEcr(std::move(value)); return *this;}
64
66
70 inline const Status& GetLambda() const{ return m_lambda; }
71 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
72 inline void SetLambda(const Status& value) { m_lambdaHasBeenSet = true; m_lambda = value; }
73 inline void SetLambda(Status&& value) { m_lambdaHasBeenSet = true; m_lambda = std::move(value); }
74 inline ResourceStatus& WithLambda(const Status& value) { SetLambda(value); return *this;}
75 inline ResourceStatus& WithLambda(Status&& value) { SetLambda(std::move(value)); return *this;}
77
79
83 inline const Status& GetLambdaCode() const{ return m_lambdaCode; }
84 inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; }
85 inline void SetLambdaCode(const Status& value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = value; }
86 inline void SetLambdaCode(Status&& value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = std::move(value); }
87 inline ResourceStatus& WithLambdaCode(const Status& value) { SetLambdaCode(value); return *this;}
88 inline ResourceStatus& WithLambdaCode(Status&& value) { SetLambdaCode(std::move(value)); return *this;}
90 private:
91
92 Status m_ec2;
93 bool m_ec2HasBeenSet = false;
94
95 Status m_ecr;
96 bool m_ecrHasBeenSet = false;
97
98 Status m_lambda;
99 bool m_lambdaHasBeenSet = false;
100
101 Status m_lambdaCode;
102 bool m_lambdaCodeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Inspector2
107} // namespace Aws
AWS_INSPECTOR2_API ResourceStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceStatus & WithLambdaCode(Status &&value)
ResourceStatus & WithLambdaCode(const Status &value)
void SetLambdaCode(const Status &value)
void SetLambda(const Status &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceStatus & WithLambda(Status &&value)
ResourceStatus & WithLambda(const Status &value)
ResourceStatus & WithEcr(const Status &value)
ResourceStatus & WithEc2(const Status &value)
AWS_INSPECTOR2_API ResourceStatus(Aws::Utils::Json::JsonView jsonValue)
ResourceStatus & WithEc2(Status &&value)
ResourceStatus & WithEcr(Status &&value)
Aws::Utils::Json::JsonValue JsonValue