AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ResourceScanMetadata.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/CodeRepositoryMetadata.h>
9#include <aws/inspector2/model/Ec2Metadata.h>
10#include <aws/inspector2/model/EcrContainerImageMetadata.h>
11#include <aws/inspector2/model/EcrRepositoryMetadata.h>
12#include <aws/inspector2/model/LambdaFunctionMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2 {
24namespace Model {
25
33 public:
34 AWS_INSPECTOR2_API ResourceScanMetadata() = default;
35 AWS_INSPECTOR2_API ResourceScanMetadata(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const EcrRepositoryMetadata& GetEcrRepository() const { return m_ecrRepository; }
45 inline bool EcrRepositoryHasBeenSet() const { return m_ecrRepositoryHasBeenSet; }
46 template <typename EcrRepositoryT = EcrRepositoryMetadata>
47 void SetEcrRepository(EcrRepositoryT&& value) {
48 m_ecrRepositoryHasBeenSet = true;
49 m_ecrRepository = std::forward<EcrRepositoryT>(value);
50 }
51 template <typename EcrRepositoryT = EcrRepositoryMetadata>
52 ResourceScanMetadata& WithEcrRepository(EcrRepositoryT&& value) {
53 SetEcrRepository(std::forward<EcrRepositoryT>(value));
54 return *this;
55 }
57
59
63 inline const EcrContainerImageMetadata& GetEcrImage() const { return m_ecrImage; }
64 inline bool EcrImageHasBeenSet() const { return m_ecrImageHasBeenSet; }
65 template <typename EcrImageT = EcrContainerImageMetadata>
66 void SetEcrImage(EcrImageT&& value) {
67 m_ecrImageHasBeenSet = true;
68 m_ecrImage = std::forward<EcrImageT>(value);
69 }
70 template <typename EcrImageT = EcrContainerImageMetadata>
71 ResourceScanMetadata& WithEcrImage(EcrImageT&& value) {
72 SetEcrImage(std::forward<EcrImageT>(value));
73 return *this;
74 }
76
78
81 inline const Ec2Metadata& GetEc2() const { return m_ec2; }
82 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
83 template <typename Ec2T = Ec2Metadata>
84 void SetEc2(Ec2T&& value) {
85 m_ec2HasBeenSet = true;
86 m_ec2 = std::forward<Ec2T>(value);
87 }
88 template <typename Ec2T = Ec2Metadata>
90 SetEc2(std::forward<Ec2T>(value));
91 return *this;
92 }
94
96
100 inline const LambdaFunctionMetadata& GetLambdaFunction() const { return m_lambdaFunction; }
101 inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
102 template <typename LambdaFunctionT = LambdaFunctionMetadata>
103 void SetLambdaFunction(LambdaFunctionT&& value) {
104 m_lambdaFunctionHasBeenSet = true;
105 m_lambdaFunction = std::forward<LambdaFunctionT>(value);
106 }
107 template <typename LambdaFunctionT = LambdaFunctionMetadata>
108 ResourceScanMetadata& WithLambdaFunction(LambdaFunctionT&& value) {
109 SetLambdaFunction(std::forward<LambdaFunctionT>(value));
110 return *this;
111 }
113
115
118 inline const CodeRepositoryMetadata& GetCodeRepository() const { return m_codeRepository; }
119 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
120 template <typename CodeRepositoryT = CodeRepositoryMetadata>
121 void SetCodeRepository(CodeRepositoryT&& value) {
122 m_codeRepositoryHasBeenSet = true;
123 m_codeRepository = std::forward<CodeRepositoryT>(value);
124 }
125 template <typename CodeRepositoryT = CodeRepositoryMetadata>
126 ResourceScanMetadata& WithCodeRepository(CodeRepositoryT&& value) {
127 SetCodeRepository(std::forward<CodeRepositoryT>(value));
128 return *this;
129 }
131 private:
132 EcrRepositoryMetadata m_ecrRepository;
133
134 EcrContainerImageMetadata m_ecrImage;
135
136 Ec2Metadata m_ec2;
137
138 LambdaFunctionMetadata m_lambdaFunction;
139
140 CodeRepositoryMetadata m_codeRepository;
141 bool m_ecrRepositoryHasBeenSet = false;
142 bool m_ecrImageHasBeenSet = false;
143 bool m_ec2HasBeenSet = false;
144 bool m_lambdaFunctionHasBeenSet = false;
145 bool m_codeRepositoryHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace Inspector2
150} // namespace Aws
const EcrContainerImageMetadata & GetEcrImage() const
const LambdaFunctionMetadata & GetLambdaFunction() const
ResourceScanMetadata & WithEc2(Ec2T &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API ResourceScanMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceScanMetadata & WithEcrRepository(EcrRepositoryT &&value)
ResourceScanMetadata & WithLambdaFunction(LambdaFunctionT &&value)
const CodeRepositoryMetadata & GetCodeRepository() const
ResourceScanMetadata & WithCodeRepository(CodeRepositoryT &&value)
AWS_INSPECTOR2_API ResourceScanMetadata()=default
ResourceScanMetadata & WithEcrImage(EcrImageT &&value)
const EcrRepositoryMetadata & GetEcrRepository() const
AWS_INSPECTOR2_API ResourceScanMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue