AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Inspector2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_INSPECTOR2_API ResourceScanMetadata() = default;
40 AWS_INSPECTOR2_API ResourceScanMetadata(Aws::Utils::Json::JsonView jsonValue);
42 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const CodeRepositoryMetadata& GetCodeRepository() const { return m_codeRepository; }
50 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
51 template<typename CodeRepositoryT = CodeRepositoryMetadata>
52 void SetCodeRepository(CodeRepositoryT&& value) { m_codeRepositoryHasBeenSet = true; m_codeRepository = std::forward<CodeRepositoryT>(value); }
53 template<typename CodeRepositoryT = CodeRepositoryMetadata>
54 ResourceScanMetadata& WithCodeRepository(CodeRepositoryT&& value) { SetCodeRepository(std::forward<CodeRepositoryT>(value)); return *this;}
56
58
61 inline const Ec2Metadata& GetEc2() const { return m_ec2; }
62 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
63 template<typename Ec2T = Ec2Metadata>
64 void SetEc2(Ec2T&& value) { m_ec2HasBeenSet = true; m_ec2 = std::forward<Ec2T>(value); }
65 template<typename Ec2T = Ec2Metadata>
66 ResourceScanMetadata& WithEc2(Ec2T&& value) { SetEc2(std::forward<Ec2T>(value)); return *this;}
68
70
74 inline const EcrContainerImageMetadata& GetEcrImage() const { return m_ecrImage; }
75 inline bool EcrImageHasBeenSet() const { return m_ecrImageHasBeenSet; }
76 template<typename EcrImageT = EcrContainerImageMetadata>
77 void SetEcrImage(EcrImageT&& value) { m_ecrImageHasBeenSet = true; m_ecrImage = std::forward<EcrImageT>(value); }
78 template<typename EcrImageT = EcrContainerImageMetadata>
79 ResourceScanMetadata& WithEcrImage(EcrImageT&& value) { SetEcrImage(std::forward<EcrImageT>(value)); return *this;}
81
83
87 inline const EcrRepositoryMetadata& GetEcrRepository() const { return m_ecrRepository; }
88 inline bool EcrRepositoryHasBeenSet() const { return m_ecrRepositoryHasBeenSet; }
89 template<typename EcrRepositoryT = EcrRepositoryMetadata>
90 void SetEcrRepository(EcrRepositoryT&& value) { m_ecrRepositoryHasBeenSet = true; m_ecrRepository = std::forward<EcrRepositoryT>(value); }
91 template<typename EcrRepositoryT = EcrRepositoryMetadata>
92 ResourceScanMetadata& WithEcrRepository(EcrRepositoryT&& value) { SetEcrRepository(std::forward<EcrRepositoryT>(value)); return *this;}
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) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = std::forward<LambdaFunctionT>(value); }
104 template<typename LambdaFunctionT = LambdaFunctionMetadata>
105 ResourceScanMetadata& WithLambdaFunction(LambdaFunctionT&& value) { SetLambdaFunction(std::forward<LambdaFunctionT>(value)); return *this;}
107 private:
108
109 CodeRepositoryMetadata m_codeRepository;
110 bool m_codeRepositoryHasBeenSet = false;
111
112 Ec2Metadata m_ec2;
113 bool m_ec2HasBeenSet = false;
114
115 EcrContainerImageMetadata m_ecrImage;
116 bool m_ecrImageHasBeenSet = false;
117
118 EcrRepositoryMetadata m_ecrRepository;
119 bool m_ecrRepositoryHasBeenSet = false;
120
121 LambdaFunctionMetadata m_lambdaFunction;
122 bool m_lambdaFunctionHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Inspector2
127} // 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