AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
ImageScanningConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/EcrConfiguration.h>
10#include <aws/imagebuilder/model/ImageScanningType.h>
11#include <aws/imagebuilder/model/ScanResultCondition.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder {
23namespace Model {
24
32 public:
33 AWS_IMAGEBUILDER_API ImageScanningConfiguration() = default;
36 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
50 inline bool GetImageScanningEnabled() const { return m_imageScanningEnabled; }
51 inline bool ImageScanningEnabledHasBeenSet() const { return m_imageScanningEnabledHasBeenSet; }
52 inline void SetImageScanningEnabled(bool value) {
53 m_imageScanningEnabledHasBeenSet = true;
54 m_imageScanningEnabled = value;
55 }
58 return *this;
59 }
61
63
66 inline const EcrConfiguration& GetEcrConfiguration() const { return m_ecrConfiguration; }
67 inline bool EcrConfigurationHasBeenSet() const { return m_ecrConfigurationHasBeenSet; }
68 template <typename EcrConfigurationT = EcrConfiguration>
69 void SetEcrConfiguration(EcrConfigurationT&& value) {
70 m_ecrConfigurationHasBeenSet = true;
71 m_ecrConfiguration = std::forward<EcrConfigurationT>(value);
72 }
73 template <typename EcrConfigurationT = EcrConfiguration>
75 SetEcrConfiguration(std::forward<EcrConfigurationT>(value));
76 return *this;
77 }
79
81
97 inline const Aws::Vector<ImageScanningType>& GetImageScanningTypes() const { return m_imageScanningTypes; }
98 inline bool ImageScanningTypesHasBeenSet() const { return m_imageScanningTypesHasBeenSet; }
99 template <typename ImageScanningTypesT = Aws::Vector<ImageScanningType>>
100 void SetImageScanningTypes(ImageScanningTypesT&& value) {
101 m_imageScanningTypesHasBeenSet = true;
102 m_imageScanningTypes = std::forward<ImageScanningTypesT>(value);
103 }
104 template <typename ImageScanningTypesT = Aws::Vector<ImageScanningType>>
106 SetImageScanningTypes(std::forward<ImageScanningTypesT>(value));
107 return *this;
108 }
110 m_imageScanningTypesHasBeenSet = true;
111 m_imageScanningTypes.push_back(value);
112 return *this;
113 }
115
117
130 inline const ScanResultCondition& GetScanResultCondition() const { return m_scanResultCondition; }
131 inline bool ScanResultConditionHasBeenSet() const { return m_scanResultConditionHasBeenSet; }
132 template <typename ScanResultConditionT = ScanResultCondition>
133 void SetScanResultCondition(ScanResultConditionT&& value) {
134 m_scanResultConditionHasBeenSet = true;
135 m_scanResultCondition = std::forward<ScanResultConditionT>(value);
136 }
137 template <typename ScanResultConditionT = ScanResultCondition>
139 SetScanResultCondition(std::forward<ScanResultConditionT>(value));
140 return *this;
141 }
143 private:
144 bool m_imageScanningEnabled{false};
145
146 EcrConfiguration m_ecrConfiguration;
147
148 Aws::Vector<ImageScanningType> m_imageScanningTypes;
149
150 ScanResultCondition m_scanResultCondition;
151 bool m_imageScanningEnabledHasBeenSet = false;
152 bool m_ecrConfigurationHasBeenSet = false;
153 bool m_imageScanningTypesHasBeenSet = false;
154 bool m_scanResultConditionHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace imagebuilder
159} // namespace Aws
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ImageScanningConfiguration & WithImageScanningTypes(ImageScanningTypesT &&value)
const Aws::Vector< ImageScanningType > & GetImageScanningTypes() const
ImageScanningConfiguration & WithImageScanningEnabled(bool value)
ImageScanningConfiguration & WithScanResultCondition(ScanResultConditionT &&value)
ImageScanningConfiguration & AddImageScanningTypes(ImageScanningType value)
AWS_IMAGEBUILDER_API ImageScanningConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageScanningConfiguration & WithEcrConfiguration(EcrConfigurationT &&value)
AWS_IMAGEBUILDER_API ImageScanningConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API ImageScanningConfiguration()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue