AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceScanMetadata.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/Ec2Metadata.h>
9#include <aws/inspector2/model/EcrContainerImageMetadata.h>
10#include <aws/inspector2/model/EcrRepositoryMetadata.h>
11#include <aws/inspector2/model/LambdaFunctionMetadata.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR2_API ResourceScanMetadata();
39 AWS_INSPECTOR2_API ResourceScanMetadata(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Ec2Metadata& GetEc2() const{ return m_ec2; }
49 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
50 inline void SetEc2(const Ec2Metadata& value) { m_ec2HasBeenSet = true; m_ec2 = value; }
51 inline void SetEc2(Ec2Metadata&& value) { m_ec2HasBeenSet = true; m_ec2 = std::move(value); }
52 inline ResourceScanMetadata& WithEc2(const Ec2Metadata& value) { SetEc2(value); return *this;}
53 inline ResourceScanMetadata& WithEc2(Ec2Metadata&& value) { SetEc2(std::move(value)); return *this;}
55
57
61 inline const EcrContainerImageMetadata& GetEcrImage() const{ return m_ecrImage; }
62 inline bool EcrImageHasBeenSet() const { return m_ecrImageHasBeenSet; }
63 inline void SetEcrImage(const EcrContainerImageMetadata& value) { m_ecrImageHasBeenSet = true; m_ecrImage = value; }
64 inline void SetEcrImage(EcrContainerImageMetadata&& value) { m_ecrImageHasBeenSet = true; m_ecrImage = std::move(value); }
65 inline ResourceScanMetadata& WithEcrImage(const EcrContainerImageMetadata& value) { SetEcrImage(value); return *this;}
66 inline ResourceScanMetadata& WithEcrImage(EcrContainerImageMetadata&& value) { SetEcrImage(std::move(value)); return *this;}
68
70
74 inline const EcrRepositoryMetadata& GetEcrRepository() const{ return m_ecrRepository; }
75 inline bool EcrRepositoryHasBeenSet() const { return m_ecrRepositoryHasBeenSet; }
76 inline void SetEcrRepository(const EcrRepositoryMetadata& value) { m_ecrRepositoryHasBeenSet = true; m_ecrRepository = value; }
77 inline void SetEcrRepository(EcrRepositoryMetadata&& value) { m_ecrRepositoryHasBeenSet = true; m_ecrRepository = std::move(value); }
79 inline ResourceScanMetadata& WithEcrRepository(EcrRepositoryMetadata&& value) { SetEcrRepository(std::move(value)); return *this;}
81
83
87 inline const LambdaFunctionMetadata& GetLambdaFunction() const{ return m_lambdaFunction; }
88 inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
89 inline void SetLambdaFunction(const LambdaFunctionMetadata& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = value; }
90 inline void SetLambdaFunction(LambdaFunctionMetadata&& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = std::move(value); }
92 inline ResourceScanMetadata& WithLambdaFunction(LambdaFunctionMetadata&& value) { SetLambdaFunction(std::move(value)); return *this;}
94 private:
95
96 Ec2Metadata m_ec2;
97 bool m_ec2HasBeenSet = false;
98
100 bool m_ecrImageHasBeenSet = false;
101
102 EcrRepositoryMetadata m_ecrRepository;
103 bool m_ecrRepositoryHasBeenSet = false;
104
105 LambdaFunctionMetadata m_lambdaFunction;
106 bool m_lambdaFunctionHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Inspector2
111} // namespace Aws
const EcrContainerImageMetadata & GetEcrImage() const
ResourceScanMetadata & WithEcrRepository(EcrRepositoryMetadata &&value)
const LambdaFunctionMetadata & GetLambdaFunction() const
void SetEcrImage(const EcrContainerImageMetadata &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API ResourceScanMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceScanMetadata & WithEcrImage(EcrContainerImageMetadata &&value)
ResourceScanMetadata & WithEcrRepository(const EcrRepositoryMetadata &value)
void SetEcrRepository(EcrRepositoryMetadata &&value)
void SetLambdaFunction(const LambdaFunctionMetadata &value)
ResourceScanMetadata & WithEc2(Ec2Metadata &&value)
ResourceScanMetadata & WithLambdaFunction(LambdaFunctionMetadata &&value)
void SetLambdaFunction(LambdaFunctionMetadata &&value)
void SetEcrRepository(const EcrRepositoryMetadata &value)
void SetEcrImage(EcrContainerImageMetadata &&value)
ResourceScanMetadata & WithEcrImage(const EcrContainerImageMetadata &value)
const EcrRepositoryMetadata & GetEcrRepository() const
ResourceScanMetadata & WithEc2(const Ec2Metadata &value)
AWS_INSPECTOR2_API ResourceScanMetadata(Aws::Utils::Json::JsonView jsonValue)
ResourceScanMetadata & WithLambdaFunction(const LambdaFunctionMetadata &value)
Aws::Utils::Json::JsonValue JsonValue