AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegistryScanningConfiguration.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/model/ScanType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecr/model/RegistryScanningRule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECR
24{
25namespace Model
26{
27
35 {
36 public:
41
42
44
47 inline const ScanType& GetScanType() const{ return m_scanType; }
48 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
49 inline void SetScanType(const ScanType& value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
50 inline void SetScanType(ScanType&& value) { m_scanTypeHasBeenSet = true; m_scanType = std::move(value); }
51 inline RegistryScanningConfiguration& WithScanType(const ScanType& value) { SetScanType(value); return *this;}
52 inline RegistryScanningConfiguration& WithScanType(ScanType&& value) { SetScanType(std::move(value)); return *this;}
54
56
59 inline const Aws::Vector<RegistryScanningRule>& GetRules() const{ return m_rules; }
60 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
61 inline void SetRules(const Aws::Vector<RegistryScanningRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
62 inline void SetRules(Aws::Vector<RegistryScanningRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
64 inline RegistryScanningConfiguration& WithRules(Aws::Vector<RegistryScanningRule>&& value) { SetRules(std::move(value)); return *this;}
65 inline RegistryScanningConfiguration& AddRules(const RegistryScanningRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
66 inline RegistryScanningConfiguration& AddRules(RegistryScanningRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
68 private:
69
70 ScanType m_scanType;
71 bool m_scanTypeHasBeenSet = false;
72
74 bool m_rulesHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ECR
79} // namespace Aws
RegistryScanningConfiguration & AddRules(const RegistryScanningRule &value)
const Aws::Vector< RegistryScanningRule > & GetRules() const
RegistryScanningConfiguration & WithScanType(const ScanType &value)
void SetRules(const Aws::Vector< RegistryScanningRule > &value)
RegistryScanningConfiguration & AddRules(RegistryScanningRule &&value)
AWS_ECR_API RegistryScanningConfiguration(Aws::Utils::Json::JsonView jsonValue)
RegistryScanningConfiguration & WithScanType(ScanType &&value)
RegistryScanningConfiguration & WithRules(Aws::Vector< RegistryScanningRule > &&value)
AWS_ECR_API RegistryScanningConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RegistryScanningConfiguration & WithRules(const Aws::Vector< RegistryScanningRule > &value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRules(Aws::Vector< RegistryScanningRule > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue