AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
ResourceScanMetadata.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/EcrRepositoryMetadata.h>
9#include <aws/inspector2/model/EcrContainerImageMetadata.h>
10#include <aws/inspector2/model/Ec2Metadata.h>
11#include <aws/inspector2/model/LambdaFunctionMetadata.h>
12#include <aws/inspector2/model/CodeRepositoryMetadata.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
50 inline const EcrRepositoryMetadata& GetEcrRepository() const { return m_ecrRepository; }
51 inline bool EcrRepositoryHasBeenSet() const { return m_ecrRepositoryHasBeenSet; }
52 template<typename EcrRepositoryT = EcrRepositoryMetadata>
53 void SetEcrRepository(EcrRepositoryT&& value) { m_ecrRepositoryHasBeenSet = true; m_ecrRepository = std::forward<EcrRepositoryT>(value); }
54 template<typename EcrRepositoryT = EcrRepositoryMetadata>
55 ResourceScanMetadata& WithEcrRepository(EcrRepositoryT&& value) { SetEcrRepository(std::forward<EcrRepositoryT>(value)); return *this;}
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) { m_ecrImageHasBeenSet = true; m_ecrImage = std::forward<EcrImageT>(value); }
67 template<typename EcrImageT = EcrContainerImageMetadata>
68 ResourceScanMetadata& WithEcrImage(EcrImageT&& value) { SetEcrImage(std::forward<EcrImageT>(value)); return *this;}
70
72
75 inline const Ec2Metadata& GetEc2() const { return m_ec2; }
76 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
77 template<typename Ec2T = Ec2Metadata>
78 void SetEc2(Ec2T&& value) { m_ec2HasBeenSet = true; m_ec2 = std::forward<Ec2T>(value); }
79 template<typename Ec2T = Ec2Metadata>
80 ResourceScanMetadata& WithEc2(Ec2T&& value) { SetEc2(std::forward<Ec2T>(value)); return *this;}
82
84
88 inline const LambdaFunctionMetadata& GetLambdaFunction() const { return m_lambdaFunction; }
89 inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
90 template<typename LambdaFunctionT = LambdaFunctionMetadata>
91 void SetLambdaFunction(LambdaFunctionT&& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = std::forward<LambdaFunctionT>(value); }
92 template<typename LambdaFunctionT = LambdaFunctionMetadata>
93 ResourceScanMetadata& WithLambdaFunction(LambdaFunctionT&& value) { SetLambdaFunction(std::forward<LambdaFunctionT>(value)); return *this;}
95
97
100 inline const CodeRepositoryMetadata& GetCodeRepository() const { return m_codeRepository; }
101 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
102 template<typename CodeRepositoryT = CodeRepositoryMetadata>
103 void SetCodeRepository(CodeRepositoryT&& value) { m_codeRepositoryHasBeenSet = true; m_codeRepository = std::forward<CodeRepositoryT>(value); }
104 template<typename CodeRepositoryT = CodeRepositoryMetadata>
105 ResourceScanMetadata& WithCodeRepository(CodeRepositoryT&& value) { SetCodeRepository(std::forward<CodeRepositoryT>(value)); return *this;}
107 private:
108
109 EcrRepositoryMetadata m_ecrRepository;
110 bool m_ecrRepositoryHasBeenSet = false;
111
112 EcrContainerImageMetadata m_ecrImage;
113 bool m_ecrImageHasBeenSet = false;
114
115 Ec2Metadata m_ec2;
116 bool m_ec2HasBeenSet = false;
117
118 LambdaFunctionMetadata m_lambdaFunction;
119 bool m_lambdaFunctionHasBeenSet = false;
120
121 CodeRepositoryMetadata m_codeRepository;
122 bool m_codeRepositoryHasBeenSet = 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