AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegistryScanningRule.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/model/ScanFrequency.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecr/model/ScanningRepositoryFilter.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:
37 AWS_ECR_API RegistryScanningRule();
41
42
44
52 inline const ScanFrequency& GetScanFrequency() const{ return m_scanFrequency; }
53 inline bool ScanFrequencyHasBeenSet() const { return m_scanFrequencyHasBeenSet; }
54 inline void SetScanFrequency(const ScanFrequency& value) { m_scanFrequencyHasBeenSet = true; m_scanFrequency = value; }
55 inline void SetScanFrequency(ScanFrequency&& value) { m_scanFrequencyHasBeenSet = true; m_scanFrequency = std::move(value); }
56 inline RegistryScanningRule& WithScanFrequency(const ScanFrequency& value) { SetScanFrequency(value); return *this;}
57 inline RegistryScanningRule& WithScanFrequency(ScanFrequency&& value) { SetScanFrequency(std::move(value)); return *this;}
59
61
65 inline const Aws::Vector<ScanningRepositoryFilter>& GetRepositoryFilters() const{ return m_repositoryFilters; }
66 inline bool RepositoryFiltersHasBeenSet() const { return m_repositoryFiltersHasBeenSet; }
67 inline void SetRepositoryFilters(const Aws::Vector<ScanningRepositoryFilter>& value) { m_repositoryFiltersHasBeenSet = true; m_repositoryFilters = value; }
68 inline void SetRepositoryFilters(Aws::Vector<ScanningRepositoryFilter>&& value) { m_repositoryFiltersHasBeenSet = true; m_repositoryFilters = std::move(value); }
71 inline RegistryScanningRule& AddRepositoryFilters(const ScanningRepositoryFilter& value) { m_repositoryFiltersHasBeenSet = true; m_repositoryFilters.push_back(value); return *this; }
72 inline RegistryScanningRule& AddRepositoryFilters(ScanningRepositoryFilter&& value) { m_repositoryFiltersHasBeenSet = true; m_repositoryFilters.push_back(std::move(value)); return *this; }
74 private:
75
76 ScanFrequency m_scanFrequency;
77 bool m_scanFrequencyHasBeenSet = false;
78
79 Aws::Vector<ScanningRepositoryFilter> m_repositoryFilters;
80 bool m_repositoryFiltersHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ECR
85} // namespace Aws
RegistryScanningRule & WithScanFrequency(const ScanFrequency &value)
RegistryScanningRule & WithScanFrequency(ScanFrequency &&value)
RegistryScanningRule & WithRepositoryFilters(const Aws::Vector< ScanningRepositoryFilter > &value)
const ScanFrequency & GetScanFrequency() const
void SetRepositoryFilters(Aws::Vector< ScanningRepositoryFilter > &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ScanningRepositoryFilter > & GetRepositoryFilters() const
void SetScanFrequency(ScanFrequency &&value)
RegistryScanningRule & AddRepositoryFilters(const ScanningRepositoryFilter &value)
RegistryScanningRule & AddRepositoryFilters(ScanningRepositoryFilter &&value)
AWS_ECR_API RegistryScanningRule(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API RegistryScanningRule & operator=(Aws::Utils::Json::JsonView jsonValue)
RegistryScanningRule & WithRepositoryFilters(Aws::Vector< ScanningRepositoryFilter > &&value)
void SetScanFrequency(const ScanFrequency &value)
void SetRepositoryFilters(const Aws::Vector< ScanningRepositoryFilter > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue